-
- using me.validate
by JohnJDB
- 4 Replies
- Last post
by JohnJDB
- Hiya,
I've got a bound form where I'm trying to validate input before the user moves off the record.
Whats the best way to do this
Looking that the save sub I see it calls me.validate.
Private Sub TblSitesBindingNavigatorSaveItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblSitesBindingNavigatorSaveItem.Click
-
- Problem with ToolStripDropDown in DataGridViewCell
by dyowee
- 4 Replies
- Last post
by ZW2
- Good day to all! =)
I tried to follow the example here http://blogs.msdn.com/jfoscoding/archive/2005/03/03/384430.aspx for hosting a treeview in a DataGridViewCell. The problem is that if the treeview has focus, clicking on the dropdown button once does not close the dropdown. I need to click it again to successfully close it. I hope you can help me out. Thanks.
-
- DataSet with internal visibility
by JocularJoe
- 2 Replies
- Last post
by JocularJoe
- When creating a typed DataSet using the VS2005 designer is it possible to specify that the generated DataSet classes should have internal visibility
-
- DotNetrix question
by AlexBB
- 6 Replies
- Last post
by AlexBB
- This question should be addressed directly to Mick Doherty, a great guy who helped me to set custom tabPage control in motion.
Mick hi,
Your tabControl has been doing quite well in my major application. 6 weeks ago I had to switch to Vista and that caused innumerable problems in various areas but your TabControlDontNetrix survived the transition unscathed.
-
- how to save the content of richTextBox as jpg file?
by Rush hour
- 12 Replies
- Last post
by Deecke
- Dear all, I looked through the website for the information about saving content of richTextBox as jpg file. E.g. there are some lines and some words in the richTextBox, and I wanna save them as the jpg file. However, it seems workless. Can you give me some hints Thanks in advance, Cordially, B-D
-
- DataGridView - Column/Cell Not Selectable
by Grant Jenkins
- 5 Replies
- Last post
by gjen020
- Hi,
I have a DataGridView with 5 columns but only want the user to be able to select cells in one column (prevent selection of the other cells)
I have tried to find a property for a column to say you can't select it, but can't find anything. Surely you don't have to write a whole bunch of event handlers (cellclick, keydown, etc) and dynamically change the focus to the one columns cell you al
-
- Email validation control or code for VB.Net 2005.
by Harsh585762
- 12 Replies
- Last post
by raj_login
- I am developing a windows application using VB.Net 2005. One of my forms contains a textbox for entering email id. I want to validate its patterns i.e. It should have @, atleast one ".", etc. In asp.net we have validation control for this. But how to do it in VB.Net 2005.
-
- round buttons
by Michael_001
- 2 Replies
- Last post
by Microsoft IT Advisory Council
- Hello
i have made my one version off the musicplayer butt i don't
like the way it looks for now. Different colors is nice butt i want
different buttons like round ones or triangle ones
i already try the codes i can find butt always erors is it because
i am ussing VISTA or something else i don't no inheritance
properties am not so good.
can't find video to see and l
-
- Memory Leak using FlowLayoutPanel?
by Bryan Brannon
- 1 Replies
- Last post
by nobugz
- I have a problem with a possible memory leak in my WinForms app. I finally was able to figure this out and reproduce by doing the floowing.
Add a FlowLayoutPanel to a form and have a process that adds (multiple) Buttons at runtime. Then i have a method that is called from an event (button click) that removes the controls like this:
Code Snippet Me.FlowLayoutPanel1.Controls.Clear
-
- Form doesnt return after ShowDialog when runs standalone. C# 2.0
by maxima
- 1 Replies
- Last post
by maxima
- If I run app from IDE it works fine. When I run it standalone from command string one particular dialog window hangs on 2nd (sometime 3d) time you closing it.
The sequence of events I could manage to trace so far:
- when it is OK
a. Cancel button clicked event
b. form Closed event
c. form HandleDestroyed event
d. ShowDialog returns to the parent
e. form Disposed m
-
- Getting string from Text Box
by JessieErin
- 7 Replies
- Last post
by ZW2
- Hi,
I have some code I'm updating from VB6 to VB .NET and am having an annoying problem. I'm trying to assign a public variable to a string coming from a text box. The first time through the sub there is no problem but when the sub is called again the variable is assign a zero length string, even though there is still text in the text box. I can get the correct string if I assign an intermediat
-
- Form closing preventing
by Kapalic
- 4 Replies
- Last post
by Frank Carr
- How can I prevent an user to close the form clicking on the (X) button
Thnx! Kapalic
-
- At runtime, what else controls windows controls' size/proportion besides windows' resolution?
by Feng26
- 5 Replies
- Last post
by Karthik Krishnaswami
- Hi,
We have a Win form app written in VB.Net. One of the issues we have now is that the size/proportion of the win controls differ from workstation to workstation and that is NOT because of the windows resolution! (all the workstations have the same 1024x768 resolution).
As result of this, about 70 percent of our workstations display the controls the way we want, but the rest 30 percent
-
- how to disable row select in datagridview?
by Jassim Rahma
- 2 Replies
- Last post
by Gavin Jin - MSFT
- how can disable the row select in the datagrid to prevent user from highlighting a row
-
- multiple c# winforms
by rautchetan
- 6 Replies
- Last post
by rautchetan
- I have two winforms one is parent form and other will open when user click button which place in parent form.
I want when child form get display,parent form get close.means on that button event i want to close parent form and open child form...
plz help me
Thanks,
Chetan S. Raut.
-
- Capture keystrokes inside a UserControl
by MEder
- 1 Replies
- Last post
by nobugz
- Hi, I'm about to implement a UserControl that has several other controls inside. As soon as a control inside the my containing UserControl I want to react on keystrokes (like Ctrl+A to select all controls inside). How can this be accomplished Thanks in advance!
-
- Autocomplete in a combobox of a DataGridview
by AR SOFT Informáti
- 2 Replies
- Last post
by tec-goblin
- As I can make a autocomplete in a combobox of a DataGridview. I observed that in the properties of the compo of the combobox has an AutoComplete = True, more no he/she works as of the combobox of the form that has the options autocompletemode = SuggestAppend and AutoCompleteSource = ListItems. and I don't Also get to type other thing not to be it that this
-
- DownScope control on form
by Dan Piessens
- 0 Replies
- Last post
by Dan Piessens
- Let me preface this by saying that I know downscoping is a bad thing to do in C# or any OO language, but here's the issue:
We have a number of ComboBox controls on a form that get dynamically loaded. We've run into issues where the list has 65,000 entries and it takes to long so we change the DropDownStyle to Simple (essentially creating a textbox) and use a lookup mechanism in our applica
-
- start up logIn from then start up form windows
by tds01088
- 2 Replies
- Last post
by boban.s
- I have problem with login form starta up and then after Buttn click do form start up
-
- Creating my own TabPage class
by malj
- 7 Replies
- Last post
by IsomerX
- I have a tabcontrol on a form. If I add tab pages and add controls to them in Visual Studio the controls become members of the main form and the main form will also handle all events from all controls on all tab pages. I want to create my own TabPage class that handles everything that happens in the TabPage to avoid having all code in the main form.
I created MyTabPage class by adding a new Com
-
- Querying Errorprovider
by uwcodeman
- 2 Replies
- Last post
by uwcodeman
- Hi all, Does anybody know if I can query errorprovider / control to check if it has an error So, if I set error on myControl like so: _errorProvider.SetError(myControl, errorMessage); Can I programmatically determine if myControl has an error associated with it
-
- "Application settings" versus "Isolated Storage"
by Parker Lewis
- 3 Replies
- Last post
by nobugz
- Hello everybody
Could someone explain me when you'd typically use the new. .NET 2.0 "Application settings" feature and when you would use the "Isolated storage" Both support a user scope, thus what's the real difference Any links to continuative articles would be appreciated.
Kind regards
-
- How Can I handle Mouse events over a Form with Trancperancy Key ?
by informat
- 10 Replies
- Last post
by informat
- Hi : I had a Form and I put the property Transparency Key to "Control" so some of the form will be hidden .... but I still want to handle User Mouse Clicks on the hidden part of the form ... How Can I thanks ...
-
- Print Preview button on Print dialog box
by Krunal Doshi
- 3 Replies
- Last post
by Chunsheng Tang - MSFT
- Hi,
My application requirement is that I need a print preview button on my standard Print dialog box in C#.Net. (Which it does not have by default). Can I do that How
regards,
krunal
-
- List box - flickering problem
by Michael Vainer
- 6 Replies
- Last post
by Michael Vainer
- Hi,
I'm using the listbox control to display colored messages. for that purpose i set DrawMode to be DrawMode . OwnerDrawFixed and added a listener for Draw item event as following:
Code Snippet
private void lbxLog_DrawItem ( object sender , DrawItemEventArgs e )
{
if ( e . Index < 0)
{
return ;
}
string displayedItem = lb