I'm attempting to do what I considered simple data binding between a BindingSource and a ComboBox. I run into issues when the class I am using as the DataSource of the BindingSource has a property that is an instance of a generic class.
I have the following generic class:
public class GenericClass<T>
{
public T Code { get; set; ...
Does ToolStripStatusLabel DoubleClick ever work?
Private Sub myToolStripStatusLabel_DoubleClick(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles myToolStripStatusLabel.DoubleClick
MessageBox.Show("WORKING!")
End Sub
Only Click works. DoubleClick does not even if Click is present or not.
...
I'm trying to save some layouts from DevExpress Grid Controls so that users can change the layouts and reload them in at a later use of the control.
My question is this for speed issues I am loading the control via a user control inside of a form. Now my problem is I am creating the control by adding an instance of the control to a pane...
I'm creating a new shorcut within and update of my program on the Start Menu
I worked getting the Special Environment variable ALLUSERSPROFILE and it worked for me under XP, it returns the right path, when using it under vista ir returns c:\ProgramData which is useless. Reading the Environment variable StartMenu is also pointless it r...
I want to upload images to my SQL Server database. I have two buttons , One picture box. With the browse button, I am able to select the file from disk, and it is displayed into the picturebox.
The problem is that I am not able to save the picture from picturebox into the database.
Please help me out with the code. Appreciate it.
...
Hello, i have some WinForms app (Framework to develop some simple apps), written in C#.
My framework later would be used to develop win forms applications. Other developers they are beginers often and sometimes do not use Parameters - they write direct SQL in code. So first i need somehow to do protection in my framework base classes in...
I am using Word's Spell Check in my in house WinForm app. My clients are all XP machines with Office 2007 and randomly the spell check suggestion box pops up behind the App and makes everything "appear" frozen as you cannot get at it.
Suggestions? What do other people do to work around this or stop it altogether?
Thanks
Below is my ...
Hi,
I have created a tab control and few forms. Each form opens in a separate tab when a button is clicked
I have take care so that the form does not open again in a new tab if its already open. But I am having trouble bringing the tab to focus.
I want to Select the From in the tab and bring it to focus if its already in the tab lis...
Hi,
I can't see DataGridView Properties in my C# program
in Visual studio 2005.
I can see the DataGridView on the Form - but can't see its Properties.
Why ?
Thanks in advance
...
I have created a UserControl that has 3 panels.
What I what to do is expose one of the panels to the Visual Studio designer so you can drop controls inside that panel.
Currently I have the UserControl on a form but dragging say a text box over it will have the text box paint over the UserControl and not be a part of the user control.
...
I want to delete the current row in a grid only if a specific value exists in a column.
How can I get the details for the current row?
...
I'm building a WinForm with quite a few dynamic elements, and I think I'm having some trouble with the parent/child relationship within nested controls.
All the existing questions I could find seemed exclusive to WebForms, which wasn't entirely useful.
I've also had some trouble with custom-made controls, but that may be a related issue...
Alright, so i built myself a control, and id like to make it so when somebody launchs my app, they can drag on my control just as if they were dragging on the title bar of the application. What is the best was to do this?
My experiments so far: Ive played with the mousedown,up,move events, and tried to decifer when the mouse has been mo...
I changed the localizable property on a user control and the designer file was set to an unusable state.
Now the variables components and statusMessageControl are never initialized.
Is there a different solution I should be doing instead of moving the declaration and initialization of these variables to the main code file?
The code went...
Hi, I have custom control which i am rendering inside dailouge box.
this custom control has a link lable lnkLable. I want to close the opened window when i click on lnkLable.
right now i am finding the parent of my conrol which will be dialouge control in the end and then calling the dispose method of that, which i dont feel very good t...
Hi there
I have a requirement to create a windows form control which has to detect username, password and address fields in a browser.. so when i navigate to a page that asks for a username or password, the application asks me if it should fill in the data for me.
How do i get the form fields in a browser?
and how do i fill them in, a...
The question is in the code. Cannot understand why this is happening.
private void listView_DrawItem(object sender, DrawListViewItemEventArgs e)
{
// This works Ok
if (e.Item.Selected)
{
// ...
}
// This works wrong!
// e.State is always Selected! Why?
if ((e.State & ListViewItemStates.Selected) != 0...
I have a form that displays HTML through a WinForms browser control. I wish to implement search for the contents of the browser. The requirements are:
One should be able to search for one
or more terms
Each hit in the text should be colored e.g. in red
Navigation should be provided so that one can easily move from one search hit to t...
Is there a way to create a winforms app, that detects an open browser and then reads the html.
i need to create an app that checks your browser and if there are fields like address, email etc. the winforms app must automatically fill it in.
...
I wonder what the Form.KeyPreview property actually is good for? Why do it exist and what do I "risk" by setting it to true? I guess it must have some negative effect - otherwise it shouldn't exist at all (or at least be true by default)?
EDIT: I know perfectly well what it does. I'm asking why. Why do I have to set it to true in order ...