Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #17.3K
Ranked #2K
~3K People Reached
Favorite Forums

9 Posted Topics

Member Avatar for kimbula...

If you are simply looking to open a PDF file in it's associated application such as Adobe Reader, then you can use this. [code=vb.net] System.Diagnostics.Process.Start("C:\\MyPDF.pdf") [/code] If you are trying to manipulate the PDF file after opening it then you can use the library ITextSharp as suggested by adatapost.

Member Avatar for asp.net_SoS
1
129
Member Avatar for mansi sharma

The following code was tested on Windows 7 RC. It should work on all the older operating systems too, but let me know if you face any problems. [code=vb.net] Imports Microsoft.Win32 Public Shared Function GetFileType(ByVal fileExtension As String) As String Dim fileType As String = "" 'Search all keys under …

Member Avatar for kvprajapati
0
953
Member Avatar for manutd4life

[QUOTE=adatapost;949993]>Connection property has not been initialized. Connection string is empty. [code=c#] Dim com As New OleDbCommand Dim con as New OleDBConnection con.ConnectionString="Put_connection_string_here" com.Connection = con com.CommandText = "insert into Sales values('" & txtSalesId.Text & "','" & txtCustomerId.Text & "','" & _ txtWatchId.Text & "','" & txtDate.Text & "'," & txtQuantity.Text …

Member Avatar for manutd4life
0
109
Member Avatar for mbb1234

First of all, there is a mistake in the start of the loop. [code=VB.NET] For i = 0 To intAdrCount 'should be For i = 0 To intAdrCount - 1 [/code] Also, you are getting this error Index -1 is out of range because one of the controls you are …

Member Avatar for mbb1234
0
270
Member Avatar for daviddoria

Tried this? You can set it in the properties too. Note: Docking should be None or else the shrink won't work. [code=VB.NET] Me.TableLayoutPanel1.AutoSizeMode = Windows.Forms.AutoSizeMode.GrowAndShrink [/code] However I would suggest using a ListView control or a DataGridView with 2 columns for such data display.

Member Avatar for daviddoria
0
1K
Member Avatar for scooby36

If Returndate is empty (not specified) or if it's not a valid date or less than today's date then the picture box will be visible. [code=VB.NET] For i As Integer = 0 To dgLinenStock.Rows.Count - 1 dim returnDate as Date = dgLinenStock.Item("Returndate", i).Value If (returnDate = Nothing) OrElse (Not IsDate(returnDate)) …

Member Avatar for scooby36
0
74
Member Avatar for ggl0rd

[code=VB.NET] 'Replace Nothing with an actual table. Get the table from the database through a dataset or something Dim tableX As DataTable = Nothing Dim tableY As DataTable = Nothing 'This code assumes that tableX has N number of columns/1 row and tableY has at least 1 column For Each …

Member Avatar for ggl0rd
0
106
Member Avatar for Pgmer

Well obviously a period(.) indicates the end of a line. You can try it this way: 1) Check for period at the end of a word. So go word by word and check if a word ends with a period, for example "I am a VB.NET programmer." In this case …

Member Avatar for JadeSimon
0
141
Member Avatar for k.vijayakumar

You can press Shift+Enter to enter multiline text. [code=VB.NET] DataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCells DataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCells DataGridView1.Columns(0).DefaultCellStyle.WrapMode = DataGridViewTriState.True [/code]

Member Avatar for JadeSimon
0
119

The End.