-
- Get rid of button style but keep behavior
by bitbonk
- 1 Replies
- Last post
by .Binny
- What is the best way to get rid of the style of the System.Windows.Forms.Button ( i.e. the 3D border, the XP-look and feel and the padding of the content) but keep how the button arranges image and text inside (i.e. automatic wordwrapping for the text as well as Button.TextAlign and Button.ImageAlign) Do I really have to inherit the button and override OnPaint Because that seems to require to rei
-
- OwnerDraw ListView control causes unwanted GDI+ problems.
by David S. Anderson
- 9 Replies
- Last post
by nobugz
- In my form I have 3 toolstrips and 1 status strip I am painting myself. Nothing serious, just a linear gradient on each. Now I am painting my listview control with a gradient as well. however when i try to paint the sizer, it causes the toolstrips to stop validating until i move the form. aka, this line causes the problem: e.Header.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); Here is my ful
-
- problem regarding keyDown Event handler
by Jehan Badshah
- 8 Replies
- Last post
by Fradam
- I want when I press ¡° A ¡± button ¡°B¡± is printed, and when I press ¡° B ¡± button ¡°C¡± is printed, and so on ¡.. I did by handling keyDown event handler as following
switch (e.KeyCode.ToString().ToLower())
{
case "a" :
textBox1.Text += " b " ;
break ;
case "b" :
-
- User login validation
by greenAPPLEEE
- 1 Replies
- Last post
by Rong-Chun Zhang - MSFT
- I have a login table in the microsoft sql server with two columns, staffLogin and password with their information stored respestively.
Now, I want to create a windows form to authenticate users. If staffLogin and password match, it is successfully logged in.
So how I can go about doing that with DataSet Or is there any other simpler solution that I can adopt instead
Thanks a m
-
- In what language is .net Frame work written?
by satya527
- 1 Replies
- Last post
by AndrewVos
- In what language is .net Frame work written
-
- datagridview select cell
by yanci1179
- 6 Replies
- Last post
by Kennet Harris
- okay, this is driving me crazy!!!
In my datagridview, on the current row, how do I select/set the focus of a particular cell I am already on the row I just want to set the focus to the third cell.
after I validate a cetain cell, I want to tab to the next cell
I tried:
SendKeys.Send("{TAB}") and the application stalls
I tried:
DgvSched.CurrentCell = DgvS
-
- Launch Condition to Check for Windows Vista
by Vivekananda
- 2 Replies
- Last post
by Vivekananda
- Hi!
How can I check if the users machine has Vista installed on it during a setup process
-
- Text file in a GridView
by DavidTaylor
- 1 Replies
- Last post
by Guang-Ming Bian - MSFT
- I have some large data files (7 fields x 7,000 records) in an ASCII/text file format that I would like to display on a website. Is there a way to get that data into a GridView or do I have to read it into an Access, SQL, object, site map, or xml file format first
Thank you,
David
-
- Windows Control in IE, Problem Accessing Database, Strong Name doesn't seem to work
by Biaggio
- 2 Replies
- Last post
by Biaggio
- I am developing a Windows Control for distribution via IE. The control accesses a database. In troubleshooting, I built the control with a button. The control comes up fine but when the button is clicked to access the database, I error on "Application attempted to perform an operation not allowed by security policy." I traced this to a strong name problem, but can't get the strong name t
-
- Property grid globalization and icons of property not working together
by Jogesh Grover
- 4 Replies
- Last post
by Jogesh Grover
- Hi,
I have a property grid in which i am showing some icon for each property. I am drawing this item with the help of UITypeEditor class. Like code below:
Ex:-
Class ABC
{
[Editor(typeof( PropertyIconCreator ), typeof(System.Drawing.Design.UITypeEditor))] public double Car { get {
//Everything working fine set { }
-
- ComboBox - Apply XP-Theme
by Oric.CQ
- 1 Replies
- Last post
by Ryan Lamansky
- Hi,
I'm a VB.Net programmer and I'd like to know if is there a way to apply XP-theme in a ComboBox control, when Windows XP is using "Windows Classic" theme
Thanks!
-
- Color non contiguous dates in DateTimePicker
by sunil_kor
- 1 Replies
- Last post
by nobugz
- Is there a way to change the forecolor of non contiguous dates in DateTimePicker.
Example: I want to change the forecolor of dates - 23rd and 26th May 2007 to Red.
-
- DataGridView ComboBoxCell Problem
by akin_l
- 2 Replies
- Last post
by akin_l
- Hi, I am working with datagridview. It is not databound, I add the rows as required. There are 4 dataGridViewTextBoxColumns in the dataGridView, but two of them are not visible.
Now when the user wants to add a new row(by clicking on add row button), I create a new row as follows:
/* Add a new row to the data grid */ dataGridView1.Rows.Add(1);
((DataGridViewTextBoxCell)dataGridView1[0, da
-
- DataGridViewComboBoxCell
by Sandro Peixoto
- 7 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hello All,
I can define a DataGridViewComboBoxCell as visible = false
Best Regards
Sandro Peixoto
-
- Host Controls in Windows Forms DataGridView Cells
by Niro
- 14 Replies
- Last post
by Karl Erickson
- Hi all, I'm trying to create a new cell within the new DataGridView (.NET 2 Beta). For example, I'm trying to create a cell which contain a RichTextBox, I succeed with the appearance of the rich text box controll but there is a lot of irregular behavior. Does someone did it already(not particular with RichTextBox) and can send an example. Unfortunately Microsoft example in the link below doesn't
-
- Problem with the listview and keypress
by Marc Allard
- 5 Replies
- Last post
by Marc Allard
- Hello,
I have a program in VB6 that is used by my customers since a few years with no problem at all.
Now, I am porting this program to VB.NET2005, and I have a problem with all my listviews.
In VB6, when the user presses rapidly some keys (letters), the listview will select immediately the first element that begins by the letters. For example, If I have the following elements in my l
-
- all solutions for concurrency violation
by seco
- 14 Replies
- Last post
by Luc Morin
- Hi i have been collecting solutions for concurrency violation exception more that one year yet i didn'y find the proper way to solve it !!! could you help me in this im developing database app using vb.net 2005 and access database . my way to get data is adding new datasource from datasource window, then bind textboxs and datagridview ,, and writting the update code as follows
Code Snip
-
- TextBox Validation
by sunDAC
- 8 Replies
- Last post
by timvw
- I am working in windows 2003 application using c#.
i want a textbox validation such that user should only enter
A to Z (no case sensitive) and (0 to 9 )
inshort only characters and digit numbers should insert in textbox,otherwise error message should display.
Anybody help me
-
- Problem with passing arguments to main[] function
by sakthivel-insoft
- 3 Replies
- Last post
by Christopher Payne
- Hai
My application is developed and converted into an EXE.
when running the EXE from the command prompt, i have to pass an argument to the main[] function as
MyApplication.exe "c:\Documents and Settings\my\note.txt"
while receiving the argument, the function holds only the value"c:\Documents"
args[0]="c:\Documents";
Can anyone please help me
-
- SQL server Error
by Yutong
- 1 Replies
- Last post
by Ken Tucker
- hi all
I made a program in visual basic with database and somehow it only runs in Windows Vista. Every time I try to use the database in Windows XP, a message box occurs:
An error has occurred while establishing a connection to the server. When connecting to SQL sever 2005, this failure may be caused by the fact that under the default settings SQL server does not allow remote connecti
-
- DataGridView and KeyValuePairs
by Nikster
- 2 Replies
- Last post
by Nikster
- Before I go insane, is it actually possible to bind data to the DataGridView using a List<KeyValuePair<string,string>> The reason I ask is that I have two sets of these types, one which contains the data which gets bound to the DataGridView itself and another which is bound to a DataGridViewComboBoxColumn.
Now, I have filled the first type with a collection of data and the secon
-
- Datagrid Calendar
by Brad Corbett
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- I'm trying to create a Calendar Similar to the Calendar control that ASP.net has. Basicly a Calendar that I can place text and Link buttons for the user to interact with. so what I'm thinking of doing is using a datagridview and binding it to an array. I'll do some code that determines what cell each day goes in. Now what I don't know how to do (or if its even possible) is place linkbuttons in the
-
- EnumChildWindows and modal dialogs
by Robert Rossney
- 5 Replies
- Last post
by Aussie
- I'm building a UserControl that, when clicked on, puts up a popup window. To make it behave properly (e.g. go away when the user clicks outside of the window or switches to another application), I'm using Steve McMahon's PopupWindowHelper class (see http://www.vbaccelerator.com/home/NET/Code/Controls/Popup_Windows/Popup_Windows/article.asp ).
This class works by hooking a message filter int
-
- trouble with forms
by dudearcher
- 1 Replies
- Last post
by timvw
- I am a real noob, and i need to get a progect done. How do you use the designer to make a form, then display it at the click of a button
-
- Folder Browser Dialog -- Disk Error
by RoadGlide
- 13 Replies
- Last post
by RoadGlide
- When using the folder browser dialog, how do you trap or prevent the "There is no disk in the drive. Please insert a disk into drive ..." dialog. This is happening for disk which the system has identified as removable media. Excel doesn't experience this problem, I believe I should be able to achieve the same level of performance.