405 Posted Topics
Re: 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 … | |
Re: 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 … | |
Re: Can you tell specifically, when selecting an item which item(control) is not visible. | |
Re: 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 … | |
Re: 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. | |
Re: [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 … | |
Re: 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 … | |
Re: 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); … | |
Re: 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] | |
Re: Hi, This link may help you. [URL="http://oreilly.com/catalog/vbshell/chapter/ch04.html"]http://oreilly.com/catalog/vbshell/chapter/ch04.html[/URL] | |
Re: Hi, Why dont use friend function for overloading * Syntax [CODE] friend complex0 operator*(int, complex0&); friend complex0 operator*(complex0&, int);[/CODE] | |
Re: 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 … | |
Re: 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. | |
Re: Hi, Can you post the coding what you have tried so far? Shall we discuss it ? | |
Re: 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 … | |
Re: 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] | |
Re: 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 … | |
Re: 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? | |
Re: Hi, My Suggestion - Concat Empty String at the End [CODE] MP1T(hour, 0) = Convert.ToInt16(rs.Fields("MP1T").Value & "" ) [/CODE] | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: 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) & … | |
Re: Hi, Open the file in output mode it will create the file automatically if doesnot exist | |
Re: Hi, Sorry ur problem may not be understandable. Please give more examples to understand ur problem | |
Re: 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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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] | |
Re: 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 … | |
Re: 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 … | |
Re: 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) … | |
Re: Hi, It is also working. Check whether the given path is correct. | |
Re: 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 … | |
Re: 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 | |
Re: [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 … | |
| |
Re: 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 | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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 … | |
Re: Hi One idea Construct the one dimensional array based on 3 x 3 matrix then do the bubble sort. Finally change into 3x3 matrix | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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] | |
Re: 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 … | |
Re: 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 ? |
The End.