We have a VB6 app that has implemented a handler for WM_TCARD messages from an HTML Help file.
It navigates within the application and opens the relevant screens etc.
How does one do this in a WinForms app?
The only way I can immediately see is to handle the window procedure and process the WM_TCARD message in exactly the same way we ...
Hi,
I'm using a checkbox on a winform app. If you mouseover the checkbox an orange highlight appears showing that that control has the focus. If you tab to that control this doesn't happen though the 'Enter' event is fired. My question is, how do I manually set that orange highlight on the checkbox when it has focus, is it a style at...
I have a winform app and i would like to listen to a specific port and be able to visit the app through a browser. I know how to use HttpRequest and HttpResponse in asp.net project. But is there a way to use them in a winform app? or a variant of them? Currently i am using TcpListener and i need to write out my response and parse the req...
I set the BackColor of specific TreeNodes in a TreeView as a hint to the user that something interesting has happened to the node while they are using the application. However, when I set BackColor, it causes the entire parent TreeView control to redraw rather than just the label area of the specific TreeNode that has been changed. I a...
I have a ListView and sorting is enabled, once I insert an item, how do I get that item's index?
I can use the ListViewItem returned by the Add method of ListView, but is its index before sort or after? And is it updated if it is sorted again? Like if I store the ListViewItem and the ListView is then sorted, will the ListViewItem I stor...
When I cut some controls in designer window and paste them in some other container, handles keywoards dissapears from code.
If I have btnOK on form and click event handled like this:
Private Sub btnOK_Click(...) Handles btnOK.Click
and then in designer I cut the button and paste it somewhere else, Handles part just disappears, living...
Hi
We are thinking of moving some of the 'hard coded' settings out of our windows forms application and storing them in the sql database in a table called App_Settings. The reason for this is we have values currently hard coded into appsettings and app.config which can change over time, and it is much easier and faster to update the val...
OK so my question is self explanatory, here is some code so you can understand a little more.
public Dictionary<string,VcardWindow> VcardWindowManager
= new Dictionary<string,VcardWindow>();'
And access like so:
public void ShowVcardWindow(string VcardOwner)
{
VcardWindow Window;
if(VcardWindowManager.ContainsKey(VcardOwne...
Technologies: .net 3.5, Visual Studio 2010, Report Viewer Control version 10, c#
I am using adhoc reports in my winform application, now here is the problem:
When my report is rendered in the viewer, the document map displays the report file name as the the root node of the document map. I need to display a more user-friendly descripti...
I have a label that I want to right align to be able to place aligned to a text box.
The Designer in Visual Studio 2010 Express have generated this code for me
this.lblAddData.AutoSize = true;
this.lblAddData.Location = new System.Drawing.Point(167, 452);
this.lblAddData.Name = "lblAddData";
this.lblAddData.Size = new System.Dra...
Hi all
I have seen that there is a folderBrowserDialog but couldn't see one for files .
I should implement one myself or there is something built in ?
Thanks.
...
Hi everbody,
I am writing a barcode generator in C# I can generate barcodes as bitmaps and can show them in a Picturebox(WindowsForms). On the other hand I could not save my barcode as a gif or jpeg file. My barcode is a bitmap file and here is my code
Bitmap barCode = CreateBarCode("*"+txtBarCodeStr.Text+"*");
barCode....
My app has an option to disable aero by calling DwmEnableComposition(0) before capturing a screen image. As you know, disabling aero makes the screen go black then return to normal afterwards. On different PCs this might take 2 to 3 seconds depending on how fast the system is.
Is there a better way of determining if aero has fully disa...
Is it possible to show WPF Context menu on WinForms?
If yes, how could we do that?
...
how to convert : 7/30/2010 11:05:53 AM
to : 30/07/2010
...
I am having some trouble understanding the MVC Pattern. I do understand we are trying to decouple the GUI from the business logic, although I'm having problems understanding how.
From what I understood, the View, is what the user sees. So it generally is the window/form. The Controller is inbetween the View and the Model. The Controller...
Just wondering if anyone has an example of communicating from console app to windows form or vice versa.
Thanks
...
I have a combobox in a custom control. How can I expose specific events from it such as SelectedIndexChanged or KeyPress, etc to anyone/thing implementing my custom control?
...
I have a public property called Items, It's a List. I want to tell when it's been altered. How can I do this?
For example, if Items.Add is called, I want to be able to then call UpdateInnerList.
How can I do this?
...
I have a Bitmap called "buffer" to which I
Paint another image (using DrawImage)
Paint a partially transparent gradient (using a LinearGradientBrush)
I call Flush(FlushIntention.Sync) on the buffer's Graphics object after each of those steps. I then paint the contents of the buffer onto an on-screen control.
However, while debugging...