Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
6
Posts with Upvotes
6
Upvoting Members
6
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #482
~46.0K People Reached
About Me

Am a Lebanese guy currently working in KSA as system developer in a hospital called SMCH (Specialized Medical Center Hospital). It is my first employment as programmer even though I have developed and sold some applications before. My previous jobs were…

Interests
Computer Games, reading

158 Posted Topics

Member Avatar for anousha

Hi, Check this sample it may be a little complicated but you can isolate the code you need out of it.

Member Avatar for Reverend Jim
0
786
Member Avatar for Satyam_1

So every time you are pressing a key you are opening a connection to the database and selecting and closing the connection. I don't think this is practical nor reliable. What you have to do is to create a dataview on the form level, and on the load event fill …

Member Avatar for Satyam_1
0
1K
Member Avatar for samsudin

A more simple answer is having a good Internet Security product, as well as avoiding any suspicious sites, links or downloads. Any device connected to the net is exposed to a lot of threats, yet many of them can be easily avoided and the rest can be captured using antiviruses …

Member Avatar for melissad
0
592
Member Avatar for westsiderailway

Why do you need a new form to do the search? On the same form "form1" fill the dataset in a dataview "MyDataView", then bind the datagrid to this dataview. Add a textbox to search the date, we will call it "txtDateSearch". Now after filling this textbox and pressing search …

Member Avatar for westsiderailway
0
245
Member Avatar for anuradha71

What you've done seems to be correct. Try to take the SQL query to the server and run it there may be you have problems with the date format??

Member Avatar for anuradha71
0
2K
Member Avatar for dsimonovski1

I didn't exactly get what you need but I think you have to apply the height prperty of the row that contains the label to **autosize** instead of obselete or percentage.

Member Avatar for dsimonovski1
0
255
Member Avatar for missy_mi

I think Pollatep is correct, your if statement is wrong. you have to add the object with each condition: If typeof obj is TextBox or typeof obj is ComboBox or typeof obj is ListBox then

Member Avatar for kb.net
0
207
Member Avatar for nayzin.phyo

Sorry but no one will read this code to find out what is wrong. Simply post your problem in couple of lines so we could help.

Member Avatar for e.pol
0
182
Member Avatar for PM312

Use the following code to add the rows and fill the data at the same time, this shall solve the problem: For N = 1 To 5 DgvInvoiceDetails.Rows.Add(xlsheet.Cells(N, 1).value) Next

Member Avatar for PM312
0
285
Member Avatar for Ryan Nigel

No need for a timer simply use the sleep function: Process.Start(My.Computer.FileSystem.CurrentDirectory & "\first.exe") Application.DoEvents Threading.Thread.Sleep(10000) Process.Start(My.Computer.FileSystem.CurrentDirectory & "\second.exe")

Member Avatar for tinstaafl
0
964
Member Avatar for lopesi2003

There are hundreds of online examples check this: http://support.microsoft.com/kb/315828

Member Avatar for kb.net
0
114
Member Avatar for tumain

This depends on you background and what you need this for.

Member Avatar for Slavi
-1
99
Member Avatar for SaintAce

Am not sure if you can do that. But as an advise don't use your external, instead buy 2 flash drives and make them bootable drives for windows 7 and 8. It is much faster and reliable than optical drives and at the same time you will protect your external …

Member Avatar for Hiroshe
1
320
Member Avatar for James singizi

If you have your windows 8 CD or iso image you can do the following: http://www.askvg.com/how-to-install-microsoft-net-framework-3-5-offline-in-windows-8-without-internet-connection/

Member Avatar for kb.net
0
98
Member Avatar for Doogledude123
Member Avatar for elouch

The connection string is the same whether you want to use the server name or IP: ex: Dim conn As SqlConnection = New SqlClient.SqlConnection("server=192.168.1.1;database=xxx;UID=yyy;pwd=zzz")

Member Avatar for kb.net
0
521
Member Avatar for kdejan87

