-
- MessageLoop Management in Application.Run - Help!
by tuphdc
- 7 Replies
- Last post
by Dave Midgley
- How can I manage the message loop in my C# program MSDN says that Application.Run() begins running a standard message loop. How can I gain access to this message loop What does Application.MessageLoopCallback do Can I use it to manage the message loop There is no MSDN documentation on it. I am aware that I can override the WndProc function of the System.Windows.Forms class. However, this prog
-
- What is the proper way to directly access controls in another form?
by David S. Anderson
- 7 Replies
- Last post
by Ðãv? S. Â??????
- I am developing a complex server. In my server I am using a TreeView control as a navigation component. Each time the user clicks an item, I load a form into the panel on the right of the TreeView. The forums loaded are TopLeveless and borderless, so you would never know its a form. The reason I am using forms is because I can easily place controls on them and get complex usability out of them. He
-
- Anything like CSS on windows forms?
by artificer
- 4 Replies
- Last post
by Bob zhu - MSFT
- Is there anything on windows forms similar to the CSS feature on HTML I mean I want to have a centralized file where I can define colors and fonts for all my forms. I can easily do it using the app.config I guess but I wonder if there is any specific feature for that.
-
- Easier way to do if( XXXXX = X || XXXX = Y)?
by AustinW04
- 5 Replies
- Last post
by BlueMikey
- I have an if/or statement that looks like this <code> if(cbManufacturer.SelectedIndex == -1 || cbManufacturer.SelectedIndex == 0) ep.SetError(cbManufacturer, "Please provide a Manufacturer."); </code> Is there an easier way to do the Or part of it so I don't have to use cbManufacturer.SelectedIndex twice (Or in some instances more times) And I know you can do <code> if
-
- BufferedGraphics delay (GDI)
by Giovana Calsavari
- 4 Replies
- Last post
by nobugz
- I need to do a circle to rotate around the form. I'm using a BufferedGraphics and GDI. I draw each frame on buffer and I render the buffer. When the buffer is full, there is a delay on rotation. It seems there is a stop on rotation, but after it continue. How do I eliminate this delay
-
- Add row to datagridview
by JefPatat
- 3 Replies
- Last post
by Sushil B
- Hi all,
I would like to add a row to a datagridview. I know this should be simple and plenty of examples are around, but for some reason I don't manage to get it working.
Code Snippet
foreach ( Wallet wallet in current)
{
walletDataGridView[ "buyDay" , walletDataGridView.Rows.Count - 1].Value = wallet.BuyDay.Date;
walletDataGridView[ "buyAmou
-
- dont understand sql server...
by pedrosl
- 3 Replies
- Last post
by haba
- Hi,
So far I've been using OleDB for my c# windows applications. I'm giving a look at sql server, but I dont understand. In OleDB I would have a .mdb file, and in the data source for my connection I would just point to this file. In sql server how does it work Do I need to have a sql server deployed in every computer thats running my app How
Sorry if these questions seem stupid, but I r
-
- DomainUpDown->SelectedIndex property not available in Forms Designer
by dtwilliamson
- 1 Replies
- Last post
by Rong-Chun Zhang - MSFT
- It seems to me that it would be awfully handy to be able to set the SelectedIndex property of DomainUpDown in the Forms Designer. Setting the Text property to match one of the strings in the Items collection sort of works but still has the funky behavior of the default index of -1 in that when Wrap is True, the first clicks on the up button don't do anything.
What suggestions do you have fo
-
- Setting Datagridview Styles Dynamically
by ron nash
- 8 Replies
- Last post
by ron nash
- Hi,
As part of my learning of VB express I am stuck at the moment on setting the
datagridview styles dynamically. I can change the default formatting colours etc
but what I would like to do is change the colour of a complete row based upon
the value of a given cell within that row. I have in my datagridview a number of rows where one row has a cell with the value 10. I would
-
- How to open a website on click of a button
by Burks
- 3 Replies
- Last post
by paoloTheCool
- Hi All,
I need to open a website in a seperate browser window. Can someone please tell me how it can be achived using .NET in C#.
Thanks
-Burks
-
- Windows 2000 to Windows XP
by Steve557494
- 1 Replies
- Last post
by Bob zhu - MSFT
- How do I change OS from Win 2000 to XP
-
- ClickOnce WinForm application - How can I apply a number of T-SQL scripts to my Sql Server database?
by Oliver Gurnell
- 7 Replies
- Last post
by Facey
- Could anybody please help me with my dilemma
I¡¯ve developed a winforms application in VB.NET which uses a local Sql Server Express database to store my application data. My application connects to the database using the new user instance option available in SQL Server Express.
I have successfully managed to deploy the application using ClickOnce so that the application installs and runs on
-
- ComboBox Column Properties in DataGridView
by Gaurav G
- 2 Replies
- Last post
by Gaurav G
- I have created a ComboBoxColumn in DataGridView. I also have some text box columns.
Whenever focus is getting shifted from TextBox Column to ComboBox Column i want Combo Box to Open Automatically. User doesn't need to click on the combo Box to open.
Can anybody help me for this.
Also that combobox is having about 100 items. Can i increase its drop down list length. I do not want s
-
- DataGridViewButtonCell Click Event
by SangramK
- 3 Replies
- Last post
by Naga Satish Rupenaguntla
- Hi,
I have a DataGriDview, which on Form2_Load() event shows some columns bound with data and one DataGriDviewButtonColumn.
Is there EXIST any CLICKEVENT for DataGridViewButtonColumn Cells.
On Click on the Buttons I want to take a value from the row of respective DatagridViewButton and communicate with another form How to accomplish it please help.
-
- Select Database
by devilmfc
- 0 Replies
- Last post
by devilmfc
- Hi
I would llke to use a Program to create a ODBC or OLEDB connection at ODBC source in Control Panel's Admin Tool. And the connection to be used in the other program. Can anyone help me
Thnk you.
-
- Removing the application from sytem tray
by ksn0o03
- 4 Replies
- Last post
by Peter Ritchie
- Hi Experts
I have been working a bit with C# and WPF. I have finished my application, but I want to remove it from the tray at the bottom where alle programs appears when they are running.
I would like to remove it from that tray...Is taht possible
-
- databound combobox selectedindex changes for no reason
by erzfezsf
- 3 Replies
- Last post
by erzfezsf
- hello I am baffled by an annoying problem : I have a databound Windows Form with 3 comboboxes with datasources being lookup tables. they have the Databindings SelectedValue set to the foreignkey id and ValueMemeber and DisplayMember are set to ID and description fields from the lookup table. I set the selectedindex to 0 programmatically and when the form loads, the combobox value is fine. Then som
-
- Make a form open fullscreen with a flash component inside him
by Diego Pires
- 3 Replies
- Last post
by H. Tony
- Hi guys, iam new her, and new programming em C#, and i nedd you help with a simple thing...
This code below, i found in the net... its serve to insert a flash movie into a Form of C#, that is ok, my problem is that i need that the form open fullscreen, and the flash inside him resize automatically. I saw one time an examply of a thing like that in VB, but i couldnt pick his code unfortunatel
-
- How to hide controls using a loop
by S10n
- 3 Replies
- Last post
by S10n
- Hi, I'm trying to hide all the buttons and textboxes on my form using a loop, I used to do this is visual basic and i remember de code was something like this: For each(control in me.controls) If Typeof Control is Button Then Control.visible=false End if Next I'm trying to do the same using C# but it doesnt work, could someone help me please. Thank you in advance.
-
- New whitepapers for building DataGridView custom cells and columns
by Regis Brid
- 14 Replies
- Last post
by Bluehunter
- 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://ww
-
- ContextMenuStrip positioning after availabile state changes during the Opening event.
by DR21702
- 4 Replies
- Last post
by DR21702
- My ContextMenuStrip changes the Availabile state of child commands during the Opening event based on certain states which causes the number of visible items to change.
This causes a problem with the positioning of ContextMenuStrip because it seems that ContextMenuStrip has already chosen it's screen position before firing the Opening event and as a result my context menu will appear way off
-
- High frequency DataGridView updates and cell.Style.BackColor
by AlanKeegan
- 2 Replies
- Last post
by AlanKeegan
- Hi I'm having problems with the performance of my DataGridView. I'm updating my grid on a 250ms timer. Each time the timer is fired, there are somewhere between 50-250 updates required to various cells. My grid requires conditional formatting which I perform in the CellFormatting event handler. This all performs reasonably efficiently until I include cell.Style.BackColor in my conditional formatti
-
- How can I get or set Checked value of DateTimePicker which is inserted into DataGridView?
by pvphuc
- 7 Replies
- Last post
by pvphuc
- I got CalendarColumn from MSDN online and I try to check Checked State of the Cell which is DateTimePicker but I can not. Please help me how I can do this. Thanks so much. Best Regards, pvphuc
-
- Redirect to another page by clicking the textbox
by Jackuline
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi,
I've place textboxes in DataGrid. When i click the textbox a new page should be opened. Is there click event for TextBox
Help me to solve this problem
Thanks
-
- how to delete linefeed (cr / lf) at end of richtextbox?
by Jarotje
- 4 Replies
- Last post
by nobugz
- This works: RichTextBox1.Text = RichTextBox1.Text.TrimEnd(vbCr, vbLf) But, the text is formatted then with the default font etc, so colored text, text with other fontsize etc. is losing its rtf-propety. How can I delete the linefeeds without resetting the formatted text I can't manipulate the rtf-property unfortunately......