Answer Questions
mbudiman Form Container
How (or where) can I get a form container like I want to place one or two forms on a master form Anything that can host any other control is a container, such as: panel1.Controls tabControl.Controls form1.Controls and so on. You definitively can host any kind of controls in a MDI form that is the parent container. So you can stuff or host any control (eg. such as any of the above 3) inside any other. If I unde ...Show All
Michael Ragsdale Generics - List of items that implement a generic interface?
So I've got a parser interface: ------------------------------------ interface IParser <T> { T Parse( Type type, string val); } ------------------------------------ And classes that implement this interface like this: ------------------------------------ class StringParser : IParser < string > { public string Parse( Type type, string val) { return val; } } class Int16Parser : IParser < Int16 > ...Show All
SQLBOY36 Why is Generic.List<T> not ICloneable?
I'm definitely missing here something. What was the reason not to implement ICloneable on the generic list Is it supposed to use ToArray() if I need a List with the same elements (value or reference types) Because the ICloneable is recognised as a bad design mistake. You should use copy ctors instead. One big advantage is that classes that are derived from the class that support a copy ctor can override it an ...Show All
Sid Stusinski Anti-view source code
Dear all, I'm using a software that can view source code from .exe and .dll file (only for .Net Framework support files). It's security problem. Everyone can know my programming idea. So, I wonder to know how to hide code! Someone help me! Thanhks! A default obfuscator comes with Visual Studio.NET. It is available from the Tools menu from within the IDE (Tools -> Dotfuscator Community Edition). This basic version will renam ...Show All
zcat123 How to filter what rows of a database to show.
Hello, I'm working on a project that uses three tables in a database, connected using foreign keys. My main table is a table of projects, I have another table of operations, where each operation has a foreign key called ProjectID that corresponds to a project in the projects table. What I want to be able to do is have a combobox with each project from the projects table, and when a user selects a project, show only the operations from the ...Show All
rabbie label.text repetition
Is there any shortcut instead of typing the code like this. I have 300 lines like these. Any suggestion guys, thanks label1.Text = myArray[0, 0].ToString(labelFormat); label2.Text = myArray[1, 0].ToString(labelFormat); label3.Text = myArray[2, 0].ToString(labelFormat); label4.Text = myArray[3, 0].ToString(labelFormat); label5.Text = myArray[4, 0].ToString(labelFormat); --- label6.Text = myArray[0, 1].ToStri ...Show All
Rob D Hex convertion to string in C#
I have a string variable in Hex format which I need to convert to a standard ASCII string ; eg "48656C6C6F20576F726C64" should convert to "Hello World". I can't seem to find anything in the help files which actually helps with what should be a fairly common requirement. If anyone can throw light on this (and indeed the reverse conversion) I would be very grateful. Sounds good to me. I'll giv ...Show All
Fang Wang - MSFT DateTime
Hi. What I want to do is display the current time, or the current day in a MessageBox.Show method. Can someone tell me how to do this. I know it has something to do with the DateTime method. Thank you for any help provided. DateTime.Now.ToShortTimeString(); http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdatetimememberstopic.asp Th ...Show All
lilixx DOS window doesn't close after process started?
Hi, I'm trying to run a process from a Windows application. Example: if (Regex.IsMatch(textDomain.Text, "( =^.{1,254}$)(^( :( !d+.)[a-zA-Z0-9_-]{1,63}. )+( :[a-zA-Z]{2,})$)") && Regex.IsMatch(textRecord.Text, "^( :( :25[0-5]|2[0-4]\\d|[01]\\d\\d|\\d \\d)( ( =\\. \\d)\\.)){4}$")) { Process testProcess = new Process(); testProcess.StartInfo.CreateNoWindow = true; Process.Start("cmd.exe", "/c ipconfi ...Show All
Bill MacKenzie Problem with variable
Hi there ... i can't understand why compiler can't find varible if i have declared it... please look at this code: private void button1_Click( object sender, EventArgs e) { bool found; string [] array1 = { "Mikus" , "Anda" , "Juris" }; for ( int i = 0; i < array1.Length; i++) { if (array1 == textBox1.Text) { found = true ; MessageBox .Show( "Atradu mekl to v rt bu. " + array1 + " ir mas va " + i + ". elemen ...Show All
j_kidd Detection of Windows-Version
Hi, I'm writing a class, whitch detects the Version of the installed Windows. On the MSDN, I found this link: http://msdn.microsoft.com/library/default.asp url=/library/en-us/sysinfo/base/getting_the_system_version.asp This works good, but I need more information. How can I detect the different WindowsXP Media Center Versions (2002,2004,2005) How can I detect the WindowsXP Edition N-versions Can anyone give me some information about this ...Show All
dc.khael Questions about Objects in C#
1. Do we need to pass objects by ref, if we want to have the changes made in a calling function 2. And the same question for the objects passed by Remoting 3. Do we really gain performance in calling Dispose method of DataSet while leaving from a function(the dataset is no longer required) If yes, then what does the Dispose do there Is it freeing the memory occupied by the objects If yes, then basic definition of GC itself gone righ ...Show All
Abhijeet GDI+ Multi Thread
I am using GDI+ to draw to the graphics object when an OnPaint event occurs. However, if you draw lots of things, the form becomes unresponsive until all of the drawing is done. Is there anyway to put the OnPaint event in another thread, so the form can remain responsive while the painting occurs Yeah, I see how the clipping area re draws only the items needed to be drawn. Thanks for the code snippet. Still I suppose there is ...Show All
flashg #msntb_toolbar_full_name#
I have the following sign come up on the screen. #msntb_toolbar_full_name# is unable to load config file. If you recently upgraded to a newer version of #msntb_toolbar_full_name # and have not restarted your computer since the upgrade,please try resarting your computer.If the problem persist,please reinstall the #msntb_toolbar_full_name#. I'm currently running WXP Home Edition,IE7. W Defender.This problem only occured after I complet ...Show All
Sne Is C# the best language to learn/know?
Hello, I am currently studying C#. I presumed that C# is much better than VB.NET and so started studying it. But it seems to me that most everyone related to microsoft is always pushing for VB.NET and not having much to say about C#, so what is going on Id Est; - I now regularly catch the Dot NET Rocks radio show, which seems to be based, or at least biased toward VB.NET. - I stumbled upon the VB.NET PDC05 di ...Show All
