winforms

"make single instance application" what does this do?

in vb 2008 express this option is available under application properties. does anyone know what is its function? does it make it so that it's impossible to open two instances at the same time? ...

authentication mode - application defined ?

in vb 2008 express this option is available under application properties. does anyone know what it does? there is also a windows authentication option. what is the difference between these two? ...

Where should I place the DLL?

I downloaded an itextsharp DLL that I would like to use in my vb.net 2008 express application. In which folder should it be placed? I went into choose items in the toolbox and tried to add it but I got an error This is what I downloaded: http://sourceforge.net/projects/itextsharp/ ...

Capturing all click events in user control

Hi, I'm developing a custom list sort of idea, which consists basically of usercontrols stacked vertically in a FlowLayoutPanel. I'm writing it this way so that I can add buttons that appear on the list item when it is selected. The list item control has a few labels on it and some panels, so in order to determine whether the whole li...

format cell of datagridview to show substring of column text in vb.net

i have a column item-code, inside my database which i have bound to a datagrid view. The item-code comes in this format "A-B-C", i wish only to show the "B" part of the code, i have bound this column to the gridview and now wish to make it show the substring. I tried defaultcellstyle.format but don't know how to get a substring for it. ...

is it possible for a button to have an image in the background?

in vb.net 2008 express, is it possible me to specify an image that would be in the background of a command button? ...

setting background image of a taskbar?

in vb.net 2008 express, is it possible me to specify an image that would be in the background of a taskbar? ...

Set datagrid view beckground to transparent

i tried to set the background color of a data grid view to be "transparent" from prperties but it it said "not a valid property". How to do it.. ...

How can I prevent users from changing the window/form size when application is running

when window form application is running user can change form size i do not find property of form that do not alow user that change form size thanks for help ...

Programmatically scroll DataGridView to last row after setting it's DataSource

I've got DatGridView bound to BindingSource and I'm trying to scroll it to the bottom after setting it's DataSource. Binding source's MoveLast() make's last row selected but it doesn't scroll down. I've tried to set FirstDisplayedScrollingRowIndex, but it throws InvalidOperationException with a message "No room is available to display...

Disposing a StringBuilder object

How does one effectively dispose a StringBuilder object? If an user generates multiple reports in a single sitting, my app ends up using a huge amount of memory. I've read in a few sites online that the follow may help: StringBuilder sb = new StringBuilder(1000000); // loop goes here adding lots of stuff to sb exampleObject.Text = sb...

Check Control.Value for data

Hi All, I have several different controls (TextBoxes, DateTimePickers, MaskedTextBoxes) on a form that I would like to check to see if they contain any data. I have the following code in the Click event of my "Save" button: private void radBtnSave_Click(object sender, EventArgs e) { this.Cancelled = false; bool...

I did an 'imports' - error TYPE EXPECTED

I did this: Imports iTextSharp.text.rtf and then this: Dim grx As graphic = New graphic and on the first "graphic" I am getting a "type expected" graphic is a member of iTextSharp.text.rtf Here's the surrounding code: Public Sub New1() Console.WriteLine("Chapter 4 example 4: Simple Graphic") Dim document As Document = Ne...

Using WinDbg to Inspect Method Parameters In Raw Memory from Crash Dump

One of our customers reported a crash. She saw the standard error message after an unhandled exception: "Application has generated an exception that could not be handled... Click OK to terminate the application. Click CANCEL to debug the application." I used DebugDiag to generate a dump of this process. I'm looking at the dump now. ...

WidthPercentage not a member of itextsharp

for this line: c.WidthPercentage = 100F i am getting this error: Error 1 'WidthPercentage' is not a member of 'iTextSharp.text.Table'. here's the entire code. it's taken directly from the tutorial Imports System Imports System.Drawing Imports System.IO Imports iTextSharp.text Imports iTextSharp.text.pdf Namespace iTextSharp.tuto...

How can I display a symbol in a string with c#?

I have a string that I want to display a symbol in (the division symbol you learn in elementary, not a slash). According to the character map, the font that I'm using to display the string (inkpen2) has a division symbol code of 0xD4. I want a string to be "5 symbol 7" and display it to the user. Is it possible to do this? ...

Uninstall C# windows application from self

How can the currently executing C# application uninstall itself? I just wanted to do it to be user friendly. It's only a small program, if they install it and don't like it, I don't want to force them to go through the trouble of add/remove, just a quick button click. It's got an (are you sure) dialogue to stop accidents, but beyond tha...

How can I display a negative symbol in .NET?

I want to display a negative symbol from a string in .NET. I want a string that represents an equation that looks something like this: 7--5=12 But when displayed, I want the 2nd minus sign to be slightly raised so it looks more natural as a negative sign instead of just 2 minus signs in a row. Is this possible? ...

Array property display format in WinForms Property Grid

I have an object with a string[] property. When I assign this as the SelectedObject in the PropertyGrid, I get a "String[] Array" displayed for that property. Is there a way I can change this display part to something else? ...

itextsharp tutorials for vb.net express 2008?

anyone know if these are available? ...