Validate That Atleast One Thing Is Selected Before And Calculations Are Done

Dec 12, 2010

I need to validate that at least one thing is selected before and calculations are done, And if its a checkbox it needs to have a positive numeric value. Isnt there a way to do it by Groupbox or do you have to do it individually per box?

View 7 Replies


ADVERTISEMENT

Validate Selected Column In Datagridview?

Mar 6, 2010

I'm trying to validate that a particular column in a datagridview has been selected.

I've created this code which transfers the value of the selected Customer ID cell in the datagridview to another form.

Private Sub mnuFileEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuFileEdit.Click
'Define variable for the current selected cell value

[Code]....

It's working fine but at the moment any column in the datagridview can be selected and transferred which causes an error.

So I want to create an If Then statement which confirms that the selected column with the dgv is the PK_ID (customer ID) column before processing the rest of the code. I've tried playing around with "If dgvCustomerSearch.SelectedColumns("PK_ID") Then" but a "Value of type...cannot be converted to Integer" error occurs.

View 2 Replies

How To Search And Atleast Select Matching Entries In List-box

Jun 30, 2010

I am to make a program that lets the user save certain data values with a delimiter(":") to a text file(done) Example of data entries [code]Then i am to load those values to a listbox , i was able to do that as well and i include the delimiter when i load the values.Now i am supposed to let the user enter any month/year value for date(mm/yyyy) such as 06/2010 and if any of the entries match the search string then either the program selects those values in the listbox or a popup msgbox is used to show the entries. How the result is displayed is a little irrelevant, but how do i search and atleast select the matching entries in the listbox ? and not just the first instance but all instances of the search string.

View 3 Replies

Play Video Files (atleast Wmv, Avi) From A Byte Stream?

Mar 1, 2009

I am trying to play video files (atleast wmv, avi) from a byte stream in vb.net.Is it possible to direct this data at a wmp control?I have done this successfully with images & picture boxes, just need help with the video.

View 1 Replies

Validate The Day If The Selected Year Is A Leap Year In Combo Box?

Jun 12, 2011

how to validate the day if the selected year is a leap year in combo box.

View 1 Replies

Get Atleast Noise Level Coming Out Of Speakers / Draw A Graph And Detect Peak At When Sound Is Played?

Feb 3, 2011

I was just thinking if there is any component which monitors sound output. My intention is to recognize a particular sound coming out from my soundcard. I know its an issue about the driver of my sound card but is there a way I can get atleast noise level coming out of my speakers and maybe draw a graph and detect the peak at when the sound is played?

View 7 Replies

Validate Html.editorfor - Validate The User Data Entered

Apr 26, 2012

I'm trying to figure out a way to validate the user data entered:

[Code]...

This is in MVC3, VB.net. I'm looking for an easy way to validate a users input data into the editorfor field.

View 1 Replies

3rd Time Asking About The Same Thing WebDrive?

Nov 8, 2009

i asked a lot for this thing an i need answer and here is an example i need to create something like that connected to WebDav or FTP Server[URL]... this drive you can install it and easy transfer data from your hard disk to the Gmail server and login with Gmail account

i have WebDav Server and FTP server and i need to create Drive like this one to transfer data to this partation and sure to the account at the server

View 7 Replies

How To Create A History Thing

Aug 9, 2010

have a web browser and want to know how to create a history thing, I want to be able to view history in a seperate form, I want in my options to be able to delete history, and I want my combobox to be able to view the last addresses I have

View 6 Replies

Php - Get A Function In VB That Does The Same Thing As File_get_contents In PHP?

Jul 20, 2011

Is there a function in Visual Basic that does the same thing as file_get_contents in PHP.I'm a PHP programmer, and I want to write a few scripts to download some data from an API I'm using.

View 1 Replies

VS 2008 Yes/No/Cancel All Do The Same Thing?

Aug 29, 2009

I want Yes to do the SaveFileDialog and save the file.I want No to just close programI want cancel to return to program

