Showing 2 MsgBoxs Depending On What Happens
Jun 17, 2012[Code].....
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
[Code].....
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
Can't seem to find a way to make the text appearing in Msgboxs to be enlarged.
Tooltips appear to be the same font.
Is it possible to change the position of where msgboxs open at? Can i make them center? or random?
View 1 RepliesI have a problem with the combox its only displaying the first item in the list its being populated by a webserice call the drop down in question is comboboxmodel now the manufacture one is fine and sets as it should any reason as to why the comboboxmodel would not. [code]
View 1 RepliesIs it possible to add text next to its value in a cell, depending on its value?
as example if the value of the cell is less than 1.00, the box will turn to red color and will be appear.
attachment 1 (pic1) is the image before and attachment 2 (pic2) is the image result i want.
i have successfully color the box and having problem with adding the text.
i have two text box's and compare from two columns in database the result auto show another text box and then following below code using my program
Public Sub cal()
Dim sum As Double
Dim res As Double
[code]....
I have two text box's and compare from two columns in database the result auto show another text box and then following below code using my program:
Public Sub cal()
Dim sum As Double
Dim res As Double
With Common_Class.GetSrvRec("i_Unit_Con", "", "QTY_UNIT='" & txtitemunit1.Text.Trim & "'")
If .Fields("QTY_UNIT").Value = txtitemunit1.Text Then
[Code] .....
I am trying to search for a phrase in an array, the phrase might have different spases between two words:
Here is what I mean;
John __Smith
John _____ Smith
john ________ Smith
how can I search without being dependent on SPACES between the two words.
I have achieve to populate my combobox from sql and from this combobox to populate a textbox but now I have to do something more complicated.I would like to populate a combobox from an other combobox choice. And what i mean is that I have a table with Streenames and Postcodes. What I want to do is fistly to choose the Streetname from the one combobox and the interface to appear the Postcodes to the second combobox. Secondly, the postcode combobox should appear more than one postcodes because it is probable that the same streetname maybe belongs to more than one region(postcode).
View 4 RepliesI'm wondering if I can run different code, depending on what OS,My product is on?
View 7 Replies<authentication mode="Windows"/>
<authorization>
<allow users="USERS"/>
[code]....
Is there a way to write an if statement in here to detect what url I am on so I can allow a certain role for that certain URL.
Example code in my head of what I kind of want to see:
If (UCase(Url) = UCase("URL")) Then
<allow roles="ROLES"/>
ElseIF(UCase(Url) = UCase("URL")) Then
[code]....
Is this even allowed in the web.config? I have 3 websites. One for Dev, UAT and PROD. Now for each sites I have different user groups for each set up. I just want to find a way that I can just find what URL i'm at and point it at the certain user group. I'm guessing I have to make a web.config for each because you can't do conditional statements but I'm just making sure. If I have to make a web.config for each how can I go about setting that up?
I try to make my datagridview rows change colour depending on value on a row cell. I ve tryed everything i found on the web but nothing..
View 3 RepliesI work with VisualStudio 2008 and write my codes in VBasci.Also,I use Microsoft SQL server 2008 for my database and here is the question;I ve curently been doing a simple hotel software, the step that I ve got stucked in is that, I take the reservations by clicking on buttons those represents rooms in the hotel,buttons have green colour on them because they are available until I take a reservation for that room,and they must be staying green until a customer checks-in..On a check-in day,that room must go to colour of red or somethıng and must'nt be able to take another rezervation into it until the customer checks-out, I ve got 2 people comıng for that room for tomorrow who will stay for 1 night,so today it should stay green whıch means it s available,but by the mid night it must go red and must be not available to take rezervations for tomorrow,once they check-out on the day after tomorrow ıt should go green,so,available again.
View 6 RepliesI am trying to make the application similar to Notepad++. Notepad++ colours text depending on what type they are, eg. HTML, PHP, CSS, Java, ect.
I just wondered if somebody might be able to help with this? I have no clue where to start, but I have an idea of how it would happen.
- Text is entered into the RTB (RichTextBox)
- The text is read by the program as it's entered
- The text is coloured depending on the type
What is the appropriate declaration such as "ValueChanged" or "Click" for a NumericUpDown that will execute the code when I press enter. I already know that setting the "AcceptButton" property of the main form to a default button will not work, especially if I want a different button to be selected depending on which control I give focus. How do I accomplish this?
PS: Is the syntax any different from Visual Basic 2010 Express than it is on Visual Studio 2012 RC (running in Visual Basic Mode)?
I'm trying to do a calculation where-in the output is different depending on what the input is. [code] I have these repeated using >=50 >=60 etc. but when I go to run the program I get this: [code] basically I need to know how to create a cut off point for the grading system. <= doesnt seem to work.
View 4 RepliesI have a little loop what reads in a text file the text layout is[code]...
View 9 RepliesI have 2 comboboxes. When I choose a country in cboLand I want only the states to show in cboStaat that are associated with the country from cboLand. I tried the code below but I get all different error messages. Perhaps you can see something in my code that I missed.
[Code]...
Example: That's 8 different combinations:
1, X, 1
1, X, X
1, 2, 1
1, 2, X
X, X, 1
X, X, X
X, X, 1
X, 2, X
Any way to get the different combinations depending on the Checked checkboxes into an ArrayList. One entry per possible combination (like the example above). Note this example is just for 3 games, I will have 13 games in my program so if you click all checkboxes thats 1,6M combinations. Is it really wise to have 1,6M entries in an Array? I also want to be able to set demands, like: delete all lines in the Array containing two X. Maybe an ArrayList isn't the way to go?
Ok the other day I saw a neat little DLL that grabbed an image of the internet depending on what the user enters it was used like dllname.Whatever(String, PictureBox1) now the thing is Picturebox was was just that you just Put it on your form and called the dll with that does any one know how to do this
View 3 RepliesHey, Just trying to loop through my gridview and change the color of the row if the first cell equals a given value. This is the code I am trying but does not work.
vb
With gvItemList
For i = 1 To .Rows.Count - 1
If .Rows(i).Cells.Item(0).ToString = stValue Then
.Rows(i).BackColor = Drawing.Color.CadetBlue
End If
[Code]...
I have read a text file into a textbox. The text looks like this (small snippet):
N08861 A1 P 0 A2 P 0 A3 P 0
N08862 P 0
N08870 P 0
N08900 P 00000001
What I want to do is to only display certain lines - this depends on the N number shown above.
E.G. I want the text box the display line N5000 upto N6000.
I want to select a datagridview row according to its column value (i.e. user id) when I click on that row (with sql command).
I had following coding:
If chkboxMvOut.Checked Then
Dim oledbCMD As OleDbCommand = New OleDbCommand
oledbCMD = New OleDbCommand("UPDATE qmaint.ots_output set Timeend = '" & CStr(time2) & "' + Remark='" & txtRemark2.Text & "' + Cstate = 'Move Out' where user_ID ='" & lngUserid & "'", myConn)
oledbCMD.ExecuteScalar()
End If
I have a web page where I am trying to populate the PSI # into the txtPSI depending on which customer is selected in ddlCustomers.I have written it a way it has worked on a past project and it compiles with no errors, however it doesn't work when it runs.
The code adder is not working so I had to add it manually.
Protected
Sub ddlCustomers_SelectedIndexChanged(ByVal
sender As
[code]....
I have been wanting to start a new project for a while but have been putting it off now because of a few thing's.
1) It is something i have never tried before.
2) Right now the probability side of the application would be beyond me.
How ever i say to myself. I have no time limit it needs to be completed in. I would be expanding my knowledge along the way, and it seems like an interesting project to be working on.
The idea it self is similar to drug wars(it's only a game so no comments )
Depending on a new day, different location the price will vary. How ever there is obviously a set likely hood range the price will fall in, but obviously can go above/below this. Also need to take into consideration random events. Police raids, Being attacked, loosing inventory etc.
I have 2 queries. One is populating a dataset that populates the dropdownlist and the other populates rest of the textboxes of a table row. i want to know how can i fill the entire dropdownlist and then make selectedvalue the value from the other query? e.g -
dataset query = select hobby from hobbies
other query - select name, dob, address, hobby from employee
now the table looks like this -
Name DOB Address Hobby
Sam 01/10/1988 111 main st Dropdownlist(n number of records)
Now in the dropdownlist I want all the hobbies populated with the hobby in the employee table to be the selected value.
Im currently trying to get button depending on what the background is to do something
EG:
if Button19.BackgroundImage = my.resources.play then
AxWindowsMediaPlayer1.Ctlcontrols.play()
This doesnt work, but is there any other method of doing this?
I'm trying to create a Software Sales calculator. My issue is not being able to have the lblPackageA3 to display the number as FormatCurrency after having the txtPackageA being multiplied by $99.Also need to figure out how to apply discounts depending on the number of sales IE 10-19 = 20% off
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
Dim sngPackageA As Single
Dim sngPackageB As Single
[code]....
I am creating a WEB report in Visual Studio 2010 in VB.net. The report needs to display a table (please see the attached image). I am thinking to use the GridView component which i think it's the most appropriate one to choose. In the database there are students' data and marks. I can't alter the database in any way and i have to use Visual Studio 2010 with VB.
What i need to do is to show 3 different pictures(for example) depend on the student's marks. I got the pictures file in PNGs but this can be flexible.For example, over 70 will be a Smile picture. over 60 will be the Normal face. and over 40 will be the picture with no smile. I bit difficult for me to explain but i hope u get my point.
So pls advice me how can i achieve this. I am quite a newbie to this pls put as detail as you can. if there is a choice between client and server side script, i prefer server side script. Data source can be flexible (sql, or linq or anything).
This is just an efficiency question really.. I'm interested to know if there is a more efficient or logical way that people use to handle this sort of scenario.
In my asp.net application I am running a script to generate a new project my code at the top level looks like this:
Dim ok As Boolean = True
ok = createFolderStructure()
If ok Then ok = createMDB()
[Code]....
I create a boolean and each function returns a boolean result, the next function in this chain will only run if the previous one was successful. I do this because an asp.net application will continue to run through the page life cycle unless there is an unhandled exception and I don't want my whole application to be screwed up if something in the chain goes wrong (there is a lot of copying and deleting of files etc.. in this example).