Answer Questions
swells Writing exe path to registry.
How would I write the path of the current program I am running to the registry using either the load event or in a setup program Thank You! I'm sorry, I worded that wrong. How could I get a setup program, when run, to write the path of the install directory to the regristry using the setup & deployment project installer, you would have to create a custom action to do this, again using the same method above. You would probably create this custom action on the AfterInstall (or something similar to that, or on the Commit event) event. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vsintro7/html/vbconCustomActions.asp http://msdn.micr ...Show All
veep HelpProvider - Line break & Min/Max
Hi 1. My mainform is a "FixedDialog". It has the MinimizeBox=True and MaximizeBox=False. Is it possible to have the help button " " left to the MinimizeBox It only turns up if I set both MinimizeBox and MaximizeBox to False. :| 2. Is it possible to have line-breaks in "HelpString on hlpProvider" in the Property Window If I write "This is\nmy text", "\n" is not read as a line-break. (The same for the "Text" property of the Label component) Kind Regards In C#, make that: this.helpProvider1.SetHelpString(this, "hello\r\nworld"); Thanks! (I actually tried "\r\n" in the Property Window with no success.) What is th ...Show All
Troy Lundin Designer Support when Control has abstract base class
We have a set of user Controls that must derive from an abstract base class BaseControl. BaseControl itself is derived from UserControl. Is there a way enable designing and modifying those user Controls in the VS 2005 Forms designer AND have them derived from an abstract base class Currently we get this Excpetion when trying to open those user controls in the designer: The designer must create an instance of type XYZ.Controls.BaseControl' but it cannot because the type is declared as abstract. at System.ComponentModel.Design.Serialization.CodeDomSerializerBase.Error(IDesignerSerializationManager manager, String exceptionText, String helpLink) at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSe ...Show All
P.H. Monitoring Changes on a Tab Page
In my WinForms app I have a tab page with a bunch of controls on it (e.g. textboxes, checkboxes, buttons, radio buttons, etc.). Is there an event, or a few events, of the tab page that I can monitor to see if any changes to any controls on the tab page have been made Robert W. http://pocketpollster.com rwerner wrote: It is not the selecting of the tabs I'm interested in but the altering of controls on a tab page. I thought perhaps there was a "Parent Control" event that would be fired when anything happened to any control on a tab page. Apparently not. As you're seen, there's nothing "built-in" like that. As nobugz mentioned, you could iterate all the contained controls and ...Show All
Chas4 Error starting application after publish and install
Hi People, I have been struggling with this for over three days. I was fortunate to find this forum. Please help... This is the error message in the text file.. PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES Deployment url : file:///C:/Documents%20and%20Settings/dj76627/My%20Documents/Visual%20Studio%20Projects/PaintSchedulingSolution/PaintScheduling/Paint_Publish/PaintScheduling.application Application url : file:///C:/Documents%20and%20Settings/dj76627/My%20Documents/ ...Show All
Mario M. PictureBox1.Image = PictureBox2.Image
Hi, I am trying to copy PictureBox1.Image to PictureBox2.Image because I am streaming a webcam video. The webcam video is displayed on PictureBox1. In order to show the webcam video on other computer, I may copy the webcam video from PictureBox1. However, it can't be simplily achevied by making a button like private void button1_Click(object sender, EventArgs e) { pictureBox1.Image = picCapture.Image; } How can I copy the pictureBox1.Image to other pictureBox You could download my application at: http://www.yousendit.com/transfer.php action=download&ufid=CB1D2DAC74B050A3 Hi crogenicdude, Wrong forum all together but here is a suggestion. The PictureBox. ...Show All
sanchita Capture mouse move in container control
Hi, I have a panel with some child controls. The child controls can have their own child controls, etc. How can the parent panel track where the mouse is (when the mouse is inside the parent panels area) For example, how can the parent panel be notified of MouseMove events when the mouse is over a child control Thanks! You can use this custom panel to be notified as the mouse moves over child controls. Imports System.ComponentModel Imports System.Drawing Imports System.Windows.Forms Public Class MouseInputPanel Protected Overrides Sub OnControlAdded( ByVal e As ControlEventArgs) DoControlAdded(e.Control) MyBase .OnControlAdded(e) End Sub Private Sub ChildControlAdded( ByVal ...Show All
brohans Uninstall removes files and leaves executable running
Hi, I have used VS2005 to create a .msi package for my software. The problem though is that when I uninstall the software either through "Add/Remove Programs" or through running the uninstaller again, the uninstaller will remove all of the files but leave the executable running. Is there anyway to have the Installation project stop the executable, both when the application is in window form and in the system tray Thanks, Adam I'm thinking about doing the same, but the .exe doesn't seem to be deleted on uninstall (Probably because it's running ) I found the fix on another forum... I created a FileWatcher to watch when the .exe was getting deleted. When it did ...Show All
danych is there any way to scan a windows form for controls and objects ?
Hi All, Is there any way or application which scans a windows form (or even multiple forms at a time) and gives you the controls and objects prosent in the form. The similar app is available in PowerBuilder... Any help is greatly appreciated. Vivek Natani Check this thread for the AllControls function... Just to give us an idea of what you are talking about: are you trying to control another program from yours Do you have the source code available for the other program Do you know for a fact that it is a .NET application Yes, well that is going to be a separate application which will take any application (obviously a windows form .Net application) as input, find ...Show All
NuclearChicken Incremental Search
Hi, how can i do a incremental search in a DataTable or DataGridView I was a Delphi developer and now i'm studing and developing .NET/C#. In Delphi, i could use a simple command like: Table.FindNearest('ABC'); but i don't know how can i do that with C#/.NET! You can use the method Select of the DataTable: table.Select(filterExp, sortByColumns); This will return DataRow[] with all rows matching the search you defined. you can use: table.Select("SomeColumn like '%ABC%'") to find all rows matching this search critiria. Thank you Guys. This samples use the pubs database and sqlexpress. I have a datagridview and textbox on the form. In th ...Show All
ramakrishna Apollo Design Buttons To be used in c# other than the original ones
how i can design new buttons to be used in c# other than the original one,what programs should i use If you don't want to create those buttons by yourself, you can use a program called sikncrafter. You can draw those buttons by yourself int button's paint() event. Check this: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=42809&SiteID=1 There's also something: http://www.windowsforms.com/ControlGallery/default.aspx Category=23&tabindex=5 Timo ...Show All
JoshuaW Sorting Bound DataGridView by ComboBoxColumn displayMember
I am having a hard time trying to sort a datagridview by a combobox column. Is this possible Where do I start. Thanks, Rob I have been trying to figure this out for a while now and ran into the same problem with IComparer. I am working around the issue by sorting the data in the fill method of the tableAdapter and not allowing sorting for that column. Rob Here is a link on how I do it. I have the same problem. Is there any solution I've tried IComparer but it doesn't work for bounded DataGridViews, i.e. DataSource property must not be set. Martin The solution was add a new query to the TableAdapter that sorts the ...Show All
Bekas Problem in DrawReversibleLine in OnPaint() (C# 2.0)
Hello, I read article on drawing rubber band lines and its of great help Drawing Ruber-Band Lines using the .net framework Feb 17 2004 But i am facing a problem in OnPaint method explained below. Currently i am working on Graphics application where i need to have CrossHairs for my application which needs to be drawn on panel. So i decided to use to DrawReversibleLine() method and it worked well for moving crosshairs (vertical/horizontal guide lines), but the problem is it only appears when i do mousedown or mousemove. But i also want to display crosshair in default mode too. For this i wrote the code to draw crosshairs in overridden OnPaint() method, again used DrawReversibleLine() in OnPaint() and to my surprise i dont see any cro ...Show All
sGurpreet OpenGL control
Hello everyone ! I'm new to windows forms ( actually I started kinda...today)... I was able to bind an OpenGL context to a form, and later create a GLForm derived from Form. Both worked perfectly, no flickering at all, but I was rendering directly in the form. I'm now trying to create a OpenGL control, derived from UserControl, which alows me to render only in that control. I was able to create the control and render onto it, but it's flickering... alot, I tried to override the OnPaintBackground method of both the control and the form that holds the control, but flickering was still there .... My paint method is very simple, it just clears the screen using OpenGL, render stuff, and then swap buffers. Anyone had a pr ...Show All
Mike Greenway Threading and the FileSystemWatcher
I need some help with the filewatcher class. I am trying to use it to monitor a directory and get the list of files that are created and deleted from the directory. What I want is a thread to do the processing of the file and send back status messages to the windows form or system tray application that is created. I have started some of the code, and I used to have something that did this back in .NET version 1, but i have since lost the code that I wrote. Here is what I have so far FileSystemWatcher _fw = new FileSystemWatcher (); delegate void SetStatus ( Label tmpLbl, string text); Thread _wrkThread = null ; public fMain() { _fw.Changed += new FileSystemEventHandler (_fw_Changed); _fw.Deleted += ...Show All
