Answer Questions
msbhvn DataGrid MarqueeStyle
I'm a beginner in .NET/C# and have some experience in VB. In DataGrid, the default highlight style (known as MarqueeStyle in VB) is a column. ie. When you click on a row, only a column gets selected. I want to select a row instead, s ...Show All
invalid display name VS 2005 CheckBox bound to SQL Server 2000
Using VS 2005 beta 2. I did a drag and drop of a data source table that points to an existing SQL Server 2000 table. I want to use a chekbox with a few fields. They are defined as smallint and have nulls, 0, and 1 in the exisitng data. The chekboxs show up OK on the form in IDE but at runtime they do not track the data values. If I add a teckbox instead the data displays OK. When I click on any of the checkboxs in run mode the program hangs. I ...Show All
Scoober ToolStrip
I was trying out the ToolStrip and the ToolStripContainer, the other day, but I'm having a problem trying to undock the ToolStrip and to make it floats outside the ToolStripPanel. Is this possible or what am I missing To reproduce: It can be demonstrated, just created a new Windows Form Project, add the container and have it the Dock property to fill the entire form. Create a ToolStrip and put it on the top area. Run the app a ...Show All
OdieTurbo Is it possible to create a desktop icon using ClickOnce
I found only one article about creating desktop icons, but that article (MSDN) ruled out creating desktop icons. Is this possible with ClickOnce or not I know windows installer will, but we have a Smart Client and want to provide a way to create a shortcut to the app on the desktop so people could get to it quickly. Any suggestions Thanks How do you run this code at ClickOnce program sta ...Show All
saar Server source code
Great work guys, this is a really useful example. Just one suggestion, tho I suspect a number of other people have made it already. For people like me still working with SQL 7, it'd be really good to be able to download the se ...Show All
Sal Young data to table
The following code get the data from a web service and show it on the data grid in my application. How can I put data into the table which has the same structure as ds in my database I am new vb.net any code example will be greatly appreciated. Dim ds As MyWebService.FetchDataSet ds = FetchData() With Me.myGrid .DataSource = ds .DataMember = ds.MyTable.TableName End With With Me.myGrid .DataSo ...Show All
CJ_ ToolStrip settings are lost when opening the designer?
Hi, I'm trying to persist the ToolStrip settings using SaveSettings during the form's Closing and LoadSettings during the form's loading. It seems to work until I open up the form in the designer. The toolstrips are then repositioned in their default position and when I fire up the app, all the settings are lost. Any way to prevent that Thanks! I get a LoaderLock MDA thing related to DirectX when starting the ...Show All
Amitkumar DataGridView: Column error for Binary, VarBinary, LongVarBinary data fields
Hi all, I am doing databinding with DataGridView, but some of my table coulumns have Binary, VarBinary, LongVarBinary attribute. The problem I am having is that the grid is redering these columns as Image columns, and is generating an error when the data are not valid images. I just want these columns to display as byte array, when bound. I do not want to use loop to insert rows, as this would be slow. Can some one tell me how to set this ...Show All
kelley Do you have to call Form.Dispose()
If I create a modal form in some function and all references to it are gone by the end of the function, do you still have to call Dispose() Would it be cleaned up during garbage collection OK, well here is what I thin ...Show All
Seyed regarding panels
I dragged the splitter container on the form, it created 2 panels for me. The left panel with less width contains 2 buttons, btnGrid and btnReport and the right panel is empty when i click on btnGrid, the right panel should now display Grid and when i click on btnReport, the right panel should remove Grid and display ReportViewer Control How dont know how to implement this, pls help me!!!!!! Cre ...Show All
andystac VS.Net IDE - All Object Data Sources Gone
This is going to be hard to figure out, but I thought I'd post in case someone else has experienced it or the MS folks have any ideas. I was testing out Winforms today and had created several Object Data Sources. Everything was working very well and all of the data sources I added appeared in the data sources window. I then attempted to add another Object datasource using the Data Source Configuration Wizard. I selected the assembly for the new ...Show All
Joao Santa Barbara Casting EventArgs object to KeyEventArgs - is it possible?
Hi all , I am receiving a casting error message when I try to perform the following code... private void txtSnagDetailsActionBy_GotFocus(object sender, System.EventArgs e) { KeyEventArgs ke = (KeyEventArgs)e; } Is this type of casting not possible Tryst Hi, what Cleo described was a safe way to cast to KeyEventArgs IF 'e' was of type KeyEventArgs but since it isn't, it can't be cast. I think a Pen behaves like a mouse s ...Show All
Chike_ When to Use WinForms Over WebForms
Hi: Gurus, I have to make a major decision to port the VB6/SQL server (typical client-server) application on .NET. The application should be accessible over the net to outside clients. Since the old application had a very rich GUI I am bit con ...Show All
Stefnany Customizing the look of an application
This is my first post and I'm an absolute beginner so bare with me! I'm building an application that uses somewhat non-standard layouts and controls. Here are just a few of the things I'm trying to do that I can't seem to figure out. I have a MainMenu object displaying a few menu items. Below that I want a blue horizontal barto go across the top of the window (it's a Mdi container form). Inside of the bar I want to have a few tab type b ...Show All
Carl Arnesten Combobox_click event
I have a form with two comboboxes. The first is always visible. I want the second one to be invisible until the user chooses an item in the first box. The click event does not seem to work in VS2005 at least in a combobox. The Textchanged method fires when the form is opened so it is of no use. I'm stumped! Thanks in advance for the help! SelectedIndexChanged Unfortunately SelectedIndexChanged fir ...Show All
