405 Posted Topics

Member Avatar for joesmithf1

Hi, I Think "TextBox1" may not exist in the FormFields Collection. Check TextBox1 is correct. I think check the BookMark Property of control. To Find the Name i give code that shows all the FormFields Items name. [code] Dim obj As FormField For Each obj In ActiveDocument.FormFields MsgBox obj.Name Next …

Member Avatar for selvaganapathy
0
106
Member Avatar for msantosh18

Hi, rs.Fields(i) is same as rs(i) , Whenever accessing a field, u can give empty string for avoiding null field. Ex [ICODE] dim iValue as Integer iValue = Val ( rs(i) & "" ) [/ICODE] instead of [ICODE] dim iValue as Integer iValue = Val ( rs(i) ) [/ICODE] then …

Member Avatar for Jishnu
0
158
Member Avatar for Ole Raptor

Can you tell specifically, when selecting an item which item(control) is not visible.

Member Avatar for Ole Raptor
0
157
Member Avatar for preethi_ga

Hi, FlexGrid is designed for Data Control (Intrinsic Control) in VB. It cannot be bind with ADODB. You use load the records manually. Also Flex Grid allow the user to modify content. Some techniques (user directly enter the values) need to do . Instead of FlexGrid you can use Data …

Member Avatar for eanastacio20
0
120
Member Avatar for Shilpa Jain

Hi, "No value given for one or more required parameters" This may occurred due to misspelling of the field name. So check your field name which you given in the database and field name in the Query.

Member Avatar for Shilpa Jain
0
160
Member Avatar for Shilpa Jain

[QUOTE]I am making a tool in VB using MS access database. When I run the query in access it returns me the data but in VB it shows 0 recordcount. Any idea what could be the reason for this?[/QUOTE] Hi, Sometimes it happens, i dont know the reason. but Move …

Member Avatar for Shilpa Jain
0
162
Member Avatar for Shilpa Jain

Hi, You are given the Update coding but your problem is " data not fetched after getting inserted in access database ", so post the fetching codes. In this update coding if EmpNoTxt is Null or "" then also a record will be inserted, because you should stop the flow …

Member Avatar for Shilpa Jain
0
94
Member Avatar for harcaype