Public Class Form1Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing

[code].....

View 9 Replies

Err.Number And Exception.HResult The Same Thing?

Feb 14, 2006

I've recently converted some VB 6 code over that used the old non-structured exception handling. I also have some .NET classes that raise custom exception classes. When the code was VB6 I used to expose my .NET classes using COM interop and errors raised from .NET classes were being caught correctly in VB6. Now that everything is .NET the old non-structured exception handling is still there in the converted classes. But now the Err.Number is not reflecting the HResult of the error raised. I wrote a simple little Windows Application form with 2 buttons to simulate the problem. Here is the code snippet:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
On Error GoTo ErrHandler
Err.Description = "Test Error"

[code]....

If you click Button1 you get the following message:

-2147215379 : Test Error

If you click Button2 you get the following message:

5 : Test Exception

View 8 Replies

Forms :: Form Closes The Whole Thing?

Apr 4, 2010

[MyCode]
Rigger.Show()
Me.Close()

Instead of showing Rigger.vb and then closing form1.vb, it closes the whole thing. I need it to leave Rigger open, and close form1

View 1 Replies

How To Do A Count Of Number Of Thing In ListBox

May 6, 2009

Imagine i have a listview1 and inside i populate 6 item how to write a code to count ?than a messagebox.show (" you have 6 files ")

View 4 Replies

Listbox Like Docking Type Thing?

Jul 2, 2010

ok say you have 5 listboxes and you want it so that they are kinda docked to the bottom so that when you resize the window they expand downward but not sideways

View 1 Replies

Make 'try' Thing Work In My Program?

Feb 3, 2011

I need to write a program that uses 'try' in it

the program can only accept a number if its bigger than 3 otherwise it would give a error message and return to the start of the [code]...

View 16 Replies

Make Form To Do A Different Thing For Every X Secs?

Jun 27, 2010

I have 2 labels in my form. I have different content on them.I want to do the following:[code]*loop all the code above nonstop, in order to make this "sequence" running nonstop until i close this program*..Can anyone tell me what code do i need for each underlined part above?

View 2 Replies

Make If Command Apply To More Than One Thing

Jul 29, 2009

i was wondering if theres a way to make an if command apply to more than one thing, this is my problem: theres 9 white squares and if theres one or more thats orange, then a numer.text goes down one but at the moment theres 9 white squares and for every one thats orange the score goes down one, so if three are orange then the score goes down by three, or if five are orange then the score goes down by five, I'd like to make it so that even if there all nine the score only goes down by one.

View 13 Replies

Ordering Commands TO Do Things First Before One Thing?

Jun 22, 2012

If TextBox1.Text = ("weburl") Then WebBrowser1.Document.GetElementById("price_category").SetAttribute("value", "4")
End If
If TextBox1.Text = ("weburl") Then
WebBrowser1.Document.GetElementById("fullprice_quantity").SetAttribute("value", "4")
End If
If WebBrowser1.DocumentText.Contains("Add to shopping list") Then
WebBrowser1.Document.GetElementById("add_to_list").InvokeMember("click")
End If.

I want them to go in order. But what it is doing at the moment is going to the third if statement first.

View 39 Replies

VB 2008 - Change Form1 To The Name Of The Thing

May 16, 2012

Such as with using Visual Basic 2010. what is an easy simple program to make? Like making your own calculator or whatever.If I even tried fiddling around with Visual Basic 2010, I would change Form1 to the name of the thing that I am creating, along with changing the color of the foreground/background and the color of the text too.But its the command text where I have to add text to make it work too that I would have trouble with. I ain't smart when it comes to stuff like Visual Basic.

View 1 Replies

Vput The Images In The Exe And Just Send The Exe With Every Thing It

Jan 22, 2009

i have images for my rollover buttons and thay are scatterd aound my hdd so when i build my app and send it to some one the images will no be displayed so my question is how to i put the images in the exe and just send the exe with every thing it.

View 4 Replies

Write A Formula To Make The Same Thing Work?

