Search:
Type: Posts; User: BXA1
Search:
Search took 0.03 seconds.
-
It sounds like you want to create a component not a user control. Controls have interfaces.
Right click your project in the solution explorer, and click add, and select component. When you add...
-
-
Update:
If I create a new project by going to File->New Website, it creates a WebSite, and the option to set a namespace is not in the properties.
If I create a new project by going to...
-
I VB2005 you can set the root namespace name of a project under the project properties. Where can I set this using VB2008?
Thanks!
-
The size of the screen is probably not the concern. You would be interested in the desktop screen resolution. I think the minimum resolution in Win XP is 800X600. With a screen that small, that is...
-
It appears that it will let me trace in using the F11. I just can't right click and 'Goto Definition' for functions.
-
If you are using VB 2008 (I think it can work in 2005 also) take a look at the Microsoft Chart Controls for Microsoft .NET Framework 3.5. I have used it to display datetime data and it worked well. ...
-
I have a Dll project written in VB.Net 2003 which compiles a Dll used in other projects. I need to debug this Dll while it is being ran in the other project. Does anyone know how I can do this, or...
-
You need to make sure you set the array to an actual instantiated (right word?) object or declare each of them as new.
Dim myRTBs(10) As RichTextBox
For tickI As Integer = 0 To...
-
If you did want to have unique names for the DBs (which would probably make keeping track of them easier) then you could use something like this to create new ones:
Private Sub CreateDB(ByVal...
-
You can loop through to see if the new name exists until you find a blank one, then copy the blank db as the new name.
Const cMAXDBS As Integer = 100
Dim strFolderPath As String...
-
That is wierd. It could be that the sp2 installation is corrupt maybe.
If you goto 'Start'->'Run' type in:
C:\WINDOWS\system32\msiexec.exe /?
it will tell you your installer version. It may be...
-
.Net 2.0 will install using either Installer 2.0 or 3.0, but is a seperate install.
.Net Framework 2.0 - (From Microsoft.com)
System Requirements
* Supported Operating Systems: Windows...
-
Windows Installer 3.0 is included with XP SP2. I am also pretty sure that the 3.0 installer is one of the 1st things download when doing a windows update. If the user isn't running SP2 and has...
-
Like said above, if this is a handler, you can have the same function handle multiple events, like so. You can use sender to access the obj that raised the event.
Private Sub...
-
You would raise an event so that you can handle the event outside of your class (like a call back sort of).
'Code in your class
Public Class Class1
'declare an event with some stuff to...
-
If it is going to be a light weight app with no heavy data access by a large number of users, you may just consider storing the data in xml files in the app or user directory.
-
It looks as if your tablelayoutpanel is wider than your form. Right click the datagridview, and click the 'Select 'TableLayoutPanel1' (or whatever you named it). Then in the properties box, set...
-
You can do a read, and search for that entry first.
conn.Open()
Dim cmd As New SqlCommand()
cmd.Connection = conn
cmd.CommandType =...
-
You can use the on paint event, and set the color based on the enabled setting.
Private Sub Button1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles...
-
You can list all accounts that have access to the computer using
Imports System.Management
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As...
-
You could probably just reload the data when the form is made visible.
Private Sub Form1_VisibleChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.VisibleChanged
...
-
When you store the input to the list box, you could remove the characters you don't want.
Dim strResponse As String = InputBox("Numbers Please", "Numbers only")
Dim strNew As...
-
I would suspect your error is being thrown by
Dim tbIn As TextBox = DirectCast(sender, TextBox)
What is your sender's type?
The date conversion seems to work correctly. This...
-
There is a very good article on code projects about using SMTP to send text messages.
http://www.codeproject.com/KB/IP/SendTxtMsg.aspx
-
You can use the graphics object.
'set new bitmap scale of pic
Dim objBitmap As New Bitmap(picturebox1.Width, picturebox1.Height)
'create new graphics object
...
-
I don't think you can do initialization with set bounds. You could do this.
Dim imageGrid(10, 12) As tileGrid_struct
Dim myTileNoZ(,) As Integer = {{0, 0, 0, 0, 1, 0, 0, 1,...
-
You can do this using VB.Net Reflection.Assembly.
Private Sub TreeView1_AfterSelect(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles...
-
I am not sure what all the extra code is for, but wouldn't this do what you want?
Imports System.Drawing.Drawing2D
Public Class Form1
Inherits System.Windows.Forms.Form
Private...
-
You have to remember that the XY of the rectangle is topleft.
Private Sub vbar()
Dim I As Integer
Dim X1, Y1, W, H As Integer
...
-
I would add a new classes and build the context menu. Note that any variables you use in the class handlers will need to be set by the calling form before hand (such as a filename).
Right click...
-
InStr(myStr, "<<<")
Will give you the character location of the first occurrence of "<<<" no matter where it is.
for instance
Dim myStr As String
myStr = "aaaaa<<<a bunch...
-
You can use the left and right functions.
Dim myStr As String
myStr = "aaaaa<<<bbbbbbb>>>aaaaa"
Dim newStr As String
newStr =...
-
You should create a property in your user control
Public Property SetText() As String
'Property SetText() As String
Get
Return Me.Textbox1.Text
End Get...
-
This will create from2 within form1. Is that what you needed?
Dim extForm As Form2 = New Form2
extForm.TopLevel = False
extForm.Parent = Me
extForm.Show()
-
This should do the trick. Removes the zero index for each interation.
For ticker As Integer = 0 To Me.ListBox1.SelectedItems.Count - 1
...
-
It sounds like your receiving ASCII bytes. If so, this should work.
Read your data into a byte array and use strconv.
Dim myBuffer() as Byte
Dim myStr as String
myStr =...
|
Click Here to Expand Forum to Full Width
|