Forum: VB.NET 5 Days Ago |
| Replies: 6 Views: 308 try
InstituteBaseDataSet.acceptchanges after your inserting |
Forum: VB.NET 5 Days Ago |
| Replies: 2 Views: 262 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 8 Days Ago |
| Replies: 9 Views: 185 add
Database1DataSet.Tables("tbl_Files").AcceptChanges()
at the end |
Forum: VB.NET 14 Days Ago |
| Replies: 12 Views: 528 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 15 Days Ago |
| Replies: 4 Views: 262 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 16 Days Ago |
| Replies: 7 Views: 339 change
Dim years As Integer = Convert.ToInt32(cmbYears)
to
Dim years As Integer = Convert.ToInt32(cmbYears.selecteditem) |
Forum: VB.NET 17 Days Ago |
| Replies: 5 Views: 369 |
Forum: VB.NET 18 Days Ago |
| Replies: 5 Views: 369 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 18 Days Ago |
| Replies: 2 Views: 254 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 18 Days Ago |
| Replies: 8 Views: 385 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 18 Days Ago |
| Replies: 9 Views: 342 Dim current As Date = Date.Now
Dim sstatement = "SELECT TransDate, Deposit, Withdrawal, TotalAmount FROM Transactions " & _
"Where UserID = " & AccID & " and... |
Forum: VB.NET 18 Days Ago |
| Replies: 8 Views: 385 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 21 Days Ago |
| Replies: 6 Views: 330 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 22 Days Ago |
| Replies: 6 Views: 330 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 23 Days Ago |
| Replies: 3 Views: 294 then please mark this thread as solved :D |
Forum: VB.NET 24 Days Ago |
| Replies: 2 Views: 279 dim query as string= "SELECT Rec1, Rec2, Rec3 FROM Table1 WHERE Rec1 LIKE '%" & txtTextBox.Text & "%'" |
Forum: VB.NET 24 Days Ago |
| Replies: 3 Views: 294 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim youTube As String =... |
Forum: VB.NET 25 Days Ago |
| Replies: 2 Views: 230 instead of orderArray(x, u).Show()
do:
Me.Controls.Add(orderArray(x, u)) |
Forum: VB.NET 25 Days Ago |
| Replies: 2 Views: 243 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: 303 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: 707 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: 811 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: 811 please give me more details. do u get an error? how looks your code like? |
Forum: VB.NET Oct 15th, 2009 |
| Replies: 2 Views: 570 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: 303 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,250 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,250 do you get an error or its just not updating? |
Forum: VB.NET Sep 29th, 2009 |
| Replies: 4 Views: 410 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: 811 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: 307 how about using a treeview instead? |
Forum: VB.NET Sep 24th, 2009 |
| Replies: 4 Views: 571 then please mark this thread as solved. ty =) |
Forum: VB.NET Sep 24th, 2009 |
| Replies: 4 Views: 571 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: 353 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: 353 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: 537 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: 612 then please mark this thread as solved |
Forum: VB.NET Sep 22nd, 2009 |
| Replies: 11 Views: 537 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: 386 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: 537 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: 386 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... |