Answer Questions
stephanielauym DataGridViewTrackBarColumn?
Hello all, I want to put a trackbar in a datagridcell of datagridview. The trackbar must be visible in both editing and nonediting mode. Is possible Best Regards Sandro Peixoto Sure it's possible. Here's a tutorial on how to host a calendar control: http://msdn2.microsoft.com/en-gb/library/7tas5c80(VS.80).aspx And one for a numeric up down control: http://msdn2.microsoft.com/en-us/library/aa730881(VS.80).aspx I think those should get you started. ...Show All
Richard Morgan Setup package question
Hi! I need to create a setup package for an application that displays a banner, then calls another application. This part is not problem. The problem is that I need to create a setup package that takes a value entered by the user, then set that value in the banner app. I know I can create an app.config file to store app settings that can be read when the banner app runs, but how do I ge the installer to take the value entered by the user and update the app.config file Thanks! This thread has been moved from Windows Forms forum. ...Show All
FannwongCindy Cloning Forms
Hello, I have a series of forms that are very similar, but they contain different editable fields, and different columns in a DataGridView. I would like to ensure that all of the Forms and controls have the same property settings in order to ensure that they appear and behave identically. Right now, I am using a written checklist and sometimes I miss an item (my bad!). I've thought about creating an abstract Form class and subclassing my cloned forms from it, but that didn't work out very well due to the customization code that was necessary for each Forms view. Is there an easy way to save the properties of a Form and DataGridView, and then to programmatically apply them to a new Form and DataGridView ...Show All
John Wesley Harding Enumerate types in designed form's assembly
Hello. I'm creating a control which has a System.Type property. I would like there to be a dropdown in the property grid listing available types. Is it possible, from inside my derived UITypeEditor class, to get a reference to the assembly of the form shown in the designer so I can enumerate the types in it using reflection *bump* Finally got back to this bit of the project today. Does anybody know of a way to do this ...Show All
AdeptBlue how to create start up page for application
i am creating database application, i want to show starp-up page when application starts, just like when C# IDE starts...where i wanna show information about database size, used space etc. i need some help about this issue... If you're using .Net 2 you could use a WebBrowser Control and point it at a local html page that you create. Hi, You are asking about "splash screen".... You can easily create the splash screen using Forms by setting just couple of properties. Please refer the following links for samples for it, http://www.codeproject.com/csharp/PrettyGoodSplashScreen.asp http://www.codersource.net/csharp_splash_screen.aspx http://www.codepr ...Show All
Rob Smith Adding ampersand to create hotkeys
Hello all, I'm working on a form that contains several languages and therefore using unicode. The problem is that when I use ampersands on buttons in order to create hotkeys, the ampersand appears on the button text. Is there anyway to get around this Also, I wanted to know if there's a way just as simple to create hotkeys without having to use the button text This example here is the closest one I came up with, but it still looks rather complicated. You've got a strange problem here. The rendering of the button text is done by Windows Forms. If UseCompatibleTextRendering is true, it uses Graphics.DrawString() with a StringFormat instance whose HotkeyPrefix determines what is done with the ampersand. If it is false, it uses TextRe ...Show All
msJen MSI run from VS setup.exe is not themed
We are using the the Visual Studio 2005 bootstrapper to create a setup.exe that will install the .NET Framework 2.0 before installing our application. It works fine, except that the dialogs from our MSI do not display buttons or progress bars using the selected Windows XP theme. Instead, they appear with the Windows 95/98 look. I've experienced this problem using MSI's created with WiX and with VS2005. This isn't a huge deal, but I'd like to fix it if possible. Is this a bug, or is there some setting I need to add/edit Thanks. Sorry for my late reply, it's been rather hectic the past ten days. I thought this was probably just something I'd have to live with. It just seemed wierd that the problem only ap ...Show All
dhino Giving a code generated panel a handler
Hi, I'm making a program which contains a search form, I show results of a search as a list of panels which I create in a 'for each' loop, each panel containing all the information of each searchitem. Now I want to be able to select a searchitempanel, and my question is How can I put a click handler on the ,in code at runtime, generated panel Thanks in advance, Tobias I'm sure it is possible but I have never done this before so I can't really say much! I'm sorry! You maybe better of making a new topic about the question though...im sure someone will spot it :-) 'At the top of your class, where you declare global variables: Private WithEvents theEventClick As New Panel .. . ...Show All
Douglas911 Unhandled exception (System.IO.FileLoad Exception) in AppLaunch.exe
Hello, I am trying to publish my Windows Forms application and I am getting an error in AppLaunch.exe. I am able to publish the application but when I click on the Run button on the publish page, I get this error: "An unhandled exception (System.IO.FileLoad.Exception) occurred in AppLaunch.exe [2260]. Does anyone have any ideas and/or suggestions on what I can do Thanks for any help. Thanks for getting back with me. Yes, it runs properly outside of ClickOnce. I think it may have something to do with trust levels. Exception from AppLaunch.exe generally means application has been already installed. It could be that application itself is failing for some other r ...Show All
Gosovic Drag Drop filename fron datagridview row to external notepad application?
VS2005: My dgv has a column that contains the full path of a file. I would like the user to be able to drag the file from the dgv row in my app to a notepad icon on the desktop (or any other application that accepts a dragdrop of a file). I think I have the code to start the drag operation within the dgv working ok (code is in mousedown and mousemove), but I cannot seem to drop the file on the notepad icon successfully. What data type is the drop operation in notepad expecting I am sending a string with the full path name. Here's the code I am using for MouseDown and MouseMove: Private Sub dgvResults_MouseDown( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles dgvR ...Show All
akaballa Advice needed: Hosting Winforms application in Winform application
Let me explain what we need. We have an application that behaves like the Microsoft Management Console, let's call that application Management Console. In our Management Console we have a treeview on the left-hand side and a Window on the right-hand side. In the treeview we have nodes like Application1, Application2 ... clicking on each of these nodes should open the corresponding Winforms applications within our Management Console. It is like a plug-in system but the applications Application1, Application2 should be able to be run as stand-alone applications as well. With other words the devs of Application1 and Application2 should not change their code just because of our Management Console. Any leads concerning architecture and ...Show All
Nils VG Bmp size on dialog boxes...
Does anyone know what size the Banner bmp should be on the dialog boxes in a setup project Also what size should the bmp be on the setupsplash screen ta Mark Found it... Banner Bitmap should be 500x70px Splash should be 480x320px ...Show All
douglane19 problem in axwebbrowser.navigate()
Hi , I am using VS .NET 2003 on XP SP2 when I am using the axwebbrowser.navigate() in my code, its actually locking the file which I supply to it as URL. I am pasting the code below: ################################################################################### public string Xml { set { StreamWriter writer; object missing = System.Reflection.Missing.Value; missing = null; _fileName="C:\\XMLFiles\\"+Guid.NewGuid() + ".xml"; using (writer = new StreamWriter(_fileName, false)) { writer.Write(value); } _ctrlWeb.Navigate( _fileName, ref missing, ref missing, ref missing, ref missing ); if (_previousFileName.Length > 0) { File.Delete(_ ...Show All
Nickeay Form_FormClosing behavior
I have an event that closes the main form (the app essentially). However the app could be busy (same thread) with 2 potentially long running methods called from a timer. When Close() is called (from another class or from a callback in the same form) does it wait for these methods to complete No. But you can handle the closing event and set the flag in the closingeventargs passed in to not close the app. Figured.. Going to have to re-design to: Method1(); Method2(); this.Close(); ...Show All
Rocky82 Looping through combo box display members
Dear All, My problem is related to combo box. I have managed to bind values from a select statement from a database to combo box successfully with cbBox1.DisplayMember = "ID" ; cbBox1.ValueMember = "valueText" ; The problem comes when I run for ( int j = 0; j < cbBox1.Items.Count ; j++) { MessageBox .Show (cbBox1.DisplayMember[j]); } When I run through the loop I dont get the exact value of the DisplayMemberbut just one character from the DisplayMember. How can i show the whole text rather than then just a particular character. Thanks. Hi, Thanks for the answer. How about if the bound is not a datatable,dataset or dataview can we stil ...Show All
