- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
9 Posted Topics
Re: 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. | |
Re: 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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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)) … | |
Re: [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 … | |
Re: 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 … | |
Re: 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] |
The End.