I'm having a problem with a tab control in the program I'm writing. I have a tabcontrol with 2 tabs, tab 1 and tab 2. The user goes to tab2 and submits a db search for which the result is displayed on tab1. When the search is done all of the data displays correctly however the screen still shows that tab2 is selected and not tab1 even though the data from tab 1 is displayed correctly as content on the open tab. How can I ensure that tab1 is shown as selected and not tab2 ? I have tried to change the tab focus but this doesn't make any difference.
1) How can I make the text in RTB control to change without clicking on it (RTB control) again? I notice that the event handler is mousedown so its only occurs whenever the users clicks on the controls. But I really have no idea how to do that. Anyone can guide me how to do that???
2) How to make the RTB's Back Color to transparent??? Cause it is not supported. Or is it I use the wrong control???
I inherits textbox Control and I added some new properties to it .one of these properties value i want it to change it's value in desgin time when i change Name property of the new textbox
Public Class NewTextBox Inherits TextBox Private _txtSubName As String = String.Empty
That is the property for set or get SubstringName of Textbox
Public Property SubName() As String Get Return _txtSubName[code].....
that's the property i want to change it's value when i change Name property of the control.i tried to overrides Name property but it's not overridable also i trieds to overloads it but it doesn't work in desgin time.Here is something i tried but it's wronge.
Private _txtName As String = "" Public Overloads Property Name() As String Get[code]......
I have a TextBox that displays a color as its background color and the background color code in its text. I have set the text color as Black.The problem is that if the user sets the color as Black then the color code will be unreadable. How do I set the text color programmatically so that it becomes readable when the user selects any color?
i was designed a form with more controls now i want to moved a [textbox] control into Panel1 but this control has already placed in Panel2. So i want to move this textbox Panel2 to Panel1 how can i do this i don't want to create new Instance.
Ok here is the problem I have. On the tab control in visual basic 2010 there does not seem to be an option to change backcolor. I have searched the web for 6 hours (no joke actually 6 hours) but I have not been successful.
I have a form with a tab control on it. I would like to be able to rotate backgrounds, from the code.I'd especially like to be able to change just one tab on the tab control. I know how to do this in the IDE, of course.)
I'm making a custom control that can be dragged around and it is semi transparent. I need it so that while it is moving (the mousemove event) that if it intersects a control that its parent becomes that control. I tried to have it iterate through all the controls and if control.bounds.intersectswith me.clientrectangle then me.parent = control type thing, but it did not work.
I am inheriting my own DataGridView (say MyDataGridView) from the standard DataGridView control. What I want is that certain properties of MyDataGridView should have a different default value than what its base have. For example, AllowUserToAddRows, AllowUserToDeleteRows, AllowUserToResizeRows properties should have the default values of False; so that when I drag MyDataGridView into a form in the IDE, the default values shown in the properties grid should be False. Later on, if I want to change them to True from the grid, they will be set accordingly.
I have two group boxes M Commands and C Commands on the same Dev tab page. I have P Control group box that is located in the M Commands group box that I want to move to the C Commands group box at load time.
I have searched the web and not found a good resolution for this problem in vb.net. When you change a color in the controls property it does not respond with the color changes.
I have several list boxes on a form, the items collection is filled at design time and the selectedIndex is changed at run time. when I change the SelectedIndex the backcolor of the control changes. I don't want this to happen.
I have a datagridview and i want to allow user to go on the save button using any key or shortcut from keyboard, for example, when a user enter all required data into datagridview and she is on the first cell on any row when she press tab key, cursor should go to save button, this is because i dont want users to pick a mouse while using keybaord.
For example here i have create a user control. the user control contains labels. when the user hit right arrow button on keyboard, the control will appear on form1. when the user control is there. user can select a label. and when user hit buttons on keyboard, the label.text will change according to the button hit on the keyboard. i have done this code. i just write it roughly here.
[Code]...
is this code above should i write on usercontrol1 code area or form1 code area? because i got confused here.
In a program I am making I have a custom user interface. I have dozens of different panels each containing various controls. When the form opens, a text file which contains the positions of each of these panels (and whether or not they are on the form) is loaded and the panels are placed appropriately
I'm fairly new to ASP.NET and of course happened to stumble some strange problem. problem is very popular, but none of the replies I found worked for me.
[Code]...
And the image doesn't change. It doesn't even fire up the showphoto.aspx code.The property is changed (because next time i step into it, it's changed), but showphoto is never fired.I'm aware of image caching issues, but I can't get even one image, not mentioning have it changed.For sure there's a very simple explanation, but I'm fighting with this for 2 days now to no avail.
I have a For Each loop going through the controls in a panel disabling them. When the loop reaches one certain grid control and disables it the CheckedChanged event fires for the next control in the loop which is a radio button.
The call stack is as follows:
System.Windows.Forms.dll!System.Windows.Forms.RadioButton.OnCheckedChanged(System.EventArgs e = {System.EventArgs}) + 0x15 bytes System.Windows.Forms.dll!System.Windows.Forms.RadioButton.WnProc(Microsoft.AGL.Forms.WM wm = WM_RADIOBUTTON_NOTIFYVALUECHANGED, int wParam = 0, int lParam = 0) + 0x17 bytes
[Code]....
I don't understand how control.Enabled = False can cause the OnCheckedChanged event.
How can I change the color of certain dates in the MonthCalendar control in VB.NET? For example, I need to change the color of Jan 21 to Red, Sundays to Orange and so on...
I am trying to select a value from a drop down control before it was text box. I have given the same ID for drop down which was similar to the text box.
I am busy doing a little project for myself, but seem to have hit a stumble block, and i have been on the net for days, but cant find something that works, so hopefully someone here might be able to assist me. I have a windows form, a xml document and a label on the form, i want the <description> node of the following xml document to populate that label, if needs be, i can change the label to another control.
I have a User Control with a label on it. I have a Master Page that I have dropped the User Control on. I have other .aspx pages that use the master page that has the user control on it.
What is the best way to change the text of that label on the user control from the .aspx page?