602 Posted Topics

Member Avatar for Jasminemali

Myform.BackColor = VbWhite MyForm.Backcolor = RGB(255,255,0) have a look [Here](http://msdn.microsoft.com/en-us/library/ktb99cf2.aspx)

Member Avatar for Doogledude123
0
86
Member Avatar for DyO1

Hi, It is easier if you try and break it down into steps: 1. Access the image from the picturebox - look up picture box class properties 2. Select where to save the image to via filedialog - lookup the save file dialog in google 3. Save / Write the …

Member Avatar for Doogledude123
0
104
Member Avatar for mageamida

How are you passing in the date values? Are you using the text that you have given? or DDMMYYYY or MMDDYYYY or some other format? Can you put your actual SQL query down it should only logically return data for the second query as September is before October.

Member Avatar for G_Waddell
0
84
Member Avatar for khair.ullah

I take it you have the selection mode set to Row select? You will need to use the SelectedRows property e.g. Dim startingBalanceRow As DataGridViewRow = DataGridView1.SelectedRows(0) textbox1.text = startingBalanceRow.Cells(0).value textbox2.text = startingBalanceRow.Cells(1).value

Member Avatar for G_Waddell
0
106
Member Avatar for Jasminemali
Member Avatar for G_Waddell
0
61
Member Avatar for Hazuan Nazri

You could also try the ISNULL clause e.g. SELECT ISNULL(MyCol, '') as MyCol From MyTable Would return either the value in the MyCol column or an empty string if it was null

Member Avatar for G_Waddell
0
1K
Member Avatar for gelmi

As Jim says, you need to Explicitly tell SQL Server which columns you are inserting your data into. For example, say I had a table with two columns A and B both these SQL statements are valid: INSERT INTO MYTable (A,B) VALUES (Value1, Value2) INSERT INTO MYTable (B,A) VALUES(Value1, Value2) …

Member Avatar for G_Waddell
0
115
Member Avatar for HibaPro

Hi It sounds like you want to create a master / details view using two datagrids? Here is an example [MSDN Example](http://msdn.microsoft.com/en-us/library/y8c0cxey(v=vs.90).aspx) although this has each one statically displayed on a form. I think what you will have to do is create a data set with your "master" data and …

Member Avatar for G_Waddell
0
134
Member Avatar for sean.downes.96

I assume txtNumRows is supposed to be a Textbox on your form to display the number of rows...

Member Avatar for Begginnerdev
0
122
Member Avatar for Dili1234

Hi, Do you mean you get a phone number and you want to display in that format? dim MyPhoneNumber as string .... Textbox1.Text = MyPhoneNumber.SubString(0,3) &"-" &MyPhoneNumber.SubString(3) Or do you want to force users to enter in that format? Or Both? In that case you need [The Masked Edit Textbox](http://msdn.microsoft.com/en-us/library/11405hcf(v=vs.71).aspx) …

Member Avatar for Dili1234
-1
134
Member Avatar for savedlema

Hi Yes because the data is not coming from an individual table you will need to run the DELETE / UPDATE / INSERT queries as a seperate query for each table. sub UpdateHumanResource() dim cmd as OleDbCommand dim sSQL as string .... con.open sSQL ="UPDATE Academic SET FirstLevel ='" &cmbFirstLevel.Text …

Member Avatar for savedlema
0
196
Member Avatar for prasanta.nit15

Here you go: Project Hello World Documentation: When the user clicks on the button a message "Hello World" appears Open a new project and web page add a button called Button1 and a label called label1 to the page Under the Button1 click event Code as follows: label1.text ="Hello World" …

Member Avatar for JorgeM
0
349
Member Avatar for predator78

There is no ideal system for we are not perfect beings and therefore there will always be the haves and the have nots.

Member Avatar for mike_2000_17
2
734
Member Avatar for HunainHafeez

Ajax would allow you to change and populate the tab each time without refreshing the whole page so it could work for you.

Member Avatar for HunainHafeez
0
132
Member Avatar for jtok

This thread is five years old.... Anyway you should check the reader returns something first: if (objdatareader.HasRows) objdatareader.Read();

Member Avatar for G_Waddell
0
2K
Member Avatar for nice_true

You could always let the client do the work... <a href="mailto:me@somewhere.com?subject=Mysubject">Mail Me</a> OK it depends on them having an email client installed and you will have to monitor the account...

Member Avatar for G_Waddell
0
220
Member Avatar for prasenjit_das

If you have the clientside function already written in the aspx file you don't need to register it server side. I'm also not sure what you are doing here: > Dim localScreenWidth As String = " <script type='text/javascript'>showDialogue();</script>" Basically call the javascript clientside to update the hidden field values then …

Member Avatar for G_Waddell
0
618
Member Avatar for ct_hunny

Using the example TnTinMN put above if you may get a space after the last comma and don't want the empty entry use trim on the string first. dim s as String = trim(MyString) dim parts() as string = s.split(New Char() {","c} StringSplitOptions.RemoveEmptyEntries)

Member Avatar for Reverend Jim
0
3K
Member Avatar for roachae

Good luck.... From what your saying you can get any number of files containing an unspecified amount data in any order in any format and somehow you need to break the data down and match it up to produce a single file with all the data. If I were you, …

Member Avatar for G_Waddell
0
182
Member Avatar for jontennyeah
Member Avatar for G_Waddell
0
434
Member Avatar for HibaPro

If you are using any of these methods, you will have to refresh your datagridview to show the updated records....

Member Avatar for G_Waddell
0
221
Member Avatar for alvr

Hi You could use a data reader to parse through your records and add them to the listView: Dim item As ListViewItem Dim item2 As ListViewItem While DR.Read item2= new ListviewItem(DR("kilograms")) item = new ListviewItem(DR("food")) item.subitems.add(item2) Listview1.items.add(item) End While

Member Avatar for G_Waddell
0
118
Member Avatar for jontennyeah

Ok to get the selected items subitems: Dim item As ListViewItem = listview1.Selecteditems(0) Dim Position as String = item.SubItems(2).Text 'First Item is main item and index is zero based You haven't stated where attendance is coming from but you'd do something like this: If Position ="Driver" And Attendence = "IN" …

Member Avatar for G_Waddell
0
144
Member Avatar for lulu79

OR dim myDate as Date = Now textbox1.text = timevalue(myDate) [MSDN TimeValue Function](http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.dateandtime.timevalue(v=vs.80).aspx)

Member Avatar for brylle
0
9K
Member Avatar for aidan.fowell.5

Like Begginnerdev said check the To and From values Also? why use a textbox would you not be better with a combobox and give the users fixed values of currency?

Member Avatar for SaintQJ
0
175
Member Avatar for tin.marcelino
Member Avatar for nosajbiboy.talan

What are you searching? Records in a Database? Or do you want a search engine like Google? Or Files in a directory?

Member Avatar for TimCadieux
-1
98
Member Avatar for DelilahDemented

In Your Add Columns routine add **ALL** the columns you need, those from the database and the extras. Next in your RunSQL routine, loop through the result set and add new rows to the datagridview as you go: dim MyNewRow as DatagridViewRow While reader.Read myNewRow = DataGridView1.Rows.Add MyNewRow.Cells(0).Value = reader.Item("Patient …

Member Avatar for DelilahDemented
0
1K
Member Avatar for dinhunzvi

Or you could use a bit field (True/ False) - but it would have to make sense as it would only return a true (1) or false (0) OR If you pass a bit parameter you could do something like this in a strored procedure: IF(@Male =1) BEGIN UPDATE tblStudents …

Member Avatar for BitBlt
0
208
Member Avatar for noelthefish
Member Avatar for G_Waddell
0
192
Member Avatar for adam321
Member Avatar for saleem.mukhtiar

~Not sure what you are looking for? try searching under Msdn site for datetimepicker control for examples. Or do you want to know in which date format the date is returned in?

Member Avatar for ShahanDev
0
117
Member Avatar for Shodow

Where are your Events being Stored? are they on a database? Anyway the logic for comparing the two events to see if there is a clash is something like this: Sub CompareEvents (byref Event1Start as datetime, byref Event1End as DateTime, byRef Event2Start as Datetime, ByRef Event2End as Datetime) IF (Event1Start …

Member Avatar for G_Waddell
0
222
Member Avatar for dearjoy

[ascii Table web site](http://www.asciitable.com/) will give you the Ascii key codes for most characters - you can then use the KeyCode example given by bnitishpai above to filter out what you don't want. For example, this code will block them entering the invalid text altogether. Private sub Textbox1_OnKeyPress(byVal sender as …

Member Avatar for ome2012
0
163
Member Avatar for G_Waddell

HI All, I'm writing an application in Visual Basic .NET but the application will use a SQL backend. If the user runs the application and the backend database is not set up, I want the user to select a SQL Database Instance, supply an administrator user ID (sa) and Password …

Member Avatar for G_Waddell
0
337
Member Avatar for hhm_pro992

Your Sql string is wrong it looks like a mishmash of a SELECT and an INSERT Statement If you wish to DELETE Something the Syntax is as follows: DELETE FROM Table WHERE 'Conditions go here If you do not specify any conditions, you will wipe the whole table.

Member Avatar for hhm_pro992
0
242
Member Avatar for waheeba

If you are reacting to user selection of the cell: If myDataGridView.CurrentCell.value = true then 'the cell has been checked end if If you are reacting to the user selecting a whole row (Selection mode = Row Select) You only allow one row selection or wish the first selected row …

Member Avatar for G_Waddell
0
84
Member Avatar for dhameergovind
Member Avatar for Susmita_Sikder

Have you tried using Session variables? They will be "Alive" for the length of the session.

Member Avatar for G_Waddell
0
618
Member Avatar for HibaPro

It looks like you have tried to enter an invalid time format 3.00:00:00 you have a decimal point not a : you mean 3:00:00:00 Or 3:00:00 either way they are the same

Member Avatar for G_Waddell
0
188
Member Avatar for kipslem

Hi you will have to set your Resume field type in the Database as a binary type (Image, Binary etc.) Then you will need to open the Word Document as Stream and insert the Binary Stream into the database. There should be examples of each of these steps out there …

Member Avatar for G_Waddell
0
684
Member Avatar for sanjeewa.abeywardana

Hi There's loads of free SVN stuff out there, I use **CollabSVN** and a plug in tool they offer **AnkhSVN** that allows you to manage it from within Visual Studio - you can check in and out items etc. through your solution explorer and it allows for branching as well. …

Member Avatar for sanjeewa.abeywardana
0
120
Member Avatar for theonebit

I think the clause you're looking for is: If 0<= a <= 100 then i.e. 0 is less than or equal to "a" which is less than or equal to 100 VB.net **should** be able to handle this although you may have to use parenthesis: If (0<= a <=100) then …

Member Avatar for G_Waddell
0
4K
Member Avatar for theboyandtheocean
Member Avatar for dban07

Sounds good but you have identified the main problem you will encounter that may not make this a practical project for you. By their very nature, it will not be easy to get into the Router to do this - some have Web based interfaces that you may be able …

Member Avatar for G_Waddell
1
265
Member Avatar for shrutika_03
Member Avatar for HibaPro

You have to add the parameter as an Output Parameter BUT an UPDATE statement will not produce one and neither would an INSERT you'd have to run a select query for it. What kind of database are you using? If you are using Micorsoft SQL Server then you do this …

Member Avatar for G_Waddell
0
471
Member Avatar for pop_cola

this would work in SQL Server - not sure about ACCESS.... sql ="SELECT * FROM tblname WHERE (Datename(month, fldDate) LIKE '%'" & textbox1.Text & "'%')"

Member Avatar for G_Waddell
0
258
Member Avatar for opman234

Hi I'm going to be trying something similar soon and was told this product was pretty good for implementing licencing including trials and was free too: [Active Lock Software](http://www.activelocksoftware.com/)

Member Avatar for ObSys
0
346
Member Avatar for track&price

Is it possible that the site has been updated and the login form, associated controls and code behind it have been changed?

Member Avatar for TnTinMN
0
298

The End.