Search:
Type: Posts; User: .paul.
Search:
Search took 3.66 seconds.
-
Because it helps to keep the forum tidier. Why ask 10 duplicate questions when 1 properly thought out question, with all of the relevant information needed to answer your question well?
Any other...
-
Attachments don't always work great in this forum. Any mods who see this, can you fix my image upload?
http://www.scproject.biz/marginbounds.png
-
The inner dashed rectangle in this image shows e.marginbounds...
180391
-
No assuming you have e.marginbounds.top and bottom of 100px each and left and right both 100px each, then the rectangle described by e.maginbounds is your paper size minus those borders
-
e.MarginBounds is a rectangle within the page bounds, located and sized as specified by the margins properties
-
Or... Maybe you did??? :D I'm guessing the OP didn't see them, or Post #18 wouldn't have been necessary...
-
Controls("TextBox" & (_i + 1)).Text = (ListBox1.Items(_i).ToString)
-
TextBox1.Text = TextBox1.Text.Re[;ace("liked years mouth click width exams forms genda coder codes table poorl poste franc repot derie cvang",...
-
This is why Visual Studio provides us with debugging tools. You can set a breakpoint and step through your code, line by line, examining the state of your variables as you go...
I didn't need to run...
-
_i will not be Nothing, it will default to 0 (zero)
Do you have a TextBox0??? No, it appears you don't :D
-
Every Control has a Parent Control, which can be a Form, a Panel, a GroupBox.
Controls(“TextBox” & _i) looks for a Control whose parent is your Form...
-
I told you. Either the TextBox doesn’t exist in your Form’s Controls collection, or the ListBox Item at _i doesn’t exist. It’s that simple...
-
What is the value of _i? Don't forget your ListBox items are zero based. If, for example, you know _i to be equals to 1, do you have a TextBox1 on your form? If TextBox1 is in a Panel, or a GroupBox,...
-
Sorry I didn’t read your OP thoroughly...
-
Dim d1 As Decimal
Dim d2 As Decimal
Dim d3 As Decimal
Dim d4 As Decimal
If Decimal.Tryparse(txtHW.Text, d1) AndAlso Decimal.Tryparse(txtQuizzes.Text, d2) AndAlso...
-
This might help...
https://social.technet.microsoft.com/wiki/contents/articles/38266.vb-net-binding-wmi-managementobjectsearcher-results.aspx
-
Without the cast, the object is type Control. I cast it as type TextBox. It’s strange that it was just brackets that caused the error...
-
In the end, you'll do what you'll do, But a String is not a number, and an Integer is a whole number and not a String. Turn Option Strict on, and VS will force you to fix those errors
-
If you want to allow numeric input from your user, use a NumericUpDown control...
-
If your controls are just for display and not input, use a display control... That's what Labels are for. No possibility of someone crashing your app...
-
Dim _i As Integer = 1
DirectCast(Controls("TextBox" & _i), TextBox).Text = ListBox1.Items(_i).ToString
-
What happens when the user types 'hello' in TextBox2??? :D
-
The problem is the timer1 tick will start timer2 if the value in TextBox2 is greater than 10. The way to stop that happening when you click the button to stop the timer2, is to clear TextBox2.
...
-
'' alarm point is 10
If a > 10 Then
' make a 10 or lower here
Timer2.Enabled = True
-
Are you sure? There's an EndDoc in classic VB, but VB.Net uses e.HasMorePages
-
When you paste code in this forum, you should select the full code block and press the # button above the message editor window. This will give you a code block, which will retain your indented code.
-
The only catchall for String, Integer, Decimal, Date, etc... is Object. I haven't tested that, but it might be worth trying
-
Try reading this, then asking a more specific question, if you need more help...
IO.File class
-
@Prahlad - it’s bad practice using m to refer to Month. In VB date formatting m refers to minute and M refers to Month, as h refers to 12 hour clock and H refers to 24 hour clock...
-
There are 2 ways you can do this...
The simple way...
Dim count As Integer
If Integer.TryParse(TextBox1.Text, count) Then
Dim strNumbers As String = ""
For x As Integer = 0 To count...
-
See the errors there? I'd suggest...
If (Not Double.TryParse(input, conversion) OrElse conversion< 0) Then
MessageBox.Show("Please input a valid grade.")
Return
End If
-
For future reference, here's where to ask VBA questions...
https://www.vbforums.com/forumdisplay.php?37-Office-Development
-
Isn't Application a reserved keyword in VBA?
-
No, but if it’s a JQuery issue, it would probably help to include the right libraries
-
Looks like you’ve misunderstood the question. As JM understood it, and as I understood it, danzey is looking to save a form state, then recreate that state at a later time...
-
Could i solve it by linking the correct version of jQuery? At present i have no link
Edit: By linking I mean importing in the html head space, or however it is you include a js library
-
I can't answer your question, but i can point you towards the ASP.Net Forum
https://www.vbforums.com/forumdisplay.php?31-ASP-NET-And-ASP-NET-Core
-
-
Dim isOpen as Boolean = False
For Each f As Form In Application.OpenForms.ToArray
If TypeOf f Is Form2 Then
If f.Text = "your Form2 title" Then
isOpen = True
...
-
Why use the API at all if Form2 is part of the same app? Application.OpenForms is the easier method...
|
Click Here to Expand Forum to Full Width
|