Aug 26, 2009

I want to enter a formula in VB but don't know how to proceed.

The formula I use in Excel is as follows

=IF(B2="A",M2*20.27)+IF(B2="B",M2*15.96,0)

How can I write a formula to make the same thing work in VB

View 3 Replies

.net - Passing A Method (that Returns A Value) As A Parameter A Bad Thing?

May 21, 2012

So for instance I have this method: LoadFunkyInfo(byval funkyData as string) And I pass it something like this:

LoadFunkyInfo(giantTable.Rows.Item(0).Item("blahName")). Should I do this instead?

dim foo as string = giantTable.Rows.Item(0).Item("blahName")
LoadFunkyInfo(foo)

I read somewhere long ago, that it's better to assign the method to a variable and pass that variable to a method, as opposed to passing the method as a parameter. Is that still true? Or true at all?

View 5 Replies

Console Application - To Check If You Type A Certain Thing

Aug 25, 2010

I have a console application, and its supposed to check if you type a certain thing, then it does it.

My code is:

Console.WriteLine("Please enter a command.")
If Console.ReadLine = "time" Then
Console.WriteLine(My.Computer.Clock.LocalTime)

[CODE].......................

View 7 Replies

Form Resize With Control Sizing (con't) + 1 More Thing?

Apr 7, 2012

why the title has "(con't)" is because of this Form Resize With Control Sizing... almost named it with another thread on here. And I wanted to post, but it was already a 'Zombie Thread'.Thanks to _HAWK_'s post #11, instead of declaring every control I use. Would declaring it an array (fast guess - Label<Array(how many - 1; aka - X)>) work? ... that was probably Java... My point has probably been made, or can I just do Label.Scale(variable)?I had already set my declaration of the form I need to do this on "Resize". I am not quite at this stage yet, but I see this saving a lot of time asking early.

The +1 extra question is:How can I be able to split of a form in 3 unequal sections? The initial form is 800*600-left side has 2 sections, each 400*300 right side is 400*600.I am already using 3 'GroupBox' and it looks ugly because I have each one colored differently.I looked into Splitter and SplitContainter and TableLayoutContainer.

View 2 Replies

How Do Bubble Sorting With Numbers On A Console Thing

Feb 20, 2011

can someone give a example of doing bubble sorting with numbers the simplest way if possible.all i know is that it uses a boolean to stop sorting, a variable which records how many swaps are done in a run if its 0 it stops swapping but other than that i dont know how to write a program doing bubble sorting?

my teacher didnt give me any examples of bubble sorting other than a algorithm, and before u ask no its not for homework i am looking bck at my computing notes and i just dont understand any of it!

if u could explain it to me step by step and give a simple brief exmaple using numbers

View 1 Replies

Make A Webbrowser But Cant Get The Dock Thing To Work ?

May 27, 2010

Im a bit new to vb.net and i have maked a webbrowser but cant get the dock thing to work im not so good to that the form looks like this: [URL] then when i maximize it to full screen it looks like this: [URL] not good how do i fix it?

View 11 Replies

Project - To Search File With Any Thing Matching

Mar 3, 2010

I have a search Option in my Project i want to search File with any thing Matching

Supposly : I have a File With the name "nokia samsung" And user type "Samsung" in Search TextBox and if User type "nokiasamsung" then my application also able to Understand. What my Code i cant make a Figure

View 9 Replies

Text Classification / Categorization / Identification Do The Same Thing

Oct 14, 2010

My question is whether Text Classification, Categorization and identification is one and same thing or there is difference between them, if it is not the same so what is the difference. and is it possible to make a such a program in Visual Basic? that identify text i think it is type of machine learning? am i right?

View 16 Replies

What Is Most Similar Thing To A Pointer Meaning Like C Poinetrs

Apr 17, 2009

What is the most similar thing in vb.net to a pointer, meaning like C poinetrs? I have a TreeView within a class. I need to expose some specific nodes (or leaves) that can be modified by external objects.

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved