Answer Questions
vtortola Referenced DLLs - How to dynamically update the path of the reference dlls in another solution?
Hello, I am working with 2 C# solutions right now, 1 is the main application we are creating (let's call it MainSolution.sln for now), the other is a unitTest solution (UnitTest.sln) created as a separate solution file, as the main solution consists of too many projects and compiling it takes a long time. It was created separately also because different groups of developers can work on the respective solutions they are tasked to do. In the UnitTest solution, we create unit tests for the main solution classes, hence, for each project in the unitTest solution, I've added references to the respective main solution dlls. A typical full path of the Main solution's DLL is C:\MainApp\<foldername>\bin\Debug\<filename>.dll I'm cur ...Show All
tornin2 Typing in Visual Studio 2005 Text Editor is extremely slow
Has anyone else noticed that typing in Visual Studio 2005 is extremely slow Whey I type it seems that the screen is always 2 words behind where my hands are. It makes it extremely frustrating to get anything done. I'm mainly referring to C# code. It seems like Intellisense is going nuts trying to guess every word I'm going to type and never actually prints the characters to the screen. Has anyone else experienced this Is there an option I can turn off to get my text editor back ! By the way, I have a very fast computer with Dual 3.0 GHz Zeons with 3GB memory and everything else that should make "typing" very fast. Basically, as far as I can tell by this entire discussion and my own experiences is that the ...Show All
sandsdad input data to website
Ok right now I have to configure routers manually by inserting the exact same data into a router's configuration panel (website on router) then swap out the configured router with one that needs the exact same setup and redo this process over and over. I would like to write an application that fills in all the needed boxes,selects values from drop down menu's and fills in any other information and presses the save & restart button for me is this possible I initially though about trying to find the file on the router that its writing to thinking making its one config file maybe if thats the case I could just write to the file but im not entirely sure. it's a tricky one really since you need to know w ...Show All
V Shankar finding documents and settings directory.
Is there a way in .net 2.0 to find the drive letter and path of the documents and settings/allusers/application data/ Thanks that did the trick. string path = Environment.GetFolderPath (Environment.SpecialFolder.CommonApplicationData); (It's line-wrapping in an odd spot, but it's just a method call, passing an enum.) ...Show All
Wayne R Executable Resources
So I've written this class library that launches an external application (.exe) and does something with the standard output provided back to it. This external application I have been packaging up in the installer and gets deployed in the same directory as the hosting application, however I was working with resources the other day, and I would like for that external application to not be accessable from the user, but only from within the calling application. The calling application makes use of the ProcessStartInfo class to start up an instance of this class, but I see it only calls executables that have a file path known to them. Question : Is there anyway I can add the executable as a resource by adding a new resx file, adding t ...Show All
TDays Hooking keypress event at runtine
Hi, Having handle (hwnd) of an editbox, is there a way to register a c# function for listening keypress events. I mean hooking at runtime. Actually, I have a native application and writing a plugin to it, requiring to listen keypress events on a particular editbox. I tried SetWindowsHookEx but it hooks on the entire window/form. I just want to listen for one editbox only. Is there any WIN32 Api using that, i can achieve the same Any pointer will be helpful. Thanks ~ Ankit Dynamic window subclassing will work. Call the API SetWindowLong () with nIndex = GWL_WNDPROC to register a new window procedure. Here is a sample to to do this: http://msdn2.microsoft.com/en-us/library/ms229658.aspx Michael ...Show All
enric vives messagebox.show() problem
i have the event below, when user tries to close the window, i ask whether user wants to save the change or not. 'yes' buttton means to save the change and close the window, 'no' button means to close the window without saving chnges, and 'cancel' button means do nothing. it does work, however, when i click on 'no' or 'cancel' button, the messagebox pops up once again, i have to click it once more to make things happen. please help private void frmRegistrationEdit_FormClosing( object sender , FormClosingEventArgs e ) { if ( MessageBox.Show( "Do you want to save any changes before closing this window \n\n Click on 'Yes' to save; or \n Click on 'No' to close without saving; or \n Click on 'Cancel' to do nothing ...Show All
Jabs problem with multiple serial ports
Hi, I am having problem with reading data from multiple serial ports on same form. I have 1 form with 2 serial port objects on that. Both serial ports connected to diffrent printing devices and handles send and receive of data for devices. These printing device expects data to be print in such a way that once you send data you have to wait for response from device and then and only then you can send next data. Here is summary of my code: I am assigning port details to both ports in form initialization On button click I am sending data to both ports one by one. There are two functions SendDatatoVIN() (which sends data to first serial port and waits for response and once it receives response it will send next data.) a ...Show All
Jweige Calling windows service from a web service
Hy! I've created a windows service, and now I need to communicate with it from a web service that is running on the local IIS. How could I do this Thanks, Bruno With ExecuteCommand/OnCustomCommand... you can't. If you do need parameters, I'd highly suggest looking into remoting . Thanks, that is one part of it... But how can I call some methods with parameters As I heard, remoting is very slow, is it 1-way, but not just for start and stop it, I should be able to call some methods from this service. Sorry, it may be stupid question, but this is my first time to work with a windows services, and I'm not completely sure if I un ...Show All
Mongsreturn How to Change the Security settings of IE programatically
Hi All, I want to change the security level of the Internet Explorer for Internet Zone to medium.By default its value is high for Windows Server 2003. I want to do it through my C#.net application. How this can be done Thanks, Nupur Hi Nupur, Is your problem solved Thank you, Bhanu. All IE settings are in registry. http://support.microsoft.com/kb/182569/ from the article, U can get the key to modify and value to set. In C# use RegistryKey class to modify the value(remember to call Dispose on RegistryKey instance). may be then u should accept the answer :) Hi, Yes it is solved. I was able to modified the CurrentLevel value in the HKEY_CURRENT_USER\softwa ...Show All
Ovidiu Padurean Little Help
I have figured out how to open webpages, but, if on the button click you open a webpage, say www.google.com. But, if you have a textbot on the program, and on the button click you want www.google.com/i-typed-this-in-the-textbot, how would you go about coding that Thanks it should do well, it adds %20 between spaces as that is what the html equivelent is. What is the URL overall when you press that button Sure, ok, basically I have a program, it has on it: 1 button, 1 text box. If someone types C# into the text box, then clicks the button "Search", it will search C++ on a website, lets call the site "www.search.com". When they enter C++ and click Search, it will open up a webpage, www.search.com ...Show All
Mark Traudt Prevent class from raising event
Is there generic way to prevent class to raise specific event, execute some code and then restore this event, without knowing event sunscribers For example, this is non-generic way: checkBox1.CheckedChanged -= checkBox1_OnCheckedChanged; checkBox1.Checked = true; // doesn't call checkBox1_OnCheckedChanged checkBox1.CheckedChanged += checkBox1_OnCheckedChanged; // restore subscription I want to do this by generic way, without knowing anything about CheckedChanged event subscribers. Pseudo-code (not compiled): EventHandler e = checkBox1.CheckedChanged; // keep existing subscribers checkBox1.CheckedChanged = null; // cancel notifications checkBox1.Checked = true; checkBox1.CheckedChanged = e; // restore subscribe ...Show All
vbtheo Creating an application installer...
Hi all, Sorry if this is the wrong forum to post this Q in... Could someone please give me a step-by-step guide of how to create an installer for a Windows application I've done (C# VS 2005 Pro)... as in how to tell it where to install to ..etc. Or if you could guide me to an on-line tutorial/link. - Where to install the app too - How to add folders to the install directory ... as in I need to add a folder containing images - Add it to the Start Menu & Desktop C:\Application DataFolder ImageFolder *.gif : Application.exe Thanks ...Show All
Dan Mikkelsen Splitting A File's Path
I am loading a bunch of file paths from one file. Here is an example. Original string is "Projects\\Shine\\bin\\debug". What I want is "Projects", "Shine", "bin", and "debug" all in separate strings. Hi, you can use the sting.Split command using the \ character as the deliminator. That method will return an array of string for you. Mark. Hi Wasting <g>, If you feel the issue is resolved to your liking...mark the post(s) that helped you as the answer(s), so when others search the forums, they might be more inclined to look at a successful post than a non successful one and determine which post(s) are the most helpful. Also in the se ...Show All
ChandraP Problems with a DLL
hello all, I've been receiving an AccessViolationException whenever trying to pass a couple of parametres inside a function placed in an external DLL: public partial class soldsk { [DllImport("C:\\...myProject\\\\bin\\Debug\\myDLL32.dll", EntryPoint="sendtram")] public static extern int SC_sendtram(int hwnd, int port, int pasdereponse, int vto, string Commande, ref string Reponse); } ... //some code Ret = (short)soldsk.SC_sendtram(hwnd, port, 0, 0, command, ref rep) (when command and rep are strings of a fixed length) Obviously, when I leave out the 'ref' keyword, it all goes smoothly, but the parameter rep is not affected by the DLL method (who normally gives it a new value). Hope this was clear enough- if not just let me ...Show All
