Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #2K
~22.4K People Reached

32 Posted Topics

Member Avatar for anupam_smart
Member Avatar for linux
Member Avatar for Ruchi224

Are you trying to add the values from "Selected" Rows? If so, try [CODE] For each r as DataGridViewRow in DataGRidView1.SelectedRows CurrentCellValue = r.Cells(1).Value If CurrentCellValue = "" Then CurrentCellValue = 0 CumulativeSummer += Convert.ToInt32(CurrentCellValue) Next[/CODE]

Member Avatar for Ruchi224
0
121
Member Avatar for Ruchi224

CAn you change the datasource in the SelectedIndexChanged or SelectedIndexChanged events of the combo box?

Member Avatar for Ruchi224
0
135
Member Avatar for IT_Student_604

[CODE] & "'WHERE EmployeeID=" & txtEmpID.Text[/CODE] try [CODE] & "'WHERE EmployeeID='" & txtEmpID.Text & "'"[/CODE] if EmployeeID is a text field. also try putting a spce between "'" and "where"

Member Avatar for Mike Askew
0
197
Member Avatar for waleed.makarem

Can you not just add a datarelation to your dataset between your customer table and your orders table and navigate it that way?

Member Avatar for Ranx
0
193
Member Avatar for RenanLazarotto
Member Avatar for RenanLazarotto
0
120
Member Avatar for shooksy101

Use the .[URL="http://msdn.microsoft.com/en-us/library/system.data.datatable.select.aspx"]Select method[/URL] and set the resulting array of Datarows to be the datasource of your grid

Member Avatar for Pgmer
0
176
Member Avatar for Dummi
Member Avatar for bettybarnes
Member Avatar for nicole200718

Not sure exactly, but i sort of see the code should read something like below. I haven't tested it but it looks like you are modding by i instead of 2, so try that I haven't tested it [CODE] ' from your line 26 If number1 < number2 Then For …

Member Avatar for Ranx
0
124
Member Avatar for emily1989

Can you pass it Nothing and test for it? e.g. [CODE]Public Class Form1 Private myCoolClass As New testClass Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click, Button3.Click 'etc myCoolClass.retrieveRec(Sender) End Sub End Class Public Class testClass Public Sub retrieveRec(ByVal Sender As System.Object) If Not Sender …

Member Avatar for Ranx
0
423
Member Avatar for OldManStarting

[URL="http://vb.net-informations.com/dataset/vb.net-ado.net-dataset-tutorial.htm"]http://vb.net-informations.com/dataset/vb.net-ado.net-dataset-tutorial.htm[/URL] This link may be helpful.

Member Avatar for OldManStarting
0
162
Member Avatar for Ranx

Hoping someone out there can help. I have a fairly simple piece of code for viewing files [code] System.Diagnostics.Process.Start(tFileInfo.FullName) [/Code] Basically passes the path of a file to the process and let Windows deal with how to open it. Have also tried [code] Dim myProcess As New System.Diagnostics.Process With myProcess …

Member Avatar for Ranx
0
180
Member Avatar for lipton150786

