|
If they are the same size ,why don't you put them in the same location ,and only calling this.control1.BringToFront();
that would help also you can start with your default control as you may want display it in the first.
|
|
|
|
|
That would be a solution. But i rather like to write some code that
"closes" or makes all previous selected user controls invisible.
I'm not too lazy to programm it, but actually i'm a little stuck.
A good idea is missing
|
|
|
|
|
Is there any Tool Bar control which is by default quite similar to Standard I.E explorer tool bar,which contains back forward stop refresh buttons etc.Creating such tool bar on our own will take time,so is there any available tool bar control like this.
|
|
|
|
|
No. You can have a prebuilt toolbar that supplies the buttons, but there's no way it can know what your using those buttons for and supply the code for them. You'll still have to write code behind the button click events so they'll actually do something.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Is it possible to stop people from being able to decompile a C# program or to 'rip' the code out of a compiled application?
Thanks.
Stephen
|
|
|
|
|
there are many obfuscation programs are available in market which you can use to secure your source code.
a good defination of obfuscator from google : )
"Obfuscator is a program that garbles a source either by encryption or by substitution of codes. This means that the source to be compiled is hard to understand and hard to debug. But during runtime it is decrypted as pure source."
|
|
|
|
|
You can make it harder by using an obfuscator. An obfuscator takes the IL and mangles it so that it is tough for decompilers to figure out the original source, while still maintaining the original logic of the program.
All said and done, with enough time and resources, a motivated person can still decompile your code.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I managed to retrieve LOCAL user & groups and list them in a listbox. Now I need to find out which localusers are "memberof" a local group. With Active Directory (using LDAP) it works, but it won't work with localuser/groups.
The last I tried:
DirectoryEntry group = new DirectoryEntry("WinNT://127.0.0.1/Administrators", "", "", AuthenticationTypes.None);<br />
<br />
foreach(object dn in group.Properties["member"] )<br />
{<br />
Console.WriteLine(dn);<br />
}
Who knows what I'm doing wrong ? Or does somebody knows the right we to handle this?
Thanks
|
|
|
|
|
Jeah, I did it (stolen from a example from codeproject.com) :
StringCollection userGps = new StringCollection();<br />
DirectoryEntry obDirEnt = new DirectoryEntry("WinNT://" + "127.0.0.1" + "/" + "Eric");<br />
object obGps = obDirEnt.Invoke("Groups");<br />
if (null != obGps)<br />
{<br />
foreach (object obGp in (IEnumerable)obGps)<br />
{<br />
DirectoryEntry obGpEnt = new DirectoryEntry(obGp);<br />
userGps.Add(obGpEnt.Name);<br />
}<br />
}
Now I only ask, why does is take so long to 'invoke' ? Is there anyway to make this go faster ?
|
|
|
|
|
Hello
i have some problem in double clik event of datagrid. i am using dragdrop functionality in datagrid to another control when i active this function then double clikc event not fire what can i do for this functionality please help me...
Priyank Gupta
|
|
|
|
|
joy_priyank wrote:
i am using dragdrop functionality in datagrid to another control when i active this function then double clikc event not fire
What do you mean by "when I activate this function, then doubleclick event not fire"? Are you trying to doubleclick on something WHILE your doing a Drag & Drop operation?
We need a better explanation of what your trying to do.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
"when I activate this function, then doubleclick event not fire" Yes you are right and i explain you in details
in my main window i am using two contol, one is datagrid and second is MSFlexGrid. i want to drag drop functionality from datagrid to MSFlexGrid when i select any item from datagrid and drag from datagrid to MSFelxGrid then another window open. now i am using for draging this functionalty with dradrop event of datagrid. Now i am also useing double click event of datagrid but when i write some code in double click event of datagrid then it will not fire
this is my main problem i can also explain you by code if you not understand tell me
thanks for reply
|
|
|
|
|
Is the .NET Framework SDK Version 1.1 (for C#) available for download from Microsoft site, free for download?
Can I use it to make and market commercial applications, without restrictions? Moreover, can I develop full-fledged applications using it (of course the visual IDE will not be availabe if i understand correctly)?
I am forced to ask this question here because this SDK download is about 103 MB and the Microsoft site does not mention about the license conditions before the download is completed.
Thanks in advance.
|
|
|
|
|
Yes, you can develop and market applications written on the "free" version of the .NET Framework. Those are the exact same compilers used by the Visual Stduio IDE. The compilers are part of the Framework, not the IDE. There are no licensing restrictions.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I have a problem deserializing xml into objects.
my class structure:
orderHeader
order
orderDetail
orderHeader has an arraylist of [order]
order has an arraylist of [orderDetail]
orderHeader and the arraylist of [order] is filled, but the arraylist of [orderDetail] remains empty.
this is the code i use to deserialize:
<br />
Dim serializer As New XmlSerializer(GetType(orderHeader))<br />
Dim fs As New FileStream("c:\schipUbnOrder.xml", FileMode.Open)<br />
Dim myOrderHeader As orderHeader<br />
myOrderHeader = CType(serializer.Deserialize(fs), orderHeader)<br />
What am i doing wrong ?
Thanks already
John
|
|
|
|
|
|
Hi,
Thanks for the reply, but i already found the problem:
the [orderDetail] arraylist in the [order] class was not initiated in the default constructor. Therefore he generates a nullReference...
It does know the type of the arraylist thanks to this code:
[XmlArray("orderLines")]
[XmlArrayItem("orderLine",typeof(orderDetail))]
public ArrayList orderDetail
{
get {return mOrderDetails;}
}
regards
John
|
|
|
|
|
hi,
I suppose that I have created a Method called "abc(int a,int b)" Method in C# Application.
Now I want to use same abc Method in a different Application in different Computer.All the computers are in the Network..
can any one tell me how to do that?
thanks in advance..
|
|
|
|
|
Hi,
You can use .Net remoting for this purpose. The following link contain necessary information on .Net remoting.
http://www.developer.com/net/cplus/article.php/1479761
Thanks and Regards
Kodandapani.
|
|
|
|
|
yes ..it is helpfull thanks...
|
|
|
|
|
It is difficult to click a button in C# Application from another application ..can any one tell me the way to do it using remoting?
|
|
|
|
|
|
When drawing text to the client area using the DrawString command. Is there a way of finding out what the new graphics point position is after the text is drawn?
What I am trying to do is Draw text to the screen which could take up any number of lines. After drawing the text I want to be able to draw something directly below the text. I need to be able to find the screen position to draw to once the text has been drawn so that I'm not drawing over the text.
Is there any way to do this??
|
|
|
|
|
|
I am familiar with ASP.NET C# for web development and have just now been learning windows forms development with the .NET framework/C#. However, I was wondering if anyone knew of a way to do caching in a windows form.
I am making a call to a web service and it takes a few seconds longer than I would like. Is it possible to store everything in a "System Cache" and then avoid calling the web service multiple times in the same execution of the program?
Thanks in advance
The Yellow Dart
|
|
|
|