Answer Questions
RenRen How to invoke a Form from Different Project?
Hi, I have a situation with multiprojects created using VS IDE with different namespaces as mentioned here. I first created a windows application with the name App1 and i created another new project with name App2 and added to the exisiting project. ie., App1 Now, all i want is how can i call the Form1 of App2 in some event of Form1 of App1 Regards, DSK Chakravarthy I merged all of these threads ...Show All
Fretje COM+
Hi you all, Well I was I VB6 developper and I am now trying to build a COM+ component using C#, but till now I had no luck. Can anyone help me in this matter. Any help is welcome, MeTitus http://support.microsoft.com/kb/q306296 This is exactly what I have done before. I used this help to build my first COM+... Still I am having this problem, I will try to use the impersonatio ...Show All
mohdtmn Refresh() how to work?
In these code, i use Refresh(), i guess it should remove old content displayed in this form, but it does not work, why if i want to clear old content, how should I do public void displayLabels() { this.Refresh(); Label lb = new Label(); int number =0; IEnumerator em = this.labellist.GetEnumerator(); while(em.MoveNext()) { lb = ((CageBox)em.Current).CageText; lb.Location = new System.Drawing.Point(80+number*166, 310); lb.Si ...Show All
Teleo Why IDE remove my custome controls from form often?
I have suffered a lot (really alot!) from losing code and the very slow speed of design mode form drawing in VS2003 IDE. I have lost so many times window code whenever I used subclassed control in design mode. Most of time I create my own driven control and use it in design mode after register it into toolbox. IDE removes my custome controls from the window form when I open the form in design mode. It drives me crazy....!!! It is not limit ...Show All
Tami intellisense not working when writing get or set accessors of a property
Hi, it seems to me that intellisense (Complete Word) does not work when you are writing a set or get accessor of a property. The only workaround I found is to close brackets before using the Complete Word Regards, Guglielmo Correct. It occurs when you first create the property and start adding the get/set accessor. Sometimes it'll happen after that as well and sometimes it doesn't ...Show All
Stuck29430 Unloading an Assembly
Hello, I read in one of the Blogs that an Assembly cannot be unloaded. It has to be loaded into a AppDomain and then unloaded. I have tried that. Take a look at the following code. AppDomain newDomain = AppDomain.CreateDomain("NewDomain"); Assembly myAssembly = newDomain.Load(AssemblyName.GetAssemblyName(assemblyPath); After doing Reflection on myAssembly, I used ...Show All
German_Steffen MultiThreading
hi,, i want to know how can i send a parameter to a method with multithreading,, for example: Thread t = new Thread(new ThreadStart(Service)); t.Start(); im calling the method Service with multithreading,, but how can i send the parameters that that method needs ,,,, that method is Service(int x) and i cant do this Thread t = new Thread(new ThreadStart(Service(20))); t.Start(); some 1 know how can i do it thx mig16 ...Show All
JackStri Convert from string to DateTime
I have a problem to convert string into DateTime. "20060425185231" like "yyyyMMddhhmmss" and i want to convert it to a DateTime. I know that i can convert from string if i use this sting "MM/dd/yyyy hh:mm:ss" but isn't there any easier way to convert. Elseway i have to convert string to int and then split it up in char array, and then put it together again. You have to write ...Show All
pbankov1 Noob: What would be the best way to create an unattended batch process?
I've been tasked to do a program (C# VS-2003) that reads data from ASCII files and uploads them to SQL Server 2000. I created a WinForm as a demo, where I can select an ASCII file from a folder, process it and upload to SQL Server. There will be different files in the incoming folder of slightly different types, intended for different SQL-Tables. Job was acomplished and works fine. Now I have to get rid of the visual interface (WinForm) as ...Show All
Blade68 Cannot install/re-install MS DeskTop Search (nor toolbar): "cannot remove older version"
I get a message that says #msntb_toolbar_full_name# is unable to load its config file. if you have recently upgraded to a newer version of the # msntb_toolbar_full_name# and have not restarted your computer since the upgrade, please try restarting your computer , if the problem persits, please reinstall the # msntb_toolbar_full _name# I tryed it all and still it doesn't work. Please help Me. Sincerly Marilyn Same problem here, any solutio ...Show All
urpalshu 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 Assuming you still need some help with this one, if you reply with your OnPaint code, I should be able to help. ...Show All
Exclude assigning variables with the same value (simplified method)
I would like to assign the same value to 8 variables. Is there any easier way int var1=1; I would like to be able to write like this but dont know how. int var2=var3=var4=var5=var6=var7=var8=var1; or store 1 to var2,var3,var4,var5,var6,var7,var8 Is assigning one by one, a must in C# Any suggestion Thanks, danny int var1=1; int var3, var4, var5, var6, var7, var8; i ...Show All
scorpsteals Question on Localization
i have another few questions about localization is there any walkthroughs for building a application to be multilingual for .net 2005 beta2. And also what is the best way to update resources from outside the project. I know winres will work to update each form, but how do you compile to a dll from outside the project, because i would like to just ship the exe and reference a dll for resources can this be done . I hope ...Show All
goofaholix How can I do this
Hello , when i create a username,I wanted to do check the username from a Active directory and if the username is exist already then i wanted to create another username by adding an integer. for example..... first person when he create a username the username will be dave-1 2nd person dave-2 when the third person try...the available username should be dave-3 how can I do that in C# can anybody help me out regards, Thaya Hi Are you cr ...Show All
Shobha Santosh "That assembly does not allow partially trusted callers."
I don't understand this... Whenever i click my button i get the following error: "That assembly does not allow partially trusted callers." What can be wrong I'm reading the source code of an example application using the MySQL connector, and i'm trying to create a similar application. It's pretty embaracing :( [ STAThread ] static void Main() { Application .EnableVisualStyles(); Application .SetCompatibleTextRendering ...Show All
