winforms

ideas on generating a pdf report in vb.net

i will need to generate a report based on user input for every food that will look like this: i plan to have a pdf displayed on a winform using the adobe pdf reader control. the pdf will be the header of the above graphic, but the list of foods and the reactions will be generated. this is what i need: i need the form to be printable...

Exposing WinForm Controls to the Calling Class, also a WinForm?

I am of the understanding that this can't be done but opted for a public method that would do the specific work I need without exposing my control and keeping it private. So exposing specific properties of a control that I want access to for simple dsicrete set and get operations is fine by me via a public property is also fine. URL: ht...

WinForm Panel scrolling without a scrollbar?

I'm creating a User Control that's basically a Panel (with random content inside), and I need to be able to scroll up and down this Panel using buttons (up and down) rather than the scrollbar. The reason I have to do it this way is because the program will be used on a touch screen monitor and we need big buttons rather than an ugly lit...

How do I show a tooltip for the header area of a Winforms ListView control?

I can set the ToolTip property of a ListView control, but that's for the whole control. Can I just have a tooltip for the Details View header area? ...

Convert HTML in CWebBrowser2 element into VECTOR metafile

I have tested a number of solutions to capture the HTML content of a CWebBrowser2 element into a vector metafile. I can get either part of the web page as vector emf, or I can get all of the webpage as a raster bitblt wrapped in an emf wrapper. What I want is All of the webpage as vector with only original bitmaps, flash, etc represent...

reordering rows in a databound datagridview

I have a DataGridView that is bound to a DataTable, is there a way to reorder the rows in the DataGridView and have the changes reflected in the bound DataTable? ...

specifying an icon to be put on the desktop during installation

when the user installs my vb.net application, i would like my icon (a shortcut) to be placed on the user's desktop. i am using vb express 2008, and am using the installer that it comes with. how do i specify an icon for this:? ...

Making the background transparent but not the text box and etc.

I want to make the form background transparent. But not other elements. How do I do that. ...

C# Winforms Message Box Properties

in C# winforms when we display a message box it has no title in the title bar and no title in its button that is in the task bar. What if i want to set title and icon for a message box. one option is that create a form that appears and behaves like a message box and i show and hide it when i want. yes that can be done but i want to mo...

Why is ListViewGroup sealed?

I can subclass ListViewItem and even ListViewItem.ListViewSubItem, but I can't subclass ListViewGroup. Why is that? ...

C# Winforms Irregular Windows

How do I create windows with irregular shapes using WinForms and C#? ...

Unselect Databound Combobox Winforms .NET

The problem: combobox is databound to a DataView, first item in the dataview is DataRowView whose fields are DBNull.Value; Combo DropdownStyle = ComboBoxStyle.DropDownList Loads fine, displays fine, selects fine, problem is to Unselect via code. Setting the SelectedIndex to 0 throws an exception. (Setting to -1 is a no-no as per msdn do...

How to kill a thread instantly in C# ?

i am using thread.abort command to kill the thread but it not working is there any other way of terminating the thread private void button1_Click(object sender, EventArgs e) { if (Reciever.IsAlive == true) { MessageBox.Show("Alive"); Reciever.Abort(); } else { ...

checked listview items

Hi friends I have Two ListViews... I have ListView(ListView1) with items, and another one(ListView2) is empty. i need to copy the checked items from ListView1 to ListView2 at the same time i have to remove the checked item in ListView1 using C#... I am using windows form... Thanks in advance... ...

how to restrict TcpClient to wait for a connection or client for specific time than stop for accepting clients?

I am using a simple client interaction in which i use TcpClient c = t.AcceptTcpClient(); now it waits indefinately for a client to register.Now what i want is it wait for say 5 mins and then automatically stop to listen ...

Edit multipage TIFF image using System.Drawing

I'mt tring to edit multipage tiff by creating Graphics from the image, but i encountered the error message: “A Graphics object cannot be created from an image that has an indexed pixel format.” How can i edit multipage tiff? ...

Winforms Datagrid, display foreing key

Hi, Currently I have a DataGrid, and a datasource. The Datasource is directly pulled from the database in this order: Id, SalaryId, Old, New Problem is that it displays the SalaryId, I want it to display the SalaryId Value How do I do this? Thanks, -Kristof ...

RichTextBox Replacement Winforms .NET2.0+

I have been extending the RichTextBox control in VS2008 using C# (adding printer support and URL links). I have most of the functionality I need but the control is not that good. I do not know how to change the mouse cursor for image sizing handles. Bullets get out of wack with the size and colour. I need this for winforms not asp.net or...

Including a ASP Web Service Project in a Windows Forms Application

I have a web service that I'd like to include as a project reference inside a windows forms application. (The application will be running on non-networked hardware.) I could simply copy the *.vb files I need into my forms project, but I'd rather not fork the code base. It wasn't hard to include the ASP project in the windows forms sol...

How do I block all keyboard and mouse input to my WinForms app?

I have a WinForms app that is retrieving data from a web service on a worker thread and I need to disable all input to my app until the data is loaded. Currently, I create a semi-transparent form and place it over my application. When the data call completes I close this overlay form. This works fine accept that it causes considerable...