Search Results

Showing results 1 to 40 of 155
Search took 0.04 seconds.
Search: Posts Made By: adatapost ; Forum: VB.NET and child forums
Forum: VB.NET 5 Days Ago
Replies: 1
Views: 172
Posted By adatapost
Use WMI (http://msdn.microsoft.com/en-us/library/aa394582(VS.85).aspx). Take a look at this thread - http://social.msdn.microsoft.com/Forums/en-US/vbgeneral/thread/7356d3d8-8e08-4dc7-9c3c-8dde3dddd455
Forum: VB.NET 6 Days Ago
Replies: 2
Views: 190
Posted By adatapost
Here is a common event handler,


.....
Private Sub EmnuExitMenu_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles EmnuExitMenu.MouseMove,...
Forum: VB.NET 6 Days Ago
Replies: 2
Views: 151
Posted By adatapost
>how to set an excel object to instance type?

Please try to be more specific. I think you want to create objects/instances of workbook, worksheet. Take a look at this article -...
Forum: VB.NET 8 Days Ago
Replies: 4
Views: 279
Posted By adatapost
Create a forumula field and use ChrW() to insert ASCII characters.


"Line1" + ChrW(13) + "Line2" + ChrW(13) + "Line3"


Make sure that your object Can Grow option is set to true.
Forum: VB.NET 8 Days Ago
Replies: 4
Views: 347
Posted By adatapost
You should have to use OwnerDraw listbox. Set DrawMode and handle DrawItem and MeasureItem event.

Here is a code snippet.

Dim data() As String = {"One" & vbCrLf & "Two", "Hello" & vbCrLf &...
Forum: VB.NET 9 Days Ago
Replies: 2
Views: 282
Posted By adatapost
See this sample,


ListView1.Columns.Add("One")
ListView1.Columns.Add("Two")
ListView1.Columns.Add("Three")

Dim item As New ListViewItem("v1")
...
Forum: VB.NET 11 Days Ago
Replies: 4
Views: 347
Posted By adatapost
Try,

ListBox1.Items.Add(showAddress.DisplayAddress(vbCrLf))
Forum: VB.NET 11 Days Ago
Replies: 4
Views: 279
Posted By adatapost
Use CanGrow (http://www.crystalreportsbook.com/Crystal_Reports_XI.asp?Page=2_6) option.
Forum: VB.NET 12 Days Ago
Replies: 2
Views: 206
Posted By adatapost
Read error description - http://msdn.microsoft.com/en-us/library/cb8za975.aspx.
Forum: VB.NET 19 Days Ago
Replies: 2
Views: 236
Posted By adatapost
Clear() method clears entire area of drawing surface and fill it specified background color.


GraphicsDisplay = pboGraphics.CreateGraphics
GraphicsDisplay.Clear(pboGraphics.BackColor)
Forum: VB.NET 21 Days Ago
Replies: 1
Views: 208
Posted By adatapost
Use Controls collection,

TabControl1.TabPages("key or Index").Controls("key or index").Controls("key or index")
Forum: VB.NET 25 Days Ago
Replies: 8
Views: 348
Posted By adatapost
Try it,

Label1.SetBounds((Me.ClientSize.Width - Label1.Width) / 2, (Me.ClientSize.Height - Label1.Height) / 2, 0, 0, BoundsSpecified.Location)
Forum: VB.NET 25 Days Ago
Replies: 5
Views: 345
Posted By adatapost
Two ways to go:

1. Form a query,

myCommand = new SqlCommand("INSERT INTO tblClasses (ClassId,ClassName,Department) VALUES "('" & nudClassId.Value & "','" & txtClassName.Text & "','" &...
Forum: VB.NET 31 Days Ago
Replies: 4
Views: 635
Posted By adatapost
I think you should have to look at these samples - http://msdn.microsoft.com/en-us/library/dd250890.aspx
Forum: VB.NET 32 Days Ago
Replies: 4
Views: 635
Posted By adatapost
Try it,

request.Query="dani site:daniweb.com"
request.Image.Filters = new string(){"Size:Width:200","Size:Height:200"}
Forum: VB.NET 32 Days Ago
Replies: 2
Views: 301
Posted By adatapost
Take a look at a thread - possible-burn-data-cd-programmatically-via-vb-net-203062.

SUMMARY: The NeroCOM object (type library) which comes as part of the API is indeed compatible with .NET. There...
Forum: VB.NET 32 Days Ago
Replies: 2
Views: 418
Posted By adatapost
>I have found a mdf file which i have tryed to connect to through excel but this data is not the same as in my application.

You wouldn't normally deploy sql server with an application, you...
Forum: VB.NET 33 Days Ago
Replies: 8
Views: 538
Posted By adatapost
Set SelectedIndex property,

listBox2.SelectedIndex = 0;
Forum: VB.NET 33 Days Ago
Replies: 8
Views: 538
Posted By adatapost
Close the connection.

...
Try
conn.Open()
Dim readerAs OleDbDataReader = sCommand.ExecuteReader()
IF reader.Read Then
TextBox1.Text =...
Forum: VB.NET 33 Days Ago
Replies: 2
Views: 514
Posted By adatapost
Take a look at this tutorial - http://www.dreamincode.net/forums/showtopic37361.htm
Forum: VB.NET 33 Days Ago
Replies: 8
Views: 538
Posted By adatapost
Use where clause,

Private Sub ListBox2_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox2.SelectedIndexChanged
...
Dim state= "SELECT * FROM...
Forum: VB.NET Nov 7th, 2009
Replies: 4
Views: 426
Posted By adatapost
Handles (http://social.msdn.microsoft.com/Forums/en-US/vblanguage/thread/37e4f691-7831-42a7-b491-6fd884eb0bc0) clause is missing with Event handler.
Forum: VB.NET Nov 7th, 2009
Replies: 1
Views: 460
Posted By adatapost
Use Aggregate (http://msdn.microsoft.com/en-us/vbasic/bb737904.aspx#aggsimp) Method.

Dim s() As String = {"AA", "BB", "CC"}
Dim Str As String
Str = s.Aggregate(Function(P, Q) P & " " & Q)
Forum: VB.NET Nov 7th, 2009
Replies: 2
Views: 325
Posted By adatapost
>could not. But I can still open other files such as XML, PDF,
Check the path of flash file (.swf or .flv) and take a look at this link -...
Forum: VB.NET Nov 6th, 2009
Replies: 4
Views: 750
Posted By adatapost
You can use Extension Method (http://msdn.microsoft.com/en-us/library/bb384936.aspx) - Extension methods enable you to "add" methods to existing types without creating a new derived type,...
Forum: VB.NET Nov 5th, 2009
Replies: 3
Views: 434
Posted By adatapost
Try it,

Dim s As String = "This is an example"
s = String.Join(" ", s.Split(" ").ToArray().Reverse().ToArray())
Forum: VB.NET Nov 5th, 2009
Replies: 1
Solved: Help with array
Views: 206
Posted By adatapost
Read Generics (http://visualbasic.about.com/od/usingvbnet/a/genericlist.htm). The following code snippet will help you to understand the basics of collections (generics).


Dim p As New List(Of...
Forum: VB.NET Nov 4th, 2009
Replies: 2
Views: 265
Posted By adatapost
Link paste at post #2 showing VB 6.0 datatypes.
Infact VB.NET uses .net framework types system. Take a look at this link - http://msdn.microsoft.com/en-us/library/47zceaw7(VS.71).aspx
Forum: VB.NET Oct 23rd, 2009
Replies: 2
Solved: Date formatt
Views: 201
Posted By adatapost
Set DefaultCellStyle.Format property of Columns collection.

DataGridView1.Columns(0).DefaultCellStyle.Format = "MMM-dd-yyyy"
Forum: VB.NET Oct 17th, 2009
Replies: 3
Views: 251
Posted By adatapost
xfrolox,

I think you want to code which allows single instance of an application. Please take a look at this article - http://www.codeproject.com/KB/vb/sing_inistan.aspx
Forum: VB.NET Oct 17th, 2009
Replies: 28
Views: 1,242
Posted By adatapost
Change SQL Text,

sql="Update Employee Set First_Name = @FirstName, Last_Name = @LastName, Phone = @Phone, [E-mail] = @Email, Address = @Address, Availability = @Availability Where Employee_ID =...
Forum: VB.NET Oct 16th, 2009
Replies: 28
Views: 1,242
Posted By adatapost
Can I see the update statement you wrote?
Forum: VB.NET Oct 16th, 2009
Replies: 28
Views: 1,242
Posted By adatapost
You have to turn on "write" permission to the Users group for the database file.
Forum: VB.NET Oct 16th, 2009
Replies: 3
Views: 678
Posted By adatapost
Use ParseExact


Dim dt As Date
Dim str as String = "2002"
dt = Date.ParseExact(str, "yyyy", Nothing)
DateTimePicker1.Value = dt
Forum: VB.NET Oct 9th, 2009
Replies: 3
Views: 363
Posted By adatapost
In order to write against an external component/control, your project must first contain a reference to it.
Forum: VB.NET Oct 9th, 2009
Replies: 2
Views: 407
Posted By adatapost
ListView1.View = View.Details
ListView1.HideSelection = False
ListView1.FullRowSelect = True

Dim lCount As Integer
ListView1.Columns.Add("No", 100)
For...
Forum: VB.NET Oct 7th, 2009
Replies: 4
Views: 264
Posted By adatapost
Imports System.Net.Mail

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
.....
End Sub
End Class
Forum: VB.NET Oct 4th, 2009
Replies: 5
Views: 359
Posted By adatapost
Merovingian,

Can you be more specific? Show us your code if any.
Forum: VB.NET Oct 2nd, 2009
Replies: 1
Views: 240
Posted By adatapost
Read this article http://msdn.microsoft.com/en-us/library/kew41ycz(VS.71).aspx
Forum: VB.NET Oct 1st, 2009
Replies: 2
Views: 482
Posted By adatapost
You can't change the alignment of 1st column.

Listview1.Columns.Add("",0, HorizontalAlignment.Center)
Listview1.Columns.Add("Column1", 100, HorizontalAlignment.Center)...
Showing results 1 to 40 of 155

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC