|
Hi All
i am new to C#.net can any one tell me abut namespaces
|
|
|
|
|
|
NameSapce is the logical collection .................
Google it
<l>Thanks and Regards
Sandeep
|
|
|
|
|
Namespaces are a way to define classes and other types of information into one hierarchical structure. System is the basic namespace that you use by every .NET code. The namespaces are the building blocks for the .NET way of software development.
SkyWalker
|
|
|
|
|
I don't think namespaces are mean at all.
|
|
|
|
|
I have a form which I want to use in several projects - is it best to keep the code for this in as seperate directory and add it to my projects for building, or should I build it as a library? Which is best - If it was a code module I would go for the library option but I am not sure with a form.
Richard
|
|
|
|
|
Hi
Create a windows control for that form.
Regards,
Sushant Duggal.
|
|
|
|
|
If the form is going to be reused in several different applications, then it is better to encapsulate it in a library. You can use inheritance to change the form when it is in a new application.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
You could also reference the file through a link in your project.
But this has the drawback that you have to recompile other projects when something changes.
SkyWalker
|
|
|
|
|
Hello gurus,
Maybe I'm asking for a recurrent question... But...
What is the equivalent of WaitForSingleObject in C#?
How can I write a thread that using WaitForSingleObject equivalent???
Thanks for the help.
Best regards.
Fred.
There is no spoon.
|
|
|
|
|
Hi
Try System.Threading.ThreadPool.RegisterWaitForSingleObject()
greets
m@u
|
|
|
|
|
|
hi!
i m developing an appliction in C# webappliction .I have a module as email clinet in it .... i have received the mail ....But now i was to register the users in my own defined domin from my own built interface....how can i do it i havnt any idea about creating the new acounts in my own domain e.g,domian.com
|
|
|
|
|
I am writing a Windows Mobile CE 5.0 device application in VS2005. I want to prevent the user from moving the windows form while maintaining the title bar (though the control box can be hidden).
Any help please?
Ashvin Gunga
|
|
|
|
|
Declare an instance variable of Type Point name it say loc.
In the end of your Form_Load event Handler write this line of code
this.LocationChanged += new System.EventHandler ( this.FormName_LocationChanged );
this.loc.X = this.Location.X;
this.loc.Y = this.Location.Y;
And in the LocationChanged Event Handler
private void DbDeploy_LocationChanged ( object sender , EventArgs e ) {
this.Location = this.loc;
}
|
|
|
|
|
Sorry i didn't noticed you mentioned Windows Mobile CE application..
However you can use the same strategy there as well... Just use Mouse_Move event and check if the Left mouse Button is pressed when the Mouse_Move event has raised... If yes then reassign the location property.
|
|
|
|
|
Hi Syed,
Thanks for your reply. I have tried to use the private instance variables some days back (as you mentioned above). However, this allows the user to move the form, say using the pen (since I am using a touch screen device), and once he stops dragging it, the form goes back to the original position.
Instead, I want the user not able to move the form at all. I want the form to be completely unmovable. The reason is because I will maximize the screen and the user should not be allowed to see anything behind the form (e.g. the desktop etc). With the solution above, he is possible to see what's behind.
Can you help please?
Ashvin Gunga
|
|
|
|
|
AFAIK a form that is maximized can not be moved at all; it normally can be:
- restored (to its non-maximized size)
- minimized
- closed
So if you disable the ones you dont want, you're done.
I would disable the maximize and minimize buttons, and set it maximized either in
Designer or in constructor or Load event.
Luc Pattyn
|
|
|
|
|
Hi Luc,
Thanks a lot for your help. I think it works
Ashvin Gunga
|
|
|
|
|
Hi!
i'm writing an application using CAB and SCSF..
after deployment and installing (clickonce) it on my machine the app runs just fine..
but on some other users' accounts while opening the app thorws an exception ("Exception has been thrown by the target of an invocation") when initializing one of the views in a module..
what could be the possible reason?! i guess it's something with system permissions or something like that..
thanks for any help!!
life is study!!!
|
|
|
|
|
k. i narrowed the source of the error to initialization of one of the tables in a typed dataset..
this line should run the SomeTableDataTable() method..
this.tableSomeTable = new SomeTableDataTable(); // line A
but the 'line B' is never reached..
the exception is thorwn after 'line A' but before 'line B'
[System.Diagnostics.DebuggerNonUserCodeAttribute()]<br />
public SomeTableDataTable() {<br />
this.TableName = "SomeTable";
this.BeginInit();<br />
this.InitClass();<br />
this.EndInit();<br />
}<br />
any idea why an exception is thrown here?! why not with any other table?!
life is study!!!
|
|
|
|
|
hi, how i can enforce the client to enter arabic words in the textbox in windows application
Thanks alot
Hamody
|
|
|
|
|
set an arabic font for ur text box
|
|
|
|
|
try setting ImeMode property of the TextBox
life is study!!!
|
|
|
|
|
I have my C# project which runs on a PDA device. How to I check on the device which version of OpenNetCF it is using.I mean which file to check for and on which location on the PDA? Or is it only on the local machine on which I compile my code. But I see that a code which I have compiled on my machine, runs well on one PDA, but does not on the other PDA and gives the following exception
"An unhandled exception of the type 'System.MissingMethodException' occurred in System.Windows.Forms.dll"
|
|
|
|