The best way to do it is to fill your dataset "sqlDS" into a dataview then you can filter the dataview using the rowfilter method. Ex: Dim DV as new DataView DV.table=sqlDS.tables(0) GridControl1.DataSource =DV DV.RowFilter = "name = '" & me.textbox1.text & "'

Member Avatar for kb.net
0
129
Member Avatar for udaywalve

Hi, Check this sample project [URL="http://www.a1vbcode.com/downloads/ITEMDETAILS.zip"]http://www.a1vbcode.com/downloads/ITEMDETAILS.zip[/URL] You will find on the asme site more complex solutions. It helped me alot while shifting to .net some years ago.

Member Avatar for manoudhaya
0
398
Member Avatar for amrahim

Hi, I think it has something to do with your computer regional and language settings (languages and non-Unicode languages) and not with VB itself.

Member Avatar for el fahem
0
2K
Member Avatar for anto_nee

Hi, Use the below code while changing just the file name: [code]Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Const SW_SHOWNORMAL = 1 Private …

Member Avatar for Md Saiful
0
224
Member Avatar for noobyy
Member Avatar for crimson08

Hi, I previously had a function that gets a screen shot but i can't finf it any more. Look on the internet for a function that perform "Print Screen" and then a function to crop that picture.

Member Avatar for deepakx250
-1
1K
Member Avatar for DanielWuVB

Actually this is how things work but still you don't have to write this for every control, just handle it by every control you need to apply enter key one ex: [code] Private Sub EnterKey(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) _ Handles [COLOR="Red"]TextBox1.KeyPress, TextBox2.KeyPress[/COLOR] If e.KeyChar = Chr(13) …

Member Avatar for DanielWuVB
0
298
Member Avatar for josefalarka

Check this [url]http://www.developerfusion.com/code/198/evaluate-string-formulas-in-vb/[/url]

Member Avatar for kb.net
0
96
Member Avatar for Naveed_786

