I have an exe (VB. net 2008) that contains a tab control. On these tabs I create controls at run time. On clicking the selected tab, I first create Panels named Panel1 through Panel3 on the tab control. Other controls are added these panels as the sub runs. If I click on another tab then return to the first, I want to flush the panels of all the controls previously created and reload the panels. [Code]
Just getting started in VB.NET. I would like to add X-number of text boxes at run time. And then be able to address them by their index or some sequential numerical value (like an array)
This is what I have so far:
CODE:
When I turn this into a loop to create multiple toolboxes, how do I assign a name to the controls, or will all of them be named "MyTextBox" ? I'll increment their position so thats no problem.
im using the timer control, how do i set the start time and finish time? for eg, show a label text for 4 secs then hide. Googled for examples but still no joy.
I have a form with the DateTimePicker control on it. When I select a date it gives a value like "date time" (Eg.: 5/12/2010 12:20:35 PM). But here the time returned is current time. What I need is for the date chosen from the picker automatically set the time to 00:00:00 instead of the time when the date was picked.
i have a form with the DateTimePicker control on it. When I select a date it gives a value like "date time" (Eg.: 5/12/2010 12:20:35 PM). But here the time returned is current time. What I need is for the date chosen from the picker automatically set the time to 00:00:00 instead of the time when the date was picked.
I am upgrading user control from vb6 to vb.net.In the vb6 application I am loading 3000 labels using a label control array.In vb.net I am doing same but it's taking too much time to load.In vb6 it's taking 1-2 seconds, but in vb.net it's taking 30-40 seconds for same work. Why does it take too much time in vb.net for same work?Code is given below, here Led is the label control array.
For l = 1 To 3000 Led.Load(ledCounter) ColLed.Add(Led(ledCounter))
The following code works perfectly to allow moving a control on a form at run-time. However, when AutoScroll is set to True on Form1, and you drag Button1 past the right and/or bottom bounds of the form, it goes haywire. I really need someway to smoothing control the autoscroll so that as you scroll the control off the form, the scrollbars smoothly appear.
i have a splitter control on tab 2, a grid and a scheduler control on tab 3..looks fine...i save it....close the form...reopen the form, and the controls are all resized and moved around on me....and not for the better.
wierd thing is that when i run the app, the controls are placed properly, but design time is totally f&*ked up.I know this one isn't me. is it the tab control? should i just do toggle buttons at the top and show/hide my own panels? this is just too freaky to deal with. is there an easy work around for this?
I downloaded this time picker control ASP.NET Time Picker Control however, I am not able to see it in the HTML markup of the page. Which step am I missing?
Update:Based on the response on this post Time Picker Error, I did enter
I have a blank winform. A textbox control with name textbox1 being added to the winform. During the form load event, I retrieve 2 string values from database and store these values into TextboxName and TextboxValue variables of string type.
I use TextboxName variable to store that textbox control name (i.e. currently TextboxName = "textbox1") and TextboxValue variable to store that textbox's text (i.e. currently TextboxValue = "Hello world"). My question is how to set the textbox1.text property without have to resort to following code:
If TextboxName = "textbox1" Then textbox1.Text = TextboxValue End If
how to set the textbox1.Text property without have to use IF...Then construct?
its 3rd or 4th time that i am having this problem. the problem is that suppose i added a new control, any one textbox, button, combobox, checkbox etc etc. and when i run my project so it does not show that new control on form. or sometimes i add a control and it display on my form at run time but when i delete the control so it does appear still on form at run time. what is wrong with this?
I am trying to create a ListView control at run-time and populate it with data from a SQL Query, I can create and execute the SQL query returning my desired data, I can create the listview control, but I can not get the list view to Populate data from the ListviewGroup I am creating from the SQL query. Code Snippet Follows.
Dim ItemGroupSQL As New ListViewGroup ' Create three items and three sets of subitems for each item. a = 0
[Code].....
This will create a ListView Box and populate the data in a very odd way, every row will have 5 columns with the same data repeated in each column. I have verified (using the commented out msgbox statements you see) that the ItemGroupSQL variable is being populated correctly. but Listview1.items.addrange(itemgroupSQL.items()) does no add the data to the listview correctly
I have a problem. I have created a control, Now whenever I am going to Drug that control on my form then a error popup will appear that says "Failed to create component 'XXXXXXXXX'." System.IO.FileLoadException: A strongly named assembly required. HRESULT: 0x80131044 Is there any facility available in .NET for design time debugging Means If I drug a control on form then I will allow me to debug the control.
i have a window in wpf and i add a couple of control at run time. Now i wanna be able to drag & move them around the window. Could anyone post some sample code how i can achieve this? (coding in vb.net)
I want to insert data from two tabs on a Tab control into a Table and I keep on getting Run-time error 3134. I believe I have to in someway make all the Tab active but don't know how. Below is my code
Private Sub SaveandNew_Click() Me.tb_Factors_Treatments.PageIndex = 0 Me.tb_Patient_Details.PageIndex = 0
I created a custom control (inherited from a panel). Then I created some other custom control (textboxes)
I add the panel control to the form, then I add some custom textboxes inside the panel.
Now, if I remove the panel, the custom textboxes don't move. I think, because the custom panel control isn't the parent control of the custom textboxes.
How can I modify my custom textbox class, if I add the textbox to a form, to a panel, to a container, it should have that container as parent.
i know that VB.net and above don't use true transparency(and maybe true opacy) except forms, but even them have 1 visual bug. because if the we put the backcolor igual to transparent key, the picturebox is transparent... but give us a form hole.i found several codes that do transparency, but i see 1 problem on them, because the control needs time to be transparent.[code]some codes(that i founded on internet) are diferent but give us the same result.can anyone explain to me why the control needs so many time to show transparent?(i have tested using the keyboard to move the control, and i see the control is like visible and then hide and then visible. and if i continue click on key, the control isn't showed until i release the key)
setting the default value for an integer attribute of a custom control seems to have stopped working. The following code adds the Maximum attribute to the design-time properties table, but the default value pops up as 0, not 99:
<System.ComponentModel.Browsable(True)> _ <System.ComponentModel.Category("Behavior")> _ <System.ComponentModel.Description("highest value possible")> _
Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged mycommand = New MySqlCommand Dim daMyName As New MySqlDataAdapter
[CODE]......................
The bold part is my problem. its about date time picker. there is no error but whenever i choose a date that was handled on the specific day, there is no data displayed in my excel file with the selected date. but in my database, there was a ticket handled on the day that i picked.
Below code creates a set of comboboxes which are bound to the data table. This works almost fine with one exception. Whenever i change selection in one of these comboboxes, any other combo changes it's selection too.[code]...
I am using Visual Basic 2010 for a project.My project requires to place a TRANSPARENT button on top of an image (placed inside a picturebox). for that to work, i need to set the button's parent to the picturebox. Is there a way to do that in design time? I cannot find anything on the property tab. The reason i want to set it on design time is because my project will have a motherload of buttons and it will a pain to code the parent change....
This is a related to my last post, but not enough to make sense as a tag on question.I have a collection(of myClass) that is exposed as a public property in a user control.When I add an item to the collection in code I would make the call collection.add(new myClass) and of course the constructor for myClass is called.When I add items to the collection via the design time menu the constructor for myClass is not called.... of it it is called, I can't see any evidence of it.
I'm trying to make a simple User control that houses one collection of a class that I've made. After building the control All works as planned and then randomly when I try to go to the design time interface for the form I placed the control on I get an error page with the following:
To Prevent Possible data loss before loading the designer, the following errors must be resolved:(ignore and continue: which about half the time works and the control shows up and the other part of the time all of the controls on the page are missing)
The one error is the following:Object of type'System.Collections.Generic.List'1[StaticGraphPlot.clsStaticCurveData]' cannot be converted to type System.Collections.Generic.List'1[StaticGraphPlot.clsStaticCurveData]'.
I have created a user control that mimics what a label does. I realize I could have inherited the label control, but I am working on understanding the process. I wish to add items to the control. normally (in the code of my project) would do:
Form1.Label1.Controls.Add(mylabel) After creating mylabel in the code of course.
I have a UserControl class in a Windows Application project. One of the properties of it is a collection of another class that I have defined. I can't seem to find a good example of how to get the standard collection editor working for it at design time.I got it working using some example code I found to a degree, but the data in my collection doesn't get saved. When I exit the form and open it back up in design time the data isn't there any more.Here is my class:
Public Class Gauge Inherits Control Private WithEvents _Captions As New CaptionCollection