Forum: VB.NET Apr 29th, 2009 |
| Replies: 6 Views: 296 First, it's better to organize your code and make it readable :)
con = New OleDbConnection(constr)
adpt = New OleDbDataAdapter("select * from drs_entry_list where drsno='" +... |
Forum: VB.NET Apr 28th, 2009 |
| Replies: 3 Views: 720 This example code explains maybe :=)
Dim _DT As DataTable = Nothing
Private Sub Form2_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
_DT = New... |
Forum: VB.NET Apr 28th, 2009 |
| Replies: 6 Views: 296 At which point it generates that error? If the index is out of range you're trying to get a non existing row in the collection of rows......
Could you show some code?
Regards |
Forum: VB.NET Apr 28th, 2009 |
| Replies: 6 Views: 296 If you don't want the blank row to be shown you have to set the 'enable adding' property in the designtime to be false. |
Forum: VB.NET Apr 28th, 2009 |
| Replies: 1 Views: 175 Try this
Private Sub DataGridView1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles DataGridView1.KeyUp
If Keys.Enter Then
Dim _Dt... |
Forum: VB.NET Feb 23rd, 2009 |
| Replies: 5 Views: 2,304 *only for your attention*
I guess you should also check the TextFieldParser object :=)
Using MyParser As Microsoft.VisualBasic.FileIO.TextFieldParser =... |
Forum: VB.NET Feb 23rd, 2009 |
| Replies: 3 Views: 918 Ossehaas,
Check the StreamingContext class for additional info.... I think it will help ya out....
According MSDN:
Imports System
Imports System.Text
Imports... |
Forum: VB.NET Feb 9th, 2009 |
| Replies: 2 Views: 1,285 Dim newRow as DataRow = yourDatagrid.newrow()
newRow.Item(0) = "yourText"
etc. etc. etc.
yourDatagrid.rows.add(newRow) |
Forum: VB.NET Feb 6th, 2009 |
| Replies: 3 Views: 536 Can you tell us what happens before we have to puzzle?
(think about getting your car back to the shop & ask the technician if he can tell you what's wrong with your car?) |
Forum: VB.NET Feb 6th, 2009 |
| Replies: 3 Views: 736 Why not storing them in a List(Of String)?
Dim listOfNames As New List(Of String)
Private Sub Button1_Click(ByVal sender As System.Object, _
ByVal e As... |
Forum: VB.NET Feb 5th, 2009 |
| Replies: 16 Views: 1,845 No sorry, it's time to find out yourself....
I coded an example and added comments to it, so you know what steps to take.
Now it's up to you....... |
Forum: VB.NET Feb 5th, 2009 |
| Replies: 16 Views: 1,845 Okay, here it is :
Private Sub cmdSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSearch.Click
'variabeles (objects and strings)
Dim _root As... |
Forum: VB.NET Feb 5th, 2009 |
| Replies: 1 Views: 283 An excellent resource for you is : http://www.startvbdotnet.com/ |
Forum: VB.NET Feb 5th, 2009 |
| Replies: 16 Views: 1,845 Like Jx_Man says.... use that condition in your select statement. For example like this : SELECT * from UMP WHERE ID = yourID -> 'yourID' is the ID which you are looking for.
A better approach is... |
Forum: VB.NET Feb 4th, 2009 |
| Replies: 4 Views: 1,540 First, try it in the same sub/function. If it works you can export the functionality to some global functions/subs
try this:
Try
strCon = "provider=SQLOLEDB;User id=" & U &... |
Forum: VB.NET Feb 4th, 2009 |
| Replies: 6 Views: 2,105 Take a look at these :
http://aspalliance.com/622
... |
Forum: VB.NET Feb 4th, 2009 |
| Replies: 16 Views: 1,845 At least you are pointing to the right directions at this moment. The questions you ask seem to me you are now in the right 'developer-mode' :=)
Professor can be right but it's up to you where to... |
Forum: VB.NET Feb 4th, 2009 |
| Replies: 4 Views: 1,755 There are a few options but one of the simplest is to detach the database from the server, copy the phisical files to the new dataserver's datapath and attach it to the new dataserver.
For those... |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 2 Views: 825 You must have 2 parameters declared in your Stored Procedure, called @DR and @CR, both of the type Decimal.
While looping through your rows in your LoadCashBookDataSet.Tables(0) you have to execute... |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 7 Views: 725 Aha, this points out the way you think.
Yes, there are so many solutions in solving a problem in VB.Net. You can still use some good'old VB6 syntax. The designers of .Net, esspecially VB, didn't... |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 4 Views: 886 To help you a little more:
You also can add a ContextMenuStrip to your solution and respond on the rightclicking of a user into one of the columns in your datagrid.
For example, if the user... |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 4 Views: 886 Something like this?
It will expand the last column in the datagridview. You can edit it to your needs :=)
Private Sub DataGridView1_DataBindingComplete(ByVal sender As Object, ByVal e As... |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 22 Views: 1,641 Hehehe..... absolutely no hard feelings :=)
I am glad you figured out the databinding issue.
Binding can be done on tons of different ways, even runtime. You have to find the way which you are... |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 22 Views: 1,641 Rapture,
Thank you for your clarifying words. What you describe is exactly what I was thinking about. Exclamation points are a real pain in the *** sometimes but they do give some expression to... |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 22 Views: 1,641 Euhh..... insulting your intelligence? Excuse me, that's not what i intended to mention.
Lets start over again. You are trying to view some table-data in a datagrid in a "windows application".... |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 22 Views: 1,641 Databind() is a function which needs to be called when binding data to a datagrid in ASP.NET !
Only use datasource when binding in Windows.Forms solutions!
yourGrid.DataSource = yourDataSource... |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 4 Views: 830 My.User.Name
Environment.UserName.ToString()
You can checkout the My or Environment objects to find more interesting things.
The My.Computer.Clock object provides properties to find the... |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 1 Views: 929 Check this : http://dotnet.mvps.org/dotnet/faqs/?id=setscreenresolution&lang=en |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 7 Views: 725 Does it matter if 'all' or 'most' are supported?
What are you trying to point out with that.....? (the same on your #1 question about experienced programmers)...
Like RamyMahrous said, the... |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 16 Views: 1,845 I really don't understand a thing about your question!
If you are asking for some help you really need to explain everything into details. We can't guess about what your goals are..... |
Forum: VB.NET Feb 3rd, 2009 |
| Replies: 2 Views: 338 Have you ever checked the Date options?
date.Day, date.Month, date.Year etc etc etc |
Forum: ASP.NET Dec 18th, 2008 |
| Replies: 3 Views: 669 Check the MSDN website....there are too much changes..... |
Forum: ASP.NET Dec 18th, 2008 |
| Replies: 2 Views: 373 The default size of the threadpool is 25 ;)
Regards,
Richard
The Netherlands |
Forum: ASP.NET Dec 15th, 2008 |
| Replies: 6 Views: 2,050 Create a templatefield, insert the checkbox and afterwards, check with FindControl() wether the checkbox has been checked. The mastercheckbox needs to be inserted in the headerrow of the control.... |
Forum: ASP.NET Dec 15th, 2008 |
| Replies: 5 Views: 1,302 Maybe cmd.CommandType needs to be stated as text. |
Forum: ASP.NET Dec 11th, 2008 |
| Replies: 3 Views: 388 Did you try your stored procedure? Does it return the correct values?
Also the parameter method is deprecated....you should use AddWithValue("yourParameterName", yourParameterValue) |
Forum: ASP.NET Dec 11th, 2008 |
| Replies: 3 Views: 388 What's the error it's givving you?
Did you try the stored procedure in your sqlserver?
regards |
Forum: ASP.NET Dec 11th, 2008 |
| Replies: 11 Views: 2,346 from the conversiontool ;)
http://www.developerfusion.com/tools/convert/vb-to-csharp/
protected void // ERROR: Handles clauses are not supported in C# Page_Load(object sender,... |
Forum: ASP.NET Dec 10th, 2008 |
| Replies: 11 Views: 2,346 hmm... did you read my last post serkansendur? :P |
Forum: ASP.NET Dec 8th, 2008 |
| Replies: 11 Views: 2,346 I've worked it out to an example for you....
Place 1 textbox control on your page, make it multiline and insert the below stated code in the code-behind page.
Regards,
Richard
The Netherlands... |