Answer Questions
MetroP Adding a custom property designer to a form that will be inherited
If I create a form that will be inherited from and I add some custom properties, is it possible to add a custom designer like you can for a control Thanks! Kurt Rather than changing the designer for a form, you could add a StateMachineNode component to your form, which would sit in your component tray (or somewhere on your form, if you want some run-time user interface to it). Add a smart tag to the comp ...Show All
P.Hyde BindingSource CurrentChanged Event fires 4 times on startup? Why?
BindingSource CurrentChanged Event fires 4 times on startup, is this normal If this is normal behavior, is there a way for me to change this I only want the event to fire once, because I am loading companies at startup, and this would cause four hits to our database for the same information. I am using the RTM VS 2005. Running the following code will display MessageBox 4 times. public partial class Form1 : Form   ...Show All
ericch1 Printer Question
Can anyone tell me how to get a list of printers, change the default printer & get the path to the printer(s) whether they be local or network Thanks in advance Thank you for your reply I know how to get the default pri ...Show All
66cooper Oledbdataadapter query problem
Hello, I have an oledbdataadapter query a recordset. The query is as follows Select * from Table where ID = '" & txtFormID.text & "' My problem is that I cannot get the '" & txtFormID.text & "' part right. When I ha ...Show All
Shawn W Certain Events Don't Fire
Hello, I have a windows C# project with ToolStripComboBox and ToolStripButton, and I'm also using CAB and these files are in a loaded module. I tried a SelectedIndexChanged and Click event for those two controls, but they don't fire. Why don't they fire I don't understand the reasoning for that. Thanks, Brian Hey, THis corrected itself. I'm not sure why, but they were eventually firing. I'm having a problem w ...Show All
Partho P. Das Object Reference Error.
Here is some code of mine: Public PassedLine As String Dim myValue As String = PassedLine If myValue.IndexOf("Jason") > 0 Or myValue.IndexOf("Gaylord") > 0 Then ...Show All
Hercules Problem dragging documents from my App into Word2003
Hi, I've been trying to implement drag and drop from my application to other applications. It's a little more complex than usual in that the files first have to be downloaded over the web, but this should not be a problem. When the drop occurs, I download the file over the web to a local directory, and then copy from here to the external application. I've implemented this as shown below and this works fine for dragging my word documents ...Show All
StriderIRL Searching for the VB or C# code with database
I'm in the process of looking at TaskVision. Noticed that the source wasn't online anymore but got it anyway :-) Now, I'm looking for an installer of TaskVision or the source with a database script so I can set up my own server to host&nbs ...Show All
bobberino1 Form designer generate code in incorrect order in my usercontrol
Hello everyone, I create a control via visual basic .net 2002. My control uses ImageList and ImageIndex properties. I add an ImageList control to the form and bound it to my usercontrol. When I use usercontrol, Form Designer generate code with two problems: 1. ImageIndex come before ImageList (alphabetical order). this create a problem because ImageList need to set first. 2. Form Designer ge ...Show All
Sam Matthews Adding extra controls to a User control as a container
I would like to create a UserControl as a base for a set of other controls for a common look and feel. I create UC1 inheriting from user control and add in a groupBox and a inside the group box a small panel containing some labels and stuff that will be common to each inherited control. The group box is dock.Fill and the panel is dock.Top. e.g. +-Groupbox---------+ | +---Panel--------+ | | | Label1 Label2 | | | +----------------+ | | ...Show All
PeterNo What is the close ancestor of ReportViewer?
Hi! I am working on printing/emailing part of my windows app in .net 1.1 world. I am wondering what will be the equivalent of the ReportViewer in 2005. I am looking for some basic printing functionality, and Crytal or reporting services are not in the scope at this time. Thanks! While I have zero experience with them myself, I would expect that you’d simply use the available Crystal Reports Viewer ...Show All
ArekBlonski Please Help !!!
How can I tell when a form is in design mode Please Help !! -Andy Moyer Thanks for your help all, the problem is that Component.Design mode is Protected, It would be nice if it were Protected Friend or Public, here's why& ...Show All
BogdanM Could I change the cursor of application from my C# class derived from ISerializable
Hi,I am a MFC programmer, I can use AfxGetApp()->LoadStandardCursor(id) from any class to set the cursor of application. now I want to know Could I change the cursor of application from my C# class derived from ISerializable Thank you very much. But my class is not for Control, I want to set winform 's cursor from my class, how to do The Control.Cursor property sets which cursor is used when the mouse is over that ...Show All
codemare Only first child control is drawn
I am designing a UserControl that contains a panel among other things. At any time more UserControls (of a different type) can be added to the panel. The problem is that I only see the first control drawn in the panel. Via the debugger, I know that other controls are being inserted sucessfully into the panel->Controls list. Additionally, I know the OnPaint method is called for each of the controls in panel->Controls, except the clippi ...Show All
dotnetat43 DataGridView Performance issues with CellFormatting
Hello: I'm using the DataGridView for displaying data to the user. The number of records that will be displayed at a certain time could vary between 0 and 150. I use the CellFormatting event handler to do some formatting like changing the font face and the background colors based on the cell values. Earlier we were iterating through the rows of the gridview to accomplish the same. Since the performance was dreadful, I changed the code ...Show All