[QUOTE=lipton150786;1302792]I want to read content of pdf file when window openfiledialog appear.I use VB 2005 at winform. anybody know please help me!!!( show code[/QUOTE] Not exactly sure what you're after, but if you have pdf files associated with an app on the target machine, try [code]System.Diagnostics.Process.Start(filename)[/code]

Member Avatar for trpsjt2008
1
97
Member Avatar for madoverclocker
Member Avatar for The Dude
Member Avatar for jkrause

I use a dataview for conditional combos. Without knowing your table structure, I can only give you an overview. I hope it helps [CODE] Dim dv as Dataview = New Dataview(DT) ' DT is the datatable returned by your sp with all the data in it dv.Sort = "SortField" dv.RowFilter …

Member Avatar for jkrause
0
122
Member Avatar for TommyTran

you can deconstruct the old string starting from the back and create a new string. just roughly, untested. e.g. [code] for x = 0 to oldstring .length -1 Newstring &= oldstring.substring(x,1) next [/code] or something along those lines

Member Avatar for Ranx
0
94
Member Avatar for Ranx

Hi, i'm hoping someone can help with a slightly odd problem i have. I have a piece of code that can create a folder on a sharepoint site from one machine, but not another. [CODE] If Not System.IO.Directory.Exists(strTargetLocation) Then System.IO.Directory.CreateDirectory(strTargetLocation) End If[/CODE] Originally it was because WebDAV was not running …

Member Avatar for Ranx
0
203
Member Avatar for pysdex

Actually, if you are going to do it that way, instead of "-1" it should be "+2" to get the number after the "+" sign. The "start" argument of the Mid function is 1-based while the indexof property of a string is 0-based. [code] stemp.Substring(stemp.IndexOf("+") + 1, stemp.Length - stemp.IndexOf("+") …

Member Avatar for Ranx
0
90
Member Avatar for jcb0806

Something like [Code] Private Sub Broker1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Broker1.TextChanged Me.AcctLabel1.Visible = (Broker1.text.length>0) End Sub [/Code] that way they will hide when you delete the text

Member Avatar for kvprajapati
-1
86
Member Avatar for gianrocks

[QUOTE=gianrocks;1094076]anyone?[/QUOTE] have you tried storing the path as UNC? i.e. instead of C:\MYFOLDER try \\machinename\drive\MYFOLDER

Member Avatar for Ranx
0
378
Member Avatar for tanvirahmad
Member Avatar for sreenathvp

Have you tried using the "Split" method? you can read each line into a string variable and then split it by using the space as the delimiter.

Member Avatar for sreenathvp
0
91
Member Avatar for Bern

You'll need to select your results INTO the output parameters. Your current sp will return a dataSET, not individual results. [code=SQL] ALTER PROCEDURE dbo.RBTestSP1 (@Number1 Int OUTPUT, @Number2 Int OUTPUT, @Date DateTime OUTPUT) AS SELECT top 1 Number1 into @number1, Number2 into @number2, Date into @Date from RBTest order by …

Member Avatar for Bern
0
102
Member Avatar for SolTec

I think the only way you can do it is via a select case statement and hard code your form names in there, i.e. [code=VB.Net] Select Case strName Case "frm1" dim frm as new frm1 Case "frm1" dim frm as new frm2 end select frm.showdialog() [/code] This is not as …

Member Avatar for Ranx
0
104
Member Avatar for Demond

It's not good practice, but if must, you can direct the execution flow by calling "Start_Click" from with "Retry_Click" i.e. replace [code] Sub Start_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Start.Click Start: Dim ...... End Sub Public Sub Retry_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Retry.Click …

Member Avatar for Demond
0
142
Member Avatar for Webbsta

Hi there, I had a similar requirement, and got the answer i needed from this place here. [url]http://www.startvbdotnet.com/controls/rtb.aspx[/url] Hope it's cool to link to this site

Member Avatar for hitnrun
0
589
Member Avatar for rajeshkhanna_in

VB doesn't use SQL, it is a component of the underlying datasource. Google "Transact-SQL" or "T-SQL" and you database engine name and you should get more replies tha you can handle

Member Avatar for debasisdas
0
63
Member Avatar for rhinocort23

I'm not sure what you are trying to do, but can you do a comparison in the "Changed" event of the textboxes?

Member Avatar for debasisdas
0
92
Member Avatar for stealthdevil

Do you need to edit the stored values? Or could you use a calculated field in your datatable? i.e. [code=VB.Net] mtblDocs.Columns.Add("Overflow", GetType(Double)) ' Capacity is trailer capacity ' CubicM is the number of Cubic metres required mtblDocs.Columns("Overflow").Expression = "CubicM-Capacity" [/code]

Member Avatar for Ranx
0
102

The End.