Forum: VB.NET 2 Days Ago |
| Replies: 2 Views: 206 i would go with the Tag property.
create a class in your project:
Public Class ComboItem
Private m_Tag As String
Private m_text As String
Public Sub New(ByVal Text As String,... |
Forum: VB.NET 5 Days Ago |
| Replies: 9 Views: 154 add
Database1DataSet.Tables("tbl_Files").AcceptChanges()
at the end |
Forum: VB.NET 11 Days Ago |
| Replies: 12 Views: 442 ok im totally confused here.
You have a form (called Form1) that contains one textbox and one tabcontrol.
You want to transfer the content of a textbox from another Form to the textbox that is in... |
Forum: VB.NET 12 Days Ago |
| Replies: 4 Views: 247 you need to initialize each player as new gameobject
Dim players(9) As gameobject
For i As Integer = 0 To players.Length - 1
players(i) = New gameobject
... |
Forum: VB.NET 13 Days Ago |
| Replies: 7 Views: 320 change
Dim years As Integer = Convert.ToInt32(cmbYears)
to
Dim years As Integer = Convert.ToInt32(cmbYears.selecteditem) |
Forum: VB.NET 14 Days Ago |
| Replies: 5 Views: 354 |
Forum: VB.NET 15 Days Ago |
| Replies: 5 Views: 354 Try
'if the name of the picturebox is added into the listbox
Dim picBox As PictureBox = CType(Me.Controls.Find(ListBox1.SelectedItem.ToString, True)(0), PictureBox)
... |
Forum: VB.NET 15 Days Ago |
| Replies: 2 Views: 245 Level is a reserved word. change it to the query below and try again.
Dim strInsert As String = "Insert Into ScoutInfo " & _
"(ScoutID, YearID, GSUSAID,... |
Forum: VB.NET 15 Days Ago |
| Replies: 8 Views: 365 ok i have tested your code and it works perfect after small changes to the procedure
my procedure:
ALTER PROCEDURE [dbo].[Designation_INSERT]
-- Add the parameters for the stored procedure... |
Forum: VB.NET 15 Days Ago |
| Replies: 9 Views: 327 Dim current As Date = Date.Now
Dim sstatement = "SELECT TransDate, Deposit, Withdrawal, TotalAmount FROM Transactions " & _
"Where UserID = " & AccID & " and... |
Forum: VB.NET 15 Days Ago |
| Replies: 8 Views: 365 can you please show us the complete code? the code you posted in your first post cant be complete. where and how you define the variable "Param"? you might keep adding parameters into param without... |
Forum: VB.NET 18 Days Ago |
| Replies: 6 Views: 304 disagreed :p
ok lets take a look on my PC
HDD space = 2,5 TB
Games location:
C:\-=GAMES=-\-=SOF II=-
C:\-=GAMES=-\Call of Duty 4
C:\-=GAMES=-\Steam
and so on |
Forum: VB.NET 19 Days Ago |
| Replies: 6 Views: 304 actually solution 1 is the best solution for two reasons:
1. you are in control what games should be in list
2. the most easy way if u provide a xml file online where your game can check for new... |
Forum: VB.NET 20 Days Ago |
| Replies: 3 Views: 283 then please mark this thread as solved :D |
Forum: VB.NET 21 Days Ago |
| Replies: 2 Views: 268 dim query as string= "SELECT Rec1, Rec2, Rec3 FROM Table1 WHERE Rec1 LIKE '%" & txtTextBox.Text & "%'" |
Forum: VB.NET 21 Days Ago |
| Replies: 3 Views: 283 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim youTube As String =... |
Forum: VB.NET 22 Days Ago |
| Replies: 2 Views: 227 instead of orderArray(x, u).Show()
do:
Me.Controls.Add(orderArray(x, u)) |
Forum: VB.NET 22 Days Ago |
| Replies: 2 Views: 235 Private Sub DataGridView1_CellPainting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellPaintingEventArgs) Handles DataGridView1.CellPainting
If e.RowIndex < 0 Or... |
Forum: VB.NET Oct 16th, 2009 |
| Replies: 2 Views: 302 to require admin privileges add into your app.manifest this line
<requestedExecutionLevel level="requireAdministrator" uiAccess="false"/>
to check for privileges:
if not... |
Forum: VB.NET Oct 16th, 2009 |
| Replies: 3 Views: 671 Dim StrYear As String = "1.1.2007"
Dim YearStart As Date = Convert.ToDateTime(StrYear)
Console.WriteLine(YearStart.Year) |
Forum: VB.NET Oct 15th, 2009 |
| Replies: 12 Views: 777 means the usercontrol is not initialised yet. so do
dim myControl as New myTest
myControl.myFunction |
Forum: VB.NET Oct 15th, 2009 |
| Replies: 12 Views: 777 please give me more details. do u get an error? how looks your code like? |
Forum: VB.NET Oct 15th, 2009 |
| Replies: 2 Views: 561 1. click on the application folder in the filesystem tab and open its properties. change the "Default location" to your needs
2. code your own updater or use the publish function of your... |
Forum: VB.NET Oct 15th, 2009 |
| Replies: 3 Views: 300 not sure what you mean with "pages" if its not ASP.NET
but anyway you can do it on two different ways...
1. once the user logged in you can save the user name in My.Settings
go to your Project... |
Forum: VB.NET Oct 15th, 2009 |
| Replies: 28 Views: 1,237 change the
lblError.Text = "Your profile was unable to be updated."
to
lblError.Text = ex.message
then you see the error. |
Forum: VB.NET Oct 14th, 2009 |
| Replies: 28 Views: 1,237 do you get an error or its just not updating? |
Forum: VB.NET Sep 29th, 2009 |
| Replies: 4 Views: 409 if Form1 is still open then you can get the string just like Form1.Textbox1.text
you can also create a overloaded New() procedure in Form2 to hand over the sting like
Public Sub New (byval... |
Forum: VB.NET Sep 26th, 2009 |
| Replies: 12 Views: 777 lets say you have created a usercontrol named myTest then you do this in your module
dim myControl as myTest
myControl.myFunction
functions and Subs you want to call from outside the... |
Forum: VB.NET Sep 25th, 2009 |
| Replies: 3 Views: 300 how about using a treeview instead? |
Forum: VB.NET Sep 24th, 2009 |
| Replies: 4 Views: 566 then please mark this thread as solved. ty =) |
Forum: VB.NET Sep 24th, 2009 |
| Replies: 4 Views: 566 instead of checking all the time the whole text you can use this code:
Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles... |
Forum: VB.NET Sep 23rd, 2009 |
| Replies: 4 Views: 351 to get this done just reverse the array again
Sub Main()
' text document to array
Dim myarray As String() = File.ReadAllLines("C:\Original.txt")
... |
Forum: VB.NET Sep 22nd, 2009 |
| Replies: 4 Views: 351 Sub Main()
' text document to array
Dim myarray As String() = File.ReadAllLines("C:\Original.txt")
Array.Reverse(myarray) 'on this way you have the newest entry always as... |
Forum: VB.NET Sep 22nd, 2009 |
| Replies: 11 Views: 536 the namespace is not really correct.
you can do two things:
remove the namespace
or
change the line to <settings version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"... |
Forum: VB.NET Sep 22nd, 2009 |
| Replies: 9 Views: 604 then please mark this thread as solved |
Forum: VB.NET Sep 22nd, 2009 |
| Replies: 11 Views: 536 could you please attacht the orginal xml file (as attachment)
to your second question...
there is an easy trick. open the xml in internet explorer, click on the "-" in front of the parents nodes... |
Forum: VB.NET Sep 20th, 2009 |
| Replies: 9 Views: 385 to be honest i would keep the control events in the code file of the form. else you will get into trouble to find the events if you have to edit something.
instead of exporting the whole event why... |
Forum: VB.NET Sep 20th, 2009 |
| Replies: 11 Views: 536 first of all this xml file has an error. to fix that please replace the line:
with:
now to get your information out of this try this code:
Private Sub ReadXmlFile()
Dim... |
Forum: VB.NET Sep 19th, 2009 |
| Replies: 9 Views: 385 hmm could be even easier.
if you have functions that you need to call from different forms you can do two things:
hand over the control you want to write, edit or w/e
in example
Friend sub... |
Forum: VB.NET Sep 19th, 2009 |
| Replies: 9 Views: 604 ok you have created a datagridview with 3 columns. the first colum u want to show the icon i guess? if so please set this column to type imagecolumn.
the code you posted in the first post is wrong.... |