winforms

setting differnet areas of form to be clickable

i have a form that looks like this: i need different areas to execute different code, just as if there were buttons. how do i set areas of the form to be clickable in vb.net? ...

setting form to look like this image?

is it advisable to play with the controls to make my form look like this or should i just use this graphic and place it in the background. if the former, then please suggest which controls on the form i can tweak to make the form look like this? ...

checking if a mouse was clicked in a specific area

how do i check if a mouse was clicked in a specific coordinate plane on the form"? ...

how can i see output of Console.Error.WriteLine?

in vb.net i have some code that looks like this: Imports System Imports System.IO Imports iTextSharp.text Imports iTextSharp.text.pdf Public Class Form1 Public Sub New1() Directory.SetCurrentDirectory("C:\Users\alexluvsdanielle\Desktop\") '" Console.WriteLine("Chapter 10 example 10: nested PdfPTables") Dim...

What is the difference between WPF and WinForms?

I am programming simple Windows apps. I don't need DB support. Why would I use WPF instead of WinForms? ...

Screen Capture Feature Overrides

what i want to do is write an application in C# like "fraps" and other scren capture apps that when you press the "Print Screen" it saves the current screen as an image. What i thought of is that "i could create a background worker thread that checks the clipboard after x seconds and if there is an image, that is now in clipboard beca...

Responding to MS Wireless Notebook Presenter Mouse 8000 presenter buttons in WPF/WinForms

Does anyone know how to respond to the presentation buttons of the Microsoft Wireless Notebook Presenter Mouse 8000 in WPF or WinForms? ...

KeyBoard Stroke Events

what i want to do is have a background application which by itself or its modules run only when a certain key is pressed. Like when i press F10 some code that i have written executes and then quits or goes to sleep then again when i press F10 i executes again and goes to sleep but in between keystrokes it does not takes any processor tim...

Exception not caught

This code used to work but doesnt any more. i used a breakpoint, and after this line: Dim jpeg As Image = Image.GetInstance("test.jpg") it just does not execute anymore code. Imports System Imports System.IO Imports iTextSharp.text Imports iTextSharp.text.pdf Public Class Form1 Public Sub New1() Directory.SetCurrentDirect...

SubSonic 3 Step By Step WinForm App VB.Net Genrating And Setup

Hi, If some body can write SubSonic 3 Step By Step WinForm App VB.Net: Installation,Setup And Genrating. Thanks In advance ...

Show Attribute of Relation in DataGridView

I want to show the attribute of a relation in a DataGridView. I use LINQ to SQL to do the mapping and have the following classes: class Computer { public string Name; public User User; } class User { public string Name; } I use a DataGridView to show some rows of the Computer entity and also want to have one column to sho...

C#: How do I add a ToolTip to a control?

I have some controls that I would like to display a ToolTip for when the mouse is hovering over it. How can I do this? I would like to know how to do this properly in code, but also in the designer (There is a ToolTip component in the toolbox, but I don't quite.. get it). I wouldn't be surprised if this is a duplicate, but I can only fi...

C# Multithreading framework for WinForm Application

Just wondering, is there any Multithreading framework out there? Currently I am developing a WinForm application using Microsoft Enterprise Library framework. In this application I want to add threading functionality when running processes, so I can offload processes that I want to a separate thread. Moreover, I need to be able to monit...

C#: Does ResumeLayout(true) do the same as ResumeLayout(false) + PerformLayout()?

I have looked at the generated designer code of Forms and UserControls, and in the InitializeComponent() method they always start with this.SuspendLayout(); and end with this.ResumeLayout(false); this.PerformLayout(); But from what I can see in the msdn documentation of those methods, wouldn't ending with this.Resu...

add contents through textboxes

I have a Windows Forms application which contain a textbox (tbox) and two buttons: Save (b1) and Delete (b2) and an XML file leaf.xml Whenever i am putting anything in textbox and then click Save (b1) the content in textbox will be saved in the leaf.xml file. When i press delete (b2), it will delete from the file leaf.xml and at the sam...

C#: How can I get the value of various FormStartPosition members?

Forms have a property called StartPosition which I can set to one of the members of the FormStartPosition enum. For example is one of them called WindowsDefaultLocation and another is called CenterParent. Now lets say I wanted to create a button that moved a form to its windows default position, to the center of the screen or center of ...

How to inform binding that property value has changed?

I have a class with a int property called X. I binded it to Left property of a textBox. But when I change my class X value, textBox does not move. What to do to inform binding that my property value has changed so that textBox will move right? ...

Must I unsubscribe all event handlers?

Hi, From the Designer in VS let's say you double click on a button and it generates this Click event handler. the subscription code is in the designer.cs. I was wondering, in the dispose the Form MUST I unsubcribe the event ? Also, all control that are in the form will it be disposed when the forms disposes? it actually call dispo...

MSCharts & .NET 3.5 SP1

i just download MSCharts, it says i need .NET 3.5 SP1 installed. i already have .net 3.5, whats the deal with sp1 ...

How to access DataGridView column names safely?

When manipulating DataGridView cells, you typically do: MyGrid.CurrentRow.Cells["EmployeeFirstName"].Value = "John"; which is all fine and dandy, but as complexity rises, you start worrying about spelling errors, refactoring issues etc. Historically, I just made the columns public so I could access them directly in the class instanc...