I've just coded an add-in with .net2003, now if others want to use my add-in, they must download my add-in solution and build it, then install the add-in. If they just download the setup(.msi .exe .ini) files and install the add-in, .net2003 will throw unknow exception when connect the add-in.
why? Now I know some assembly will be registered through the building, but do the users must register the assembly through building the project? the setup files can not do this?
I have been having a problem with my Form (Design) window in studio 2005. I am developing what is essentially a database front end and have a single winform with a splitter with a tree control on one side, and a tab control on the other. The tab control has one or two datagridview controls on each of about 8 tabs, with some of the tabs having dropdowns and textboxes each with a label. One of my tabs has a sub tab control with a single datagridview on it as well. My problem is that when I make a code change anywhere in the project, my design window does not refresh very quickly (5 - 10 seconds) and sometimes does not refresh at all and locks up (closing and the re-open resolves). I opened a call with Microsoft and they basically said that I had too many controls on a single winform, and that I should use a more powerful machine. (I have a P4 3.4GHz with 1G ram)
Has anyone else had similar issues with the design window, and if so is there a way to stop it from refreshing with every single minor code change?
I've had plenty of designer issues with 2005, everything from unresponsiveness, to the "cannot load xyz..." errors, to outright silent crashes of VS. The best way I see to deal with the designer is to close all designer windows before you build your project. If you've made a change to a cross-project control, make sure to rebuild that control. Open the designer. If you get any designer errors, do a Clean Solution (or optionally, delete the bin and obj directores in your solution projects) and do a rebuild of the solution. This solves most of my designer issues.
Similar problems here too. Often my designer turns to a sea of pink errors (telling me that it can't cast from one object to another of identical type). Sometimes Visual Studio simply 'disappears' but my favourite is where just opening the solution crashes Visual Studio effectively paralysing development. Good work MS.
No service pack/patch for another six months too apparantly.
I think this is just something we have to put up with
I set breakpoint on the second line to be sure, that the first method was actually executed and run the program using the Debug configuration. No output in the "Output" IDE window though :/ I have just switched from VS2003 to VS2005 and I have a fairly large application written natively with .NET 2005 to debug and no Debug logging functions output is making my efforts to understant the logic of that application fairly impossible.
I would appreciate any help. I think that the solution is very simple, but somehow cannot find it when Googling the net.
Have a look to see if the output is showing in the Immediate window.
There is an option in 2005 under Debugging/General for re-directing all output window text to the Immediate window. If this is set then Debug goes to immediate rather than Output.
I knew that it would be a simple checkbox that was to be unchecked somewhere... well, maybe I was thinking more of a weekend than work and that is the reason that I had not noticed this option. Thank you
Can anyone help?
My application is reciving an array of data via TCP. This data has a JPEG image within it, aswell as other data. Once I have extracted to an array the JPEG image, I need to display it in a PictureBox control. Ideally converting my JPEG array into an Image class object would allow me to give the PictureBox the Image object for displaying. My problem is that I can see no way to do this apart from saving the JPEG array to a JPEG file and get the PictureBox control to load in the JPEG image by calling Image.FromFile(FilePath); I would rather not create a file as the application will be receiving lots of JPEG's and would cause high hard drive activity.
I would be gratefull for any help.
Thanks in advance.
I want to create a window system service that sits on the background and just fire another service/executable (i.e, notepad) every time a new user fast switches to a new session. How can I start a new process in another user sessions in WinXP using .NET 1.1 or 2.0? also how can detect the event of user fast switch to a new session?
I wrote this code once, I just checked the code of every new entered char, if it is bigger that the char code for '9' or smaller than the char code '0', than its not a number (I'm not sure that 9 is the biggest char).
but I can enter "5.5" or "6/8" in the TextBox .
how can it possible that the user enter "ONLY Number " in textbox.
You are parsing the string to a double, so why shouldn't you be able to enter 5.5? It is a double!
If you want only integers then use int.Parse.
Otherwise you can check each character entered as the other poster has proposed. Use Char.IsDigit to determine if it is a valid digit and reject anything else. But consider whether you need to support negative numbers as well. In that case you need to check for - as well.