Answer Questions
alan lan Can't get images on toolbar buttons when running
Hi everyone, I have a VB.net application that has a toolbar with several buttons. The first two buttons are the standard "save" and "print", with those typical images. My problem is they show up and work fine in the form designer,& ...Show All
MarniW How get the account of the user who login the window
eg. I use this account "Abill" to login window, and then how to get it with C# thank you. Thanks BeckKhiem . Quote from gwapo: You can also use Environment.UserName property. That's a very very bad idea as the process starting your app can override the environment tricking your application into thinking somebody else is using it. Hi, You can get this property : System.Security.Principal. WindowsIdentity ...Show All
AlexWeatherall Problem binding a DataTable to a ListBox control
I'm trying to bind a DataTable to a ListBox control. But i always get the error message: "The conversion of the type ' DataRowView ' to the type ' String ' it is not valid ." This message is Shown twice. When i bind the DataTable en when the DisplayMember is set. Afterwards everything seems to work just fine. When i change the Listbox into a combobox or datagrid the code works perfectly. ( ) How can i solve this problem. This is the code i wro ...Show All
leshan Designer keeps writing bad code for datagridview after I fix it
This is the oddest thing. I added a datagridview in a windows form and have been working with it when suddenly it acted like the datagridview wasn't there for purposes of interacting with it. I look in the designer.vb and I see that in the initializecomponent it has the following line: Dim gridcharacters As System.Windows.Forms.DataGridView I delete it, move it to the bottom and change it like so. Friend WithEvents gridcharacte ...Show All
cipher nemo Groupbox not retaining dimensions when inheriting tab control on form.
We are inheriting a form that has a tab control with one tab page (base form), then when we add tab on a form that inherits the base (Child form) and place an anchored groupbox on the 2nd tab; save it, close it and reopen the form... the groupbox is shrinking and not retaining the size that we set it to. Code is below: Note: It seems that it works OK with just the tab control on the base without any tab pages. BaseForm: < G ...Show All
ThierryAsked c# Express Edition having trouble with the set Image?
Error message In Microsoft Visual C# 2005 Express Edition: An item with the same key has already been added. This happens when I add a button to a toolStrip in an application. When I go to Image on the properties window. I need help with this so i can add my image buttons for my application this is my last step to completion of the project. Please give me some advice! I had a Resource.cs file. When I deleted this file it run fine. ...Show All
Brummi New whitepapers for building DataGridView custom cells and columns
Hi all, We just posted two new whitepapers about building custom cells and columns for the DataGridView control: Building a custom RadioButton cell and column for the DataGridView control ( Source and Sample Code ) Building a custom NumericUpDown cell and column for the DataGridView control ( Source and Sample Code ) The docs, source code and sample code are under http://www.windowsforms.net/WhidbeyFeatures/default.aspx P ...Show All
CodeW DataGridView: is there a verbose method for determining ColumnIndex?
I need to launch a routine when the DGV_CellBeginEdit event fires and a certain column is selected. The following works: If e.ColumnIndex() = 5 Then ''''Launch Routine End If For clarity, I would prefer to specify the ColumnIndex verbosely (ie: by ColumnName) rather than using "5". Is there any simple method for doing that What expression can I substitute for "5" that will be more intuitive when I have ...Show All
MatrixResolver How do you catch the delete event on a datagrid
Hi All, I have a datagrid that works. When the user presses the delete button on their keyboard it seems to delete the row from the grid. How do I know what has been deleted from the grid so that I can actually remove it from my actual data. Is there an event I catch or can I compare the data in the grid with my data source. Please help, Danny PS. I am using VB.NET 2003 (C# answers are fine) The Data Grid View FAQ here should answer your ...Show All
Chris Kinsey Call function on Parent form
I have an application in C# where I make changes to a database in a child form. When I close the form I want a function to be called on the parent form to refresh the view it has of the database. However, I can't figu ...Show All
Liberty1 .AVI files in vb.net
Hi all:) Need to play a .AVI file in my application. What control can i use to do this MediaPlayer.OCX is too BIG, i want a smaller control. Have u any idea TIA Douglas you can use the directX AudioVideoPlayback case you use dx9 or D ...Show All
manas79 Full-skinable Applications
I've been searching for a "how to" or a demonstration programm, thats explains how i can make a application fully skinned. And by skinned i don't just mean an shaped form using regions. The same thing should be possible for butons and  ...Show All
John C. .NET HTML WYSIWYG control
Hi All, I am trying to find a decent HTML WYSIWYG control for a Windows Forms application. I noticed that when you open a HTML document in VS.NET it is displayed in a nice WYSIWYG editor. Does anyone know: 1) If this editor is indeed a&nbs ...Show All
Perlman Using RSAEncryption
Hi, I am writing a class library that will be used to encrypt and decrypt strings using the RSAEncryption algorythm. My issue is that there is a limit on the size of the string encryption can be done on. A RSAEncrypt method on the MSD ...Show All
WN3335 How to use javascript in vb.net window application
I added a javascript in my window aplication(VB.NET). Now i dont know how to user that javascript in my form plzzzzzzz help sir my anather question is how to connect database in windows application (mannually) my database is = sql2000 plz give me coding part of above question. Why do you need javascript in a Windows application Everyting is dynamic and can be done with VB.NET. I don't think it's possible to do it. ...Show All
