Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Background Task

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 07-01-2008, 11:13 AM
RandomCoder's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Derbyshire, UK
Posts: 623
Awards Showcase
Beta Tester 
Total Awards: 1
Default

This is a fantastic utility for beginners and intermdiates like myself.
I've added a shortcut link in my B4PPC startup folder so thats its easily accessible when I need it.

But can I ask, what is a namespace?
I refer specifically to this MSDN article NotifyIcon Class (System.Windows.Forms) about the notify icon.
I'm interested in knowing how the notifyicon is linked to the Form. Can it be done with the door library? I'm presuming that it can't as it is not listed in either the methods or properties of the Form and so presumably it's what I would call a stand-alone function that effectively bolts on to the Form which is why I must use either Agraham's or DZT's library.
Sorry if this appears a silly question but I'm trying to better understand how all the bits and pieces tie together not just for B4PPC but also in VB.

Thanks,
RandomCoder
__________________
"Defeat never comes to any man until he admits it."Josephus Daniels
Reply With Quote
  #12 (permalink)  
Old 07-01-2008, 12:06 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by RandomCoder View Post
But can I ask, what is a namespace?
All .NET classes (objects) live in a namespace, the biggest of these is probably System. You can regard namespaces as a hierarchy, a bit like a folder tree. The namespace in which a class lives is part of the class name so that classes of the same name can be defined in different namespaces without conflict. For example there is a Button object in both System.Windows.Forms and System.Web.UI.WebControls namespaces. You define the namespaces you want to use when writing code. In VB this by "Imports". Then you don't need to use the fully qualified name including the namespace when referring to classes unless there is a conflict. For example if I want to define a Class in a library called "Button" that will be in a namespace I choose and will be the default namespace when the compiler wants to find Button. If I then want to use System.Windows.Forms.Button then that is how I refer to it so the compiler knows it is not my Button I want.

Quote:
I'm interested in knowing how the notifyicon is linked to the Form. Can it be done with the door library?
Form, NotifyIcon, Button etc. are all Controls. Controls are linked in a hierarchy with, usually, a Window (Form) at the top. A NotifyIcon would be a Child of a Form, the Form being the Parent of the NotifyIcon. Each Control has a Parent property identifying its Parent control and a Controls collection identifying its Child controls. A Control is assigned to a Parent by using the Controls.Add method of its Controls collection - this takes care of unassigning any previous Parent control and assigning the control to the new.

You probably could create a NotifyIcon and add it to a Form using the Door library but accessing its methods and properties would be a bit long winded - its much easier to encapsulate it in a library.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
dzSpy - Spy and Task Manager App - Open Source dzt Share Your Creations 13 09-07-2009 01:41 PM
Task Switcher for WM5/6 agraham Questions (Windows Mobile) 10 01-15-2009 02:11 PM
Task.DueDate cannot be set correctly specci48 Bug Reports 4 09-14-2008 08:52 AM
the background and sprite GallyHC Questions (Windows Mobile) 4 06-01-2008 02:21 PM
Outlook task reminder time Rioven Questions (Windows Mobile) 3 09-30-2007 05:38 PM


All times are GMT. The time now is 10:00 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0