Actually you have one of 2 options. Either create a windows authentication login for each of your domain users and give them permission for reading or writing to the database, and then you can use the same connection you are using (you can reach that from the SQL enterprise manager …

Member Avatar for kb.net
0
181
Member Avatar for abelingaw

You should use: "Delete From Users where UserName ='" & DataGrid1.Text & "'" Even though am not sure what you mean by DataGrid1.Text

Member Avatar for AndreRet
0
141
Member Avatar for Pacman21

Assuming that the field names are firstName and Age this query will only insert the values that are in newTable and not in NewTable2 [CODE]"INSERT INTO newTable2 (firstName, Age) " _ & "SELECT T1.firstName, T1.Age " _ & "FROM newTable2 AS T2 RIGHT JOIN newTable AS T1 ON T2.firstName = …

Member Avatar for kb.net
0
112
Member Avatar for mrbungle

Actually you just need to use: [CODE]Dim oExcel As Object = CreateObject("Excel.Application") oExcel.Workbooks.Open("C:\DailyLogs\DailyLog.xlsx" oExcel.Sheet1.PrintPreview() [/CODE] Why are you opening the PrintPreviewDialog1??

Member Avatar for kb.net
0
152
Member Avatar for kb.net

Hi guys, Am in a big problem, I have a 120 GB external HD which I use to store and move my most important files. Yesterday I have attached it to my relative's laptop and since then the nightmare started. When I connected th HD to my laptop it didn't …

Member Avatar for gpaladi
1
217
Member Avatar for elanch

Hi, The best you can do do is to create an mde file with hiding the database window and menues and running a startup form. This is the nearest you can do to simulate an exe.

Member Avatar for Petre
0
3K
Member Avatar for jwaldron82

Hi, Your best and simplest solution is to use ASP which will require you to install IIS from windows cd. And for how to do it, there are 1000s of codes describing connecting ASP to DB on the web.

Member Avatar for mhahnel
0
524
Member Avatar for bluewire2000

simply when u get the user name from the first form store it in a session variable: session("user")= me.txtuname.text and on the second page u can refer to it in your sql: ...where username='" & session("user") & "'"

Member Avatar for kb.net
0
107
Member Avatar for JaceDBN
Member Avatar for culebrin

Hi, Try this, I haven't been able to test it: [code]Dim Oword As Object Dim Odoc As Object Private Sub Command1_Click() Set Oword = CreateObject("Word.Application") Set Odoc = Oword.documents.open("C:\temp.doc") Odoc.SaveAs FileName:="c:\x.rtf", FileFormat:=wdFormatRTF Oword.quit Me.RichTextBox1.FileName = "C:\x.rtf" End Sub[/code]

Member Avatar for Comatose
0
418
Member Avatar for Jshammy

Hi, Are you using XP and Vista on the same network??, if so this will be the problem. But I have browsed the internet for a solution for this porblem and found non that worked (thank you microsoft).

Member Avatar for niroit
0
276
Member Avatar for NuGG

Hi, Use the inbuilt function nz Expr1: (nz([prod_group_name],"") & " - " & nz([model],"") ....

Member Avatar for kb.net
0
136
Member Avatar for yuleball

Hi, Man i dont wana to dash your hopes, but what you r trying to do is quite difficult using such controls. I advise you to look for an alternative idea.

Member Avatar for QVeen72
0
105
Member Avatar for arulbell

Hi, Am not sure what is a far point but you will sure need datagrids, and other form controls like text boxes, buttons, labels...

Member Avatar for Salem
0
88
Member Avatar for baby_1

Hi, try this [code] <html> <head> <script langauge=javascript> function baby(a,b) { document.p.text.value=a; document.getElementById(b).checked=1; } </script> </head> <body> <form name="p" > <input type="checkbox" name="cat(10)" id=10 > <input type="checkbox" name="cat(11)" id=11 > <input type="text" name="text"> </form> <a href="javascript:baby('Hello',11);">Click Here</a> </body> </html> [/code]

Member Avatar for kb.net
0
148
Member Avatar for LAMBO290

Hi, Most probably you have a spyware or adware that trying to access internet, and ususaly for a bad purpose. Go to run then type msconfig and press enter, go to startup and check those processes one by one (google each of them as some are not supposed to be …

Member Avatar for hotmatrixx
0
96
Member Avatar for coolbuddy059

Hi, Main two virus attacks are web and removable devices. AVG is not bad if it is updated frequently, but I advise you to pay for a Kasparsky for further protection. But in all cases avoid visitng untrusted web sites or using p2p applications like limewire or emule. For the …

Member Avatar for hotmatrixx
0
168
Member Avatar for iamswick

Hi, Mainly not starting in safe mode is resulted of either corrupted windows (you will need to reinstall or repair windows), or virus attack were some viruses will prevent you from going into safe mode.

Member Avatar for gerbil
0
246
Member Avatar for Gwen203

Hi, Not bad for a start but I have attached a full calc. code as a gift.

Member Avatar for kb.net
0
146
Member Avatar for abu taher

Hi, Your example is not that clear but i guess that you need to transfer your query to a crosstab.

Member Avatar for kb.net
0
87
Member Avatar for dinilkarun

Hi, If you are using access you have to include the code in the before_update event of the text box.

Member Avatar for kb.net
0
105
Member Avatar for sunshinedaydrea
Member Avatar for ramanathank
Member Avatar for pritha
Member Avatar for kb.net
0
114
Member Avatar for kavithabhaskar

Hi, My friend, your question have nothing to do with MSSQL, you should have posted it in Vb.net forum and i think you will need to use Cellstye.forecolor=Color.green

Member Avatar for kb.net
0
165
Member Avatar for dcahan

Hi, This is an excellent forum but it is not specialized in DBs. In fact you will find alot of sites only intrested in MSSQL but I don't think you will find those expert examples you are looking for. I advise you to start building your database step by step …

Member Avatar for kb.net
0
80

The End.