Hi, I checked this, It is working. My COding [CODE=C# ] string name = "case"; string[] names = { "case","Case", "cAse"}; int i = 0; for (i = 0; i < names.Length; i++ ) { if (name == names[i] ) MessageBox.Show("Same " + i); else MessageBox.Show("Not Same " + i); …

Member Avatar for maciek
0
114
Member Avatar for yapper99

Hi, You can use Navigated or Navigate Event. But this is new in .NET Framework 2.0 I think in the previous version NavigateComplete2 event [CODE] Private Sub WebBrowser1_Navigated(ByVal sender As Object, ByVal e As System.Windows.Forms.WebBrowserNavigatedEventArgs) Handles WebBrowser1.Navigated ' Your Coding End Sub [/CODE]

Member Avatar for selvaganapathy
0
93
Member Avatar for manickumar

Hi, This link may help you. [URL="http://oreilly.com/catalog/vbshell/chapter/ch04.html"]http://oreilly.com/catalog/vbshell/chapter/ch04.html[/URL]

Member Avatar for selvaganapathy
0
84
Member Avatar for Linda1

Hi, Why dont use friend function for overloading * Syntax [CODE] friend complex0 operator*(int, complex0&); friend complex0 operator*(complex0&, int);[/CODE]

Member Avatar for Linda1
0
153
Member Avatar for madhanacdc

Hi, I am assuming that you know how to connect the database. I am giving a prototype to do this (ADODB Connection) > Create New Standard EXE Project > In Form1 (Default), Place a TextBox (Text1) and Command Button (Command1) > Insert a DataGrid Control (Ctrl + T, Microsoft DataGrid …

Member Avatar for selvaganapathy
0
96
Member Avatar for Miruna

Hi, Do u mean Auto Complete? If we type C, it automatically Select "Chennai". Using Combobox's SelLength , SelStart, SelText properties, you can make you own Auto Complete.

Member Avatar for selvaganapathy
0
77
Member Avatar for katididdy

Hi, Can you post the coding what you have tried so far? Shall we discuss it ?

Member Avatar for selvaganapathy
0
36
Member Avatar for jaasaria

Hi, You can get the Length of String using Len Function. For ex [CODE] Dim TransID as String Dim LengthOfTID as Integerr TransID = "RMI-000000" LengthOfTID = Len ( TransID ) If LengthOfTID = 10 Then 'MSAccess ElseIf LengthOfTID = 11 Then 'MSSQL End If [/CODE] I hope it may …

Member Avatar for jaasaria
0
130
Member Avatar for ahmbil

Hi Do u want to get all the times to Textbox or selected items? Code to get the selected item Text of ListView [CODE] If Not ListView1.SelectedItem Is Nothing Then Text1.Text = ListView1.SelectedItem.Text End If [/CODE]

Member Avatar for cometburn
0
104
Member Avatar for dan_e6

Hi, I think Single, Integer, Double Char all are ValueType, So It is not working. Also you can override the ShowDialog() and pass your value For Example In Form2 [CODE=VB.NET] Public Shadows Sub ShowDialog(ByRef x As Integer) MyBase.ShowDialog() x = 566 End Sub [/CODE] To Show Form2 In Form1 Declare …

Member Avatar for Jx_Man
0
190
Member Avatar for madhavipoudala

Hi, You given [QUOTE] public class [B][COLOR="Red"]Marksservlet[/COLOR][/B] extends HttpServlet { public void dopost(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException {[/QUOTE] in [B]Servlet Class[/B] and in [B]Html[/B] u given [QUOTE]<form name=f1 method=post action="/[B][COLOR="Red"][COLOR="Red"]Markssevlet[/COLOR][/COLOR][/B]"> <p>mathematics<input type =text name=maths></p>[/QUOTE] Is it your typing mistake or Coding mistake?

Member Avatar for peter_budo
0
133
Member Avatar for fujilec

Hi, My Suggestion - Concat Empty String at the End [CODE] MP1T(hour, 0) = Convert.ToInt16(rs.Fields("MP1T").Value & "" ) [/CODE]

Member Avatar for selvaganapathy
0
170
Member Avatar for acecombat

Before You can replace the frames, you have to analyze something like common properties and methods u are using. I think the best way to replace the control is "Open .frm file in Notepad or other editor" because Visual Basic Keeps the information in text. "Replace the Text by using …

Member Avatar for selvaganapathy
0
91
Member Avatar for zawpai

Hi, To format controls use Format menu in the VB IDE To Make Same side, Select the Controls then Go Format Menu -> Make Same Size. Similarly To Make Align Use Format -> Align List Box having integral height property, set it to false may help u.

Member Avatar for selvaganapathy
0
130
Member Avatar for preethi_ga

Hi, Actually in AddNew button, you just give [QUOTE] [ clearcontrols ] [rst.addnew ] [ loadrecords ] [rst.update ] [/QUOTE] replace it as [ICODE] clearcontrols rst.AddNew [/ICODE] and if the user press UpdateButton then u save the record, that is [ICODE] loadrecords rst.Update [/ICODE] instead of [QUOTE] [cmdupdate.default=true] [ rst.update …

Member Avatar for preethi_ga
0
126
Member Avatar for Derice

Hi, You r in first record. u have to iterate all the records. Be sure to set TextBox's Multiline property to true and Set Scroll bar property in design time. Code to Iterate [CODE] recset.MoveFirst Dim sRow as String Text1.Text = "" Do While Not recset.EOF sRow = recset.Fields(0) & …

Member Avatar for Derice
0
112
Member Avatar for acecombat
Member Avatar for selvaganapathy
0
1K
Member Avatar for eparse

Hi, Sorry ur problem may not be understandable. Please give more examples to understand ur problem

Member Avatar for eparse
0
103
Member Avatar for blue_moon

Hi, Welcome to Daniweb. You are new to VB.Net and SQL. but the process of VB.Net with SQL cannot be explained shortly. It is a lengthy process. so please try and tutorial of VB.Net with SQL and Try your own coding. If any problem occurred, post the problem any one …

Member Avatar for Jx_Man
0
102
Member Avatar for HelenLF

[QUOTE=HelenLF;623917]Thanks for the quick reply. The folder of files is part of a submission to a college course. When I submitted the working files - with /filename.txt - I was told that by the recipient that he couldn't open the files and that I was wrong to reference the files …

Member Avatar for selvaganapathy
0
308
Member Avatar for FastCat

Hi, I give example for iterate currently selected tab controls The code is [CODE] For Each ctrl As Control In TabControl1.SelectedTab.Controls If TypeOf ctrl Is TextBox Then MsgBox(ctrl.Text) End If Next [/CODE] But it gets all the text boxes in the currently Selected Tab. You can also add Condition like …

Member Avatar for FastCat
0
2K
Member Avatar for ahmbil

Hi, U can use UPDATE query to add one to all the records of one field. Ex Let say the fieldname be Age. The Query is [ICODE] UPDATE TableName SET Age=Age+1 [/ICODE] Or otherwise U Iterate all the records and Add 1 to the field.

Member Avatar for selvaganapathy
0
72
Member Avatar for jem00

Hi, I found a site in google search. I may help ful for you . The site is [URL="http://www.devx.com/vb2themax/Tip/18400"]http://www.devx.com/vb2themax/Tip/18400[/URL]

Member Avatar for selvaganapathy
0
101
Member Avatar for jem00

Hi, Scroll Bars having Min, Max, LargeChange, SmallChange and Value properties [B]Min[/B] Represents scrollbar position's minimum Value.(top or leftmost position) [B]Max[/B] Represents scrollbar position's Maximum Value. (bottom or rightmost position) [B]LargeChange[/B] amount of change to the Value property when the user clicks the area between the scroll box and scroll …

Member Avatar for jem00
0
249
Member Avatar for Arijit Manna

Hi, What you are using for Report Preparation ?(Data Report or Your own). VB Has [B]Printer[/B] Object to send data directly to the printer. U can also choose the printer in the list of printer. [B]prn [/B]Command used for Print the Document in DOS Mode. I am not much know …

Member Avatar for Arijit Manna
0
301
Member Avatar for VernonDozier

Hi, List.Exists () Method requires the Predicate. That means write your own method to search whether the Node is already Exists. Ex [CODE=CSharp] private static bool MyPredicate (Node s) { // Check Node is Existing // return true; // else // return false; } [/CODE] Usage [ICODE]if ( !this.children.Exists (MyPredicate) …

Member Avatar for VernonDozier
0
160
Member Avatar for asda71
Member Avatar for selvaganapathy
0
93
Member Avatar for apuamy

Hi As per veena in the previous post, you can split the text by using Split() function ie [ICODE] Dim MyArr MyArr = Split (Text1.Text, vbCrLF) [/ICODE] Now MyArr is an array with each element representing a line You can get a line by using Index of the Array. For …

Member Avatar for apuamy
0
2K
Member Avatar for Tkd Kid 007

Hi, I searched this on Google. I Found a tutorial related to your Topic. The site is [URL="http://www.java2s.com/Code/VB/Class/YourComplexNumberClass.htm"]http://www.java2s.com/Code/VB/Class/YourComplexNumberClass.htm[/URL] U understand the coding, then try your own

Member Avatar for Tkd Kid 007
0
120
Member Avatar for rrocket

[QUOTE=rrocket;617042]I have a bunch of params: InputParam1, InputParam2, InputParam3, etc... I would like to loop through them instead of writing out code for each one, but am having some issues getting it to work correctly. Here is what I have so far: [code=vb] Dim iCount As Integer Dim objTemp As …

Member Avatar for QVeen72
0
136
Member Avatar for zoner7
Member Avatar for Cybulski
0
328
Member Avatar for sisi

Hi Kill Syntax [ICODE] Kill ( PathName ) [/ICODE] Another one [ICODE] System.IO.File.Delete(PathName) [/ICODE] Example [CODE] Kill("C:\C.Txt") Or System.IO.File.Delete("c:\c.txt") [/CODE] This example deletes the file "C:\c.txt" I hope this is useful for u

Member Avatar for selvaganapathy
0
92
Member Avatar for johnroach1985

Hi U can use [CODE] public static void SetEnvironmentVariable ( string variable, string value, EnvironmentVariableTarget target ) or public static void SetEnvironmentVariable ( string variable, string value, ) EnvironmentVariableTarget target Takes Three values > Machine > User > Process [B]Example [/B] Environment.SetEnvironmentVariable("MYVARIABLE", "MyValue", EnvironmentVariableTarget.Machine ); [/CODE] [B]Note: This method is …

Member Avatar for johnroach1985
0
135
Member Avatar for eparse

Hi U can access the column by index. Example To access the 0th column u can use [ICODE] RS.Fields(0) [/ICODE] Similarly u can iterate all the columns Ex [CODE] Dim i as integer Dim s as String For i = 0 To RS.Fields.Count -1 s = s & RS.Fields (i).Name …

Member Avatar for selvaganapathy
0
95
Member Avatar for mosby

Hi, Why dont you try to show the new form Modally [ICODE]NewForm.ShowDialog ();[/ICODE] Also [ICODE]NewForm.ShowDialog ( ownerForm );[/ICODE] Now NewForm will show modally.

Member Avatar for selvaganapathy
0
143
Member Avatar for SubProf

Hi, I think u not appending the text in Richtextbox rather u are assign a text For Ex [ICODE] richText1.Text = someString; [/ICODE] U can try [ICODE] richText1.Text += someString; [/ICODE] or [ICODE] richText1.AppendText ( someString ); [/ICODE] Example Code [CODE] string[] str = { "C#", "Programming", "language"}; foreach (string …

Member Avatar for SubProf
0
138
Member Avatar for toro4423

Hi One idea Construct the one dimensional array based on 3 x 3 matrix then do the bubble sort. Finally change into 3x3 matrix

Member Avatar for selvaganapathy
0
61
Member Avatar for colliincon

Hi, To reach the beginning of the file u can use seek statement [ICODE] Seek #filenumber, position position = 1 represents the beginning of the file [/ICODE] Ex [CODE=VB] Open .... For Input as #1 .. .... Seek #1, 1 .... Close #1 [/CODE] Hard syntax you have given, so …

Member Avatar for selvaganapathy
0
170
Member Avatar for Catherinedally

Hi [B]> Use two for loops > One for Number of Lines (User Input) > Second For loop for Number of stars > Number of spaces can be assigned by Space() function [/B] Your corrected Code [CODE=VB] Dim linecount As Integer Dim asteriskcount As Integer Dim asterisk As String Dim …

Member Avatar for selvaganapathy
0
236
Member Avatar for redprawn_89

Hi, Assume u get input in Form1.textBox1 and u display the amount of interest in Form2.textBox1. I give simple example this will help u > Create Two Forms namely Form1, Form2 > In form1 Draw one TextBox (textBox1), and Button (button1) >In Form2 Draw one TextBox (textBox1) >Change textBox1 Modifier …

Member Avatar for Jx_Man
0
137
Member Avatar for dc_24l

Hi In C#, string.Length property returns the length of the string similar to Len() function in vb. [CODE=C#] int iLength; string s = "C# Programming"; iLength = s.Length; [/CODE]

Member Avatar for vinaya
0
206
Member Avatar for saurabh.verma

Hi This is VB.NET? > First [COLOR="Red"]preserve[/COLOR] the value of [COLOR="Red"]d[/COLOR] (Rectangle) for class (Form) level > U are not specify where u draw image (Form, PictureBox etc..) I assume Form > In the [COLOR="Red"]Form_MouseDown ()[/COLOR] check whether the user clicked inside the rectangle using [COLOR="Red"]d.Contains()[/COLOR]. If it is inside …

Member Avatar for selvaganapathy
0
74
Member Avatar for veledrom

Hi, You can use * in like operator. * represents multiple character match of MS Access Databases. Example [ICODE]SELECT * FROM Table WHERE Name LIKE *a* [/ICODE] For single character use ?

Member Avatar for veledrom
0
90

The End.