Skip to main content

All Questions

Tagged with
0 votes
1 answer
37 views

Having Issue with AjaxCalendarExtenderControl.Add in ASP.NET

Having Issue with AjaxCalendarExtenderControl.Add in ASP.NET The following code: Private Sub AddCalendarExtender() AddControlToCollection(AjaxCalendarExtenderControl.Add("Calendar" & ...
dibello.4's user avatar
0 votes
2 answers
70 views

VB.NET Button Method not setting Visibility to True

In VB.NET Button click event I am unable to set Visible = true. In all examples in the code below the Control visible property is set to False although the code is setting it to True? Does anyone ...
dibello.4's user avatar
0 votes
2 answers
100 views

Correct "As" Clause to use

I'm using VB.net and trying to fully define a variable FoundComboBoxes but when I use As I get errors. I've tried Control which errored as expected, Control(), Control.ControlCollection and too many ...
Eric_S's user avatar
  • 21
0 votes
1 answer
202 views

Visual Studio update. Opened a solution in Windows Form VB and there are no controls in my toolbox

I updated the VS studio application and when I tried to start a new solution for a visual basic windows form design the controls were missing from my toolbox. It says at the bottom "There are no ...
Auryora's user avatar
0 votes
1 answer
95 views

How to adjust Label and Combox so that both texts on the same baseline?

Hello I want to create a Label and a ComboBox at runtime. How do I calculate Label.Top relative to ComboBox.Top so that the text of the two controls lie on one line? It should work for different fonts ...
Heinz Z.'s user avatar
  • 1,575
0 votes
0 answers
45 views

Dynamic button is not calling the assigned function in VB.Net

I have created an e-comers website but on the view cart page i have dynamicly created delete buttonss but these buttons do not call the DeleteButton_Click function Imports System.Data.SqlClient ...
Abdullah Alamgir's user avatar
0 votes
0 answers
97 views

In VBNet, how to get the control's TAG from the sender's object after drag and drop

In VBNet (VS2022), how can one retrieve the control's tag from the sender's object? For example, I can retrieve the text from a label control being dropped on another label like so: Private Sub ...
Raoul Watson's user avatar
0 votes
1 answer
36 views

Using Variables to access controls

I am trying to reference some text boxes in VB.NET using variable names, like Me.Controls("myfield" & xx).Text = "some text" However I keep getting errors and can't seem to ...
Clamont's user avatar
  • 11
1 vote
1 answer
73 views

Can a Form inherit controls from parent form in VB.NET?

I'm a beginner in Visual Studio and i'm developing a WinForm using VB.NET. I would like to have child forms to inherit controls as menu strips or tool strips without creating the same ones over and ...
sickboy's user avatar
  • 13
0 votes
1 answer
58 views

Is there a way to dynamically name/control checkboxes in visual basic?

I have xaml code that creates a list view with two columns; the first column is checkboxes based on the number of items that are in the second column. The issue with the way the code is written is the ...
netengineer8834's user avatar
0 votes
0 answers
1k views

Why is the Windows Media Player Control not available in Visual Studio 2022

I have just upgraded to Visual Studio 2022 from Visual Studio 2019. I have a number of VB.Net Windows Forms Applications that use the Windows Media Player Control. I decided to recompile with Visual ...
David Burden's user avatar
0 votes
0 answers
59 views

VB.NET Reload public variable as new control

My question is how do you programmatically reload a public variable as new control after disposing it? Basically I have a public control in my module like: Public ComboBox_Subgroup As New ComboBox ...
Eduards's user avatar
  • 68
0 votes
0 answers
89 views

VB.NET flowlayoutpanel list of wrapped contents in one column

I'm struggling to figure out how do I make a flow layout panel that has strictly just one column and upon scrolling it adds the controls at the bottom of that column and not make a new column and so ...
Eduards's user avatar
  • 68
-1 votes
1 answer
31 views

How to Remove a control from another Sub than the one where the control was initially created in VB .NET

I have written some code to create a PictureBox every time the code runs, which works fine. Public Sub BtnHit_Click(sender As Object, e As EventArgs) Handles BtnHit.Click ...
goodscore's user avatar
0 votes
1 answer
186 views

VB.NET AddHandler to each button control while looping through controls

I am trying to add mouseenter and mouseleave events to each button while I'm looping through the controls like: For each control in me.controls With control If TypeName(control) = &...
Eduards's user avatar
  • 68

15 30 50 per page
1
2 3 4 5
37