Msgboxes Does Not Show Up
Apr 18, 2012I dont understand this, I got this small bit of [code]...
Msgbox with "Check 1" displays. But the other 2 ceckboxes "before songarray" and the one under does not! What the h*ll can cause this?
I dont understand this, I got this small bit of [code]...
Msgbox with "Check 1" displays. But the other 2 ceckboxes "before songarray" and the one under does not! What the h*ll can cause this?
I have 3 msgboxes in my program which should appear sequentially. However, sometimes they appear sequentially and at other times they appear randomly.
View 4 Repliesthis is my coding so far and it works all fine:
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
'calculates the required Payments e.g. Monthly, Yearly and Total'
Dim dInitial As Double
[code]....
So what I'm trying to do is add another 'IF' statement of error handler in whereby if the user enters in a value that is not a double such as a string value it will display a message saying 'the data entered is not valid, please use numbers only'.
is it possible to change the default text of the button of msgboxes? How?
View 4 RepliesI have a textbox1 and button1 and panel1 (which is used as a popup control)i want if textbox1.text="show" then modalpopup control whose id is panel1 will be visible on buttonclick event other wise .... modal popup control panel1 will not be shown ...how to do this ? using vb.net ?
View 2 RepliesSQL statements:
SQL = "SHOW TABLES;"
Try
conn.Open()
The remarked area works fine when I'm accessing a specific table. I've successfully inserted the products_model field into the combobox too. The datagridview does show the table names in the db using the SHOW TABLES sql statment, but I'm not understanding how to get this info into the combobox instead.
Can anyone help me to make a program which include a Button shows the current Month and the year and when clicking the button it shows a DialogBox ith a MonthCalender (this one I have done - the Monthcalender shown on a Dialogbox).Further I want to change the month shown as a Text of the Button when I click other Buttons to make the calender to go backwards or forwards,
Another thing I want to know is how to make the TreeView which expand / reveal another line or something on clicking the "Plus".I am learning only VB 2005 / VB 2008, please give the codes etc for VB 2005 only.
BTW, Can you tell me how to paste a picture in this writing place? I tried to paste the picture to shoow what exactly I want to do, but I couldn't do it.
I'm writing a program for my algebra students to practice integers.Stuff like....
3-6
-4 + (-5)
3(-4)
-15 � 3
etc.
I want to show an explanation and for the addition and subtraction, I want to show it on a number line. For example, if the problem is 3 - 7, the number line should show and arrow to that goes right to 3, and then left 7 units (starting from 3). Then the student can see that the answer is -4.I could probably do this with some string manipulation, but what would be the easiest way to do it in a picture format? Maybe a bitmap.
how do you show information from a datagrid cell to show up in a text box in another form, this is for a college project.
View 1 RepliesHow do you refresh a datagridview in code to show to show new data in the DB?
View 3 Repliesi allready have date values in a datagridview and datasource is Access table
dim endindex as integer
datagrid.currentcell = nothing
dim table =mydataset.tables("Booking")
[code].....
stock table
fkodsno
[code].....
how to copy, delete, show files, show current directory, change directory, make folder, rename folder. My problem is i have a method on deleting a file and copying a file, but i don't know how to pass the method so that when i click the delete button it would let me choose what file to delete. By the way im using buttons on each function.[code...]
View 2 RepliesIf NewEntryName.Text = "" And OpenFileDialog1.FileName = Nothing Then MsgBox("Please choose a name for your game.", vbExclamation) MsgBox("Please find your game.", vbExclamation) Else Button1.Text = NewEntryName.Text game1 = True Panel1.Visible = False End If
I want it to show the first MsgBox if the NewEntryName.text = "" and I want it to show the second MsgBox if openfiledialog1 = nothing... how do I do it?
What is the code for Hiding a mouse and make it go back when going to
Desktop1.vb
Cursor.Hide()
works
Cursor.Show()
is not working when going to Desktop1.vb .vb its still hiding what am i doing wrong here is my code.
[Code]...
As a continuation of my previous posting, which we were able to resolve, I am running into the same problem again, due to being unable to use frmForm1.Show().In my last situation I had to use frmForm1.ShowDialog(), which worked in that case, as it called another form, for example frmForm2.However, now I have a program that is sometimes required to recal frmForm1, and I get the following message: �Close the form before calling ShowDialog.But, in frmForm1,I include, Me.Hide() and Me.Close(). Also, before recalling frmForm1, from a procedure under Main(), I have added the following
frmForm1.Close()
To me that would suggest the form is closed, dead and buried, but the programme still stops at the point of:
frmForm1.ShowDialog()
With the same message: �Close the form before calling ShowDialog.
This is very, very simple question, I even posted on another forum, but apparently I didn't get the right answer.
View 3 RepliesI was able to get my code to work, but I forgot that I needed the $ in the results. I tried adding a string which did get a $ to show up, the only problem was that when I plug it in I get $1.00 to show up for each or for it to go up in increments. It works perfect with the string, but I have to have the $. This is my code:
Public Class Form1
Dim gallons As Double ' total gallons
Dim total As Decimal ' total price gallons times grade price
Dim regular As Decimal = 2.69
[code]....
Having trouble getting this to work. Only one number shows in the label. I need all 10 to show in the label.
Dim list As New ArrayList
Dim selected(19) As Boolean
Dim thisnumber, i As Integer
[Code].....
In a repeater is it possible to have a field only show once and then again if it changes?What I want it to look like
Audio
- Thing
- Thing
- Thing
[code]....
They are going to be ordered by Type either audio video picture but I don't want to have repeat Audio Video Picture as well.
I want to only show the last four digits of a Social security number after they leave the textbox. Does AJax have a tool for this that I am not aware of? How can i do this? I want to replace the digits with '*'. I'm working in .NET. Ajax is also accessible.
View 2 RepliesI have on a form a UserControl that I use as a Data-Entry form. I show and hide it constantly with new data. Often (not all the times) the same two memo-boxes are shown on the screen first for a second, and then the full control is visible. I found this link, I'm not sure if that's my solution, but in any case I don't know where to call it and when. EDIT: I noticed that it happens 'only' if the program is idle for a couple of minutes. I could show and hide the control 10 times one after the other no problem. but if I hide it and show it again after 2-3 minutes then I get this behavior.
I guess it has to do with the time it takes to reconnect to the MsSQL database to pull the data. But how can I tell this 2 boxes to stay invisible like there parent until the parent is ready to show?
I am trying to display a picture box, however i am making some error in the
[code]...
I have a dialog that opens with a textbox on it ready to receive text input from the user.
The only problem I have is that I can't get the cursor to show.
I have a ComboBox and upon formload:
ComboBox1.Items.Add("kHz")
ComboBox1.Items.Add("MHz")
ComboBox1.Items.Add("GHz")
so that it adds those 3 items.
How do I make it so that kHz is shown as the default value rather than just the blank item that is currently shown until the combobox is click on?
I'm trying to define a column in my DGV that has a DataGridViewCheckBoxColumn. I've set the "FalseValue" to 0 and the "TrueValue" to 1. When I run my app, the column just shows 1's and 0's which were retrieved from the Database. NO CHECKBOX appears!
View 7 RepliesI got a form1 - as MDIForm Panel1 with a treeview inside to the left side of the form1.Now I won to show my different contents to the right-side of form1.How Do I - do that.Do I have to make another panel2,panel3,panel4.....
View 7 Replies Okey, I want a code to that only show some words, but this time I want them to setup like this according to what checkboxes is checked:
[Code]...
how to show the genealogy report in vb for multilevel marketing project like one member in left and one in right?
View 2 RepliesI am writing to a listbox with a For/Next stepped to .01.The problem is when it go to 1.1 there is no 0 after the .1. I tried Format(i, "00.00") and the 0 will not fill in.
View 2 Replies