Answer Questions
c.c. starting an .net application on another server
I know how to start another application by using the command Process.Start(filePath) where filepath = "c:\program files\folder\run.exe" But when I install my .net app there is not a .exe only a short cut in the start/program menu ie c:\documents and settings\myname\start menu\programs\suntron\myprogram I need to install myprogram(consol application) on a server and have a button in a application that the user has on their desk top click to run the prcess.start(filepath) which is installed on a diffrerent server i tried \\server\c :...... but no good if you want to have shortcuts then you are best creating an installer (setup) in VS2005, which allows you to install the a ...Show All
Ron L Designer error
I recieve the following set of errors in the designer tab when I try and compile my program. I am new at using Windows Forms. I know you are not supposed to write code in the automatically generated code, but I don't know where else to put it. Could this be the problem C++ CodeDOM parser error: Internal Error Hide at Microsoft.VisualC.CppCodeParser.OnMethodPopulateStatements(Object sender, EventArgs e) at System.CodeDom.CodeMemberMethod.get_Statements() at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration) at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationMa ...Show All
Prasenna SQLXML as a custom prerequisite
Hi all, I need to install SQLXML as a custom prerequisite. Can someone point me to a discussion on how to do this I can't seem to find any examples or tutorials or discussions to get me started. Thanx! WNC Sure thing: http://www.codeproject.com/dotnet/dotNetInstaller.asp Another nice thing is you can modify the source code for this. We include the exe for this in our installation project, and as a post build step, publish this exe as setup.exe, renaming the msi output from the installation project to _setup.msi. The bootstrapper (setup.exe) is configured to run this after it has successfully completed its work. An xml configuration file accompanies the installation to detect and install prereqs as needed. We've modi ...Show All
Marasma Loop capture image and generic error occured in GDI+
I've application to capture video of image and grab the still image. It runs well untill I put loop to regrab the still images many times automatically.. and the error (generic error occured GDI+) happend. For your information, I also run different code of application that have similar function which to capture the image repeatedly that I found from internet. However, it give the same error message. I think maybe I've to setup something in the configuration but I still blur about it. I'm using C# Express edition. Could anybody help me please... Hi shuhada, A little more information would be useful. 1) What are you using to capture the video VFW DirectShow something else 2) What method are you using to capture the ...Show All
Diki problem with dynamically created control
Hi all, Today i have created an application in which i'm placing some controls templates (button,textbox and label) on the form at runtime i'm creating the dynamically the controls. My intention is when the user clicks the template he can draw the control on the form. so that i can create any number of buttons,textboxes and labels and I was also added the evenhandler to the button controls but my problem is i was unable to get the name of the control button when i was click on it, instead what i'm getting is the name of the last button what i was created. for feasibility i'm giving the code here.Hope i conveyed my problem properly.looking forward for the solution. -regards GRK Dim x As Integer 'to hold ...Show All
rod_r Reduce the height of textbox control
By default the height of the textbox is 20, I try to change to 17 but it back to 20 again, do you know a trick to reduce less than the minimun of 20 thanks in advance for your help, Edward Hi Edward, If the TextBox.MultiLine property is false, you can only change the height by changing the font size. If MultiLine is true, you can size it anyway you want. HTH, Mike do you know where I can find a free textbox control that handle OnPaint, and get control's border to any height and width base in control's size thanks for your help, but I don't like to use a multiline instead one-line textbox, I choose use OnPaint but I don't have the expertice to do it. ...Show All
windflower ToolStripComboBox - SelectedIndexChanged is not raised when text is deleted.
Hi, Here are the steps to reproduce the problem I am having: Using a ToolStripComboBox filled with items: 1) Select an item in the ToolStripComboBox's list. (The SelectedIndex changes to the index of the item you selected, and the SelectedIndexChanged event fires.) 2) Delete the text in the ToolStripComboBox's text box. (The SelectedIndex changes to -1, but the SelectedIndexChanged event does not fire.) Is this a bug I want to use the SelectedIndexChanged event to enable another control when an item is selected in my ToolStripComboBox, but the above behavior would allow the other control to be enabled when no item is selected. Thanks, Johanna Belanger The regular ComboBox control wo ...Show All
LPlate Update fields upon saving
What would be the best way to update an editor and edit date column upon saving so that only rows that were changed would have those columns updated after the save. You may try the use the Controls collection to get a certain cell and set it value. Or if you bind the datagridview to a datasource, you can also change the value in datasource. Help this is helpful Is there a command that allows a specific cell in a datagridview to be set to a certain value. ...Show All
Peter D.252325 panel layout
Hi, I have a panel in my windows form application that has six buttons in a single row. I want to layout the buttons so that when the window is resized they fill out (shrink and grow) at the same rate. Is there a way I can do this Thanks, Wallace Thanks for the answers. I will try this out and let you know. Wallace I can't find the TableLayoutPanel anywhere. Is it only available in a later version Wallace Sure. Add a TableLayoutPanel to your form. Make it have one row and 6 columns. Edit the columns so that they are all is set to the same % width and click ok - it will then recalculate the correct percentages for you. Then ...Show All
Mark Macumber Nested events
I have an win forms application that contains three user controls. There is a one to many relation between control B and A, a one to many relation between control B and C, and a one to many relation between control C and the form. Control A contains an event that needs to be raised up to the form. To accomplish this, I created an event in both control B and C. For example, There are 2 "C" controls with 7 "B" controls, and 0 to many "A" controls within B. All controls are being dynamically created. Controls A, B, and C are instantiated at run time, so my event handlers all wire up to a single delegate b_onchange, rather than b1_onchange, b2_onchange etc.. What appears to happen in this case, is when the event ...Show All
Alexander72 Multiple Forms
I have multiple forms that get loaded, Can anyone correct this for me please private void fnLoadForm( Form frmM) { Cursor .Current = Cursors .WaitCursor; frmM frmS = new frmM(); frmM.ShowDialog(); } Are you passing a form instance to this function, or just its type In the first case you don't have to initialize your form in the function, just show it. Try: private void fnLoadForm(Form frmM) { Cursor .Current = Cursors .WaitCursor; frmM.ShowDialog(); } If its just form's type, you'll have to use Activator.CreateInstance(type) to instantiate your form by its type. Andrej Correct Gabro, the ...Show All
jca_john Make a networked drive appear local?
Hi everyone, need a bit of info. Here the situation: Client has a 50 PC network, wants to remove access to C: drive but wants to make the networked "Shared (D:)" drive appear as a local drive (i.e not using "map network drive" function). Does anyone know how I can achieve this I have seen it done before. Regards and merry christmas to you all! AJ sorry, is this software development related I know one of the requirements is for the BIOS to support "Boot From LAN" or a software that allows you to emulate a CD-Rom which is actually pointed to a network location. I think my former college library used a software that sounded like "Vanguard" to limit the access to ...Show All
David Cautley Collection property in User Control
Hello. I have a question about the user control. I'm making the user control which have a collection of another control. Even though I marked the attritube [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)], it doesn't write the property of the inner control in the "Form.Designer.cs". My codes are here. ------------------------------- public partial class UserControl1 : UserControl { private TestControlCollection mtxtValueColl; [Category("MyTest"), Editor(typeof(CollectionEditor), typeof(UITypeEditor)), DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public TestControlCollection TestCollections { get { ...Show All
Generic123 Component not shown in design mode
I have developed a new component derived from TextBox which searches for a term specified by TextBox.Text in the database and lists a result set inside a listbox. The problem is while I can drag-drop it from the toolbox and it works fine in runtime, it suddenly hides from the design view once I build the application. Any idea I have just found more about the problem. I hope this may help someone to offer a solution. The problem occures when the component (which is derived from TextBox) tries to add it's internally defined listbox to it's parent's "Controls" collection. This removes the TextBox itself from the collection once the project is built. I'm still wait ...Show All
Don Isenor How to display an XML file in a DataGridView
I am using VS2005 and WinForms. I am having a heck of a time figuring out how to display an XML file using the DataGridView control. The code that I am having is below. Any hints or help would be greatly appreciated. Thanks in advance, Les private void btnBrowse_Click(object sender, EventArgs e) { OpenFileDialog dlgOpen = new OpenFileDialog(); dlgOpen.Title = "Select a File"; dlgOpen.Filter="XML files (*.xml)|*.xml|All files(*.*)|*.*"; if(dlgOpen.ShowDialog()==DialogResult.OK) { strFileName=dlgOpen.FileName; // create a dataset object DataSet ds = new DataSet(); // read the XML documet's schema ds.ReadXmlSchema(strFileName); // create an XML document xdd = new XmlDataDocument(); // Load the XML file into the XM ...Show All
