Hi,
So I have a listbox that shows the subject of an email (I use the chilkat imap client) when I select the subject of an email I want to show the message body in a textbox but i cant figure out how to do it, obviusly i use the listbox selectindexchanaged event but how would i go about it
Code So Far
// Create an object, connect to ...
I have a DataGridView control and I'm checking if I'm getting the correct value of column 0
But when I click my button to echo the value, I always get this error...
Are there errors in my code? Or what?
...
I'm adding buttons to form with loop and i noticed adding click event handlers slowing down application too much. Later i tried mouse click event instead click event and it is working instantly.
This screenshot showing my test result:
Source code: http://pastebin.com/qVewNm1u
Results for 1000 event handler:
Click: 2892ms
MouseClick: 1...
So i have this control, and im overriding it to create a transparent background with this:
protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x20;
return cp;
}
}
On the paint method, im doing this:
protect...
Hi,
I have one excel workbook and, in one of the worksheets there is one cell where there is one embedded workbook.
I want to read/write cells on that worksheet using interop.
Please help me on how will I read/write on that workbook.
The formula for that cell is =EMBED("Worksheet","")
...
I am working on application which uses a DataGridView control. Since there is a lot of data I use the VirtualMode to use paging, but even with this feature this take a while to update DataGridView. So I created a control which spins and entertain an user. Unfortunately there are some issues with this solution, namely when the entertainme...
I have a form that calls a custom child form. The child form is basically a popup box that gets some user data.
I want the Parent form to process information returned by the Child form.
The problem is, the Parent form is calling the Child, and isn't waiting for a reply.
Ideally, I'd like to make the Child form return a DialogResult. ...
I make new project and simplified it to check if this bug is real, and this is my code:
private void button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < 10; i++)
{
groupBox1.Height += 1;
Thread.Sleep(100);
}
}
private void button2_Click(object sender, EventArgs ...
I am tired of flickering of GUI and every possible control, milions of articles about double-buffering, ControlStyle flags and so on that don't even work; look at this examples:
http://stackoverflow.com/questions/1333393/how-to-prevent-a-windows-forms-textbox-from-flickering-on-resize
After reading this question, other on SO, and many ...
I am using this PictureBox on a form, to this picture box I use the AForge Code. I pass the REFERENCE of the pictureBox into a webcam class I create that initializes the webcam and tells it where to draw its frames to....so it happily draws it frames... no problemo.
But then certain times (when I want to do stuff with said image, if a ...
I am creating a download manager, and I need to be able to find out what link was clicked on (so my download manager can begin downloading the file), and also need to be able to stop the browser from launching its default download manager.
Does anyone know how to go about doing this, or know of any links to articles/tutorials/related do...
Hello,
In one of my WinForms applications, I have a window with a ComboBox for the user to select a customer from.
The customers in this list box are in this format : "CustomerID - CustomerName", for example "004540 - NorthWind Traders"
The native WinForms combobox has an autocomplete feature built-in and it works well: the problem i...
I am working on a map editor for my game and I use the arrow keys to scroll around the map area. Currently I'm using the KeyDown event, which works fine for scrolling up, down, left or right - but my question would be how to allow diagonal scrolling. Currently, if I hold the right-arrow and then (whilst keeping the right-arrow held) I ...
Can you use Html DOM in a Internet explorer plug-in to...
1) write/Auto fill in a form? From variable value assigned by your program.
2) Read values in label? Textboxes? And use them in your program?
Or better to just write a winform with web browser control?
...
Is the website able to determine if a particular IE add on has been installed or not?
How do you have the web page detect the IE add on?
...
I'm working on a 2-tier application where WinForms client makes direct calls to the database. In one of the scenarios I need to display a list of Customer entities to a user. The problem is that Customer entity contains a lot of properties (some quite heavy) and I need only two of them - first and last names. So to improve performance an...
I am seeking a, preferably free, crumb-bar control for my app. For those that do now know what it is, it is the address bar on the top of explorer:
If anyone knows of any free or paid control libraries that have this, please answer.
...
Hi All,
I developed a winforms application in C# 4.0 that uses a .dll to communicate with a USB device. From Visual Studio 2010 this application works without problem. The referenced .dll is copied to the bin folder.
When I tried to run the application directly on the target machine it didn't do anything. I've added an unhandled except...
Is there a Keydown Event of a DataGridViewCell?
What I'm trying to do is when a user is typing in a particular cell, he can press F1 for help of that particular column. And some Form will popup...
What event it is?
...
I had another question on my PictureBox calls giving me 3 kinds of errors, some great answers came in particularly from Conrad Frix. So it led me to figure out where my problem is, but now to fix it I am not 100% sure on.
Basically I have a Windows Form timer that is checking for some event to be true, if it is, then it tells the sys...