Here's some info from MSDN that might help.
http://msdn2.microsoft.com/en-us/library/system.security.principal.windowsprincipal.isinrole(VS.71).aspx
[C#]
public static void...
Type: Posts; User: Pete_O
Here's some info from MSDN that might help.
http://msdn2.microsoft.com/en-us/library/system.security.principal.windowsprincipal.isinrole(VS.71).aspx
[C#]
public static void...
I think the best way is using Reflection.
using System.Reflection;
Assembly myAssembly = Assembly.LoadFrom(MyAssemblyName);
Or
using System.Reflection;
Or if you just don't want your variables cluttering up your screen because you have so many, you can:
Declare regions, #region regionlabel and #endregion in C#
Declare your classes as Partial...
Nice article, thank you.
I've got it working now.
Pete
I'm having trouble loading Excel data into my application. Can anyone tell me what's wrong with the following method?
My connectionString is:
private static string connectionString =...
Probably the best way to do it is to draw the added items yourself.
http://www.codeproject.com/cs/combobox/colorlistbox.asp?df=100&forumid=4004&exp=0&select=196903
Regards
Pete
Hi,
You can assign a new Font to the Label1.Font property like this:
label1.Font = new Font(label1.Font, FontStyle.Bold);
:)
Regards
Oh by the way I realise there's the Application.Exit(); function but what I'm after is how to access the controls/form on the derived instance.
Example - how would I rename a label on the derived...
Is it possible to inherit from a form and in that new derived form close ALL forms?
So in the derived class you would have something like:
protected sealed override void Exit(object sender,...
Thanks, you're right. A friend has told me that the (decimal)(1.23) is compiled at runtime, whereas the Convert.ToDecimal method is determined at compile time.
Perhaps the performance of...
Hello everyone,
First post :)
Anyone know the difference between the following two ways to cast one type to another?
decimal myVar = Convert.ToDecimal(1.23);
and