Sstrain's Q&A profile
Windows Forms What's wrong with my FolderBrowserDialog?
Hi, I use the FolderBrowserDialog in installer class. However, when the dialog box is open, I did not see anywhere where a user can select a folder. It has just three buttons. Using MessageBox, I saw folder_browser_dialog.RootFolder = "personal". It does not looks like a path. What is the problem here Or FolderBrowserDialog cannot be used in installer class Please help me. Many many thanks. Below is the code. FolderBrowserDialog folder_browser_dialog = new System.Windows.Forms.FolderBrowserDialog(); folder_browser_dialog.Description = "Select the directory that you want to use to create tickler letters."; folder_browser_dial ...Show All
Windows Forms modifying the contents of datagrid at runtime
hello, How can i modify / Add the contents to the datagrid at runtime pls help Please Explain. Do you mean data in cells if so, you can modifiy the underlaying datasource, or use this datagridname(rownumber,columnnumber) = "hello" Joe ...Show All
Visual Studio Express Editions Registering and licencing
I have registered my version of visual web developer installed from CD but I have not received the product key. as I can obtain it The licence expires between a year... When you install from the CD Image you do not have to register the product. Have a look at the registration FAQ Item 7. Visual Studio Express edition Registration FAQ http://msdn.microsoft.com/vstudio/express/register/faq/ ...Show All
Visual C# Printing an image
Hi everyone, Can anyone show me a SIMPLE piece of code to print an image I'm asking because thus far I've found code that would make a rocket scientist wince. thanks, Ed. I don't think it gets much easier than: private Bitmap _bmp; private void Form1_Load( object sender, System.EventArgs e) { PrintDocument pd = new PrintDocument(); pd.PrintPage += new PrintPageEventHandler( this .PrintImage); _bmp = (Bitmap)Image.FromFile(Application.StartupPath + "\\test.jpg"); pd.Print(); } private void ...Show All
Windows Forms Limit number of lines in a TextBox
Is there a simple way to limit the number of lines in a multi-line textbox that wraps I want to be able to look for soft returns as well as hard returns. You know what I really miss I could swear that somewhere along the way before .NET shipped, the Control class had a SendMessage method. Man, that was nice. EM_GETLINECOUNT&nbs ...Show All
Windows Forms Expanding a ListItemCollection
How can I resize an existing ListItemCollection I have a listview that I wan't to populate using ListItemCollection.Insert(). I am using Insert the Instead method of the Add method because I wan't to control where the item is inserted. I get an exception when I try to add an item at an index that is beyond the size of the ListItemCollection. How can I expand the ListItemCollection before I call Insert I am missing a Resize method. Do you have any suggestions Thanks, Bo Did you mean ListBox.Items ListBox.Items.Count is read-only, so, use ListBox.Items.Insert() or ListBox.Items.Add() ... ...Show All
Software Development for Windows Vista 5342 install problem
I keep getting an blue screen after first reboot when trying to install 5342. I have a asus k8v se deluze motherboard with latest bios. amd 64 3000+, geforce 6800gt, 1 gig ddr. Everytime it goes to reboot after intial installing screen it goes to windows setup boot screen then crashes. I installed 5342 using same iso on another machine with much less hardware and installed fine. Anybody have any ideas I tried installing from windows xp, and booting from dvd and same problem happens. I have 3 harddrives installed with a few partitioned and I tried every partition and it still happens ...Show All
.NET Development WinForms Vs WebForms
Where can I get the list of pros & cons generally speaking WinForms are Richable but not reachable , on the contrary WebForms are Reachable (but not richable due to performance factors). so the question is : can we have a form that is both richable and reachable at the same time . the answer is simply , yes "Click-Once deployment ". there was an old article about hosting a windows form over IIS , and this would lead to the death of browsers we know today . http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnadvnet/html/vbnet10142001.asp so if we can really work this way by hosting winforms over IIS , why would we nee ...Show All
Visual Studio Team System Team Build Desktop Build problems
I referenced the How to: Build Team Projects on a Desktop but the how to is incomplete and I'm getting some errors that I hope that someone can help with this one. I have a project, I created the Build Type, I sync'd with the local drive. So far everything is fine. I ran MSBuild (from the directory with the Build Type) and set the SolutionRoot to the full path of my solution (relative paths didn't seem to work at all). I did not set the TeamBuildRefPath because I can't find any documentation on it so I'm not sure what it should be. I keep getting the following error: MSB1008 only one project can be specified Swtich: and That's it. T ...Show All
.NET Development Displaying the contents of one record on 2 or more forms
I have a database with a customer table that has about 60 columns I want to show the customer contact infomation on the primary form, and then show the account info, transaction info and other bits on seperate forms. I have my main form, which shows the customer contact details, but i can't seem to get a dialogform working to show the correct records. I'm trying to set the accountcode data from teh main form as the filter on the subsequent forms but i only ever get a blank result. Does anyone have any suggestions as how to acheive what i want Its very simple. I have a dataset containing a ...Show All
Visual Studio Team System VSTS Converter for Application Center Test
Is there a converter for importing Application Center Test (ACT) scripts into Visual Studio Team System Martin Danner Boise, Idaho There is not a converter. I believe a few users may have assisted the conversion effort by using "fiddler" to record a single iteration run of an ACT script and then saving the "fiddler" recording as a VS Web test. However, I don't have any other details and this is not a supported technique. Thanks, Rick ...Show All
Windows Forms RichtextBox Spaces distribute
I want to Distribute Spaces Which remains in each end of line to the whole line of <"RichtextBox"> like {MS word} & reach with the last word of the text of the line to the end of same line. such as:- (raul is a very good player . ) line ends with for example 3 space so you will distribute these spaces on the line to make the word (player.) at the end of line (.) refers to the end of line If you are referring to full text alignment, this is not done by adding spaces, it is done using custom drawing techniques, e.g. the string is measured and spread out along the line when it is drawn on the scr ...Show All
Visual C# Decompiled DLL
Hello. I've downloaded decompiled version of one dll writen on C#. And when i try to use the code in C# there is the following errors: "Error 1 The type 'dotnetWinpCap' already contains a definition for 'OnReceivePacket' C:\Documents and Settings\Owner\My Documents\Projects\MBwpcap\MBwpcap\Class1.cs 233 46 MBwpcap ", "Error 2 Inconsistent accessibility: field type 'dotnetWinpCap.ReceivePacket' is less accessible than field 'dotnetWinpCap.OnReceivePacket' C:\Documents and Settings\Owner\My Documents\Projects\MBwpcap\MBwpcap\Class1.cs 233 46 MBwpcap ", "Error 3 The type 'dot ...Show All
Visual Studio 2008 (Pre-release) How to serialize a SystemColor by its name and not its hex value?
Instead of serializing [Color="#FFAB83EF"], I'd like to serialize as [Color="{x:Static SystemColors.ControlDarkColor}"]. It looks like System.Window.Serialization.StaticExtension should be able to do it, but I'm unable to get it to work. Any ideas or help would be appreciated. Serialization isn't able to write out the color as an x:Static reference. It's actually the Color's TypeConverter that's producing this string, and it doesn't have enough context to know that it could be writing out a system color reference here. Thanks, Mike ...Show All
Software Development for Windows Vista Workflow changes over time
I'm writing a system that uses the StateMachine Workflow. There will be many long running instances persisted in the database. Say I want add a simple activity to an existing event handler. Say send an email out. There are existing workflow sitting at that state waiting for external events. Currently when you make such a change your existing workflows are dead you get the. EventDeliveryFailedException. I would hope that I don't have to version my DLLs each time I make a simple change that adds to the work flow. Am I missing something Thanks, Jeff Hi, To do what you describe in the ...Show All
