405 Posted Topics
Re: Hi, Please replace sender instead of image in MouseMove() EventHandler [QUOTE] [CODE] void image_MouseMove(object sender, MouseEventArgs e) { if (isDragging1 == true) { image.Left = e.X + image.Left - clickOffsetX1; image.Top = e.Y + image.Top - clickOffsetY1; } } [/CODE] [/QUOTE] [B]Instead[/B] [CODE=C#] void image_MouseMove(object sender, MouseEventArgs e) { Label … | |
Re: Hi Please specify full detail. > Table under ListBox? > What u mean Table? Is it Grid? | |
Re: Hi, Why dont convert data to image format then print it. For example u have data in ListView Convert it to the PictureBox by using Graphics. Then u can print the image. Also Refer PrintDocument Control | |
Re: Hi U should create the package for installing into another computer U can use Package and Deployment Wizard. [B]To open package and deployment[/B] > Choose Add-Ins->Add-In Manager menu > Choose Package and Deployment Wizard (Tick Load/Unload and Load on Startup) This wizard help u to create package. In this wizard … | |
Re: Hi I dont know why apache server generate Query_String. but u can avoid null like this [CODE] string t = null; t = System.Environment.GetEnvironmentVariable("QUERY_STRING"); if ( t != null ){ // Proceed with t, Otherwise it is null } [/CODE] | |
Re: Hi, I think u have to exit for when input is equal to "done", If [QUOTE] Exit For Name="Done" [/QUOTE] replace the above by [ICODE] If Name.ToLower() = "done" Then Exit For End If [/ICODE] | |
Re: Hi > First Connect Vb to your Database > U Must have primary key in that table to uniquely Choose the nth row. > Use the primary key to select the row For Example in ADO Assume the DataBase is in C:\abc.mdb ''''' ADO Code to Open the Database Connection … | |
Re: Hi, [B]It is possible to create Table dynamically[/B] depends upon the Database Connection used for the Database such as DAO, ADO etc.. | |
Re: Hi, U can do parse the Text first, then apply single quotes To Parse [CODE] Dim MyArr MyArr = Split (Text1.Text, vbCrLF) [/CODE] Iterate through loop and add single quotes [CODE] Dim i as Integer Dim newString as String For i = 0 To UBound(MyArr) newString = newString & "'" … | |
Re: Hi do u want to generate control corresponding to each checked items of checklist? For example if u tick TextBox in checklist, then u need to Generate TextBox? [ICODE] [INDENT]TextBox text = new TextBox(); text.Location = new Point(100, 100); this.Controls.Add(text);[/INDENT] This will create TextBox Dynamically [/ICODE] | |
Re: Hi Example to adding control at runtime [CODE=VB] Option Explicit ' Declare object variable as CommandButton. Private WithEvents cmdObject As CommandButton Private Sub Form_Load() Set cmdObject = Form1.Controls.Add("VB.CommandButton", "cmdOne") cmdObject.Visible = True cmdObject.Caption = "Dynamic CommandButton" End Sub Private Sub cmdObject_Click() MsgBox "This is a dynamically added control" End Sub … | |
Re: Hi, Like veena and Jx_Man u can use Text file. Also u can use registry by using GetSetting() and SaveSetting() Example Loading value at Startup and Saving Value at the end [CODE=VB] Private Sub Form_Load() Dim sValue As String sValue = GetSetting("MyApplication", "Option", "Value", False) Option1.Value = CBool(sValue) End Sub … | |
Re: Hi [ICODE]Sub Evaluate() ' ' Evaluate Macro ' Case 4 '4 bands nLegalValue = 0[/ICODE] In this there is no [B]Select Case [/B] Change this as [ICODE] Sub Evaluate() ' ' Evaluate Macro ' Select Case Resistor Case 4 '4 bands nLegalValue = 0 [/ICODE] But it may not work … | |
Re: Hi What u mean Chart1, Chart2 ...? Are these variables or object or Strings? | |
Re: Hi Html.ocx, what its purpose? To load a webpage?. If it is to load a webpage, u can use WebBrowser control. (Go Project -> Components -> Microsoft Internet Controls) | |
Re: Hi Do u create instance of the class inside the same form u r showing? u can show the form with new Instance like [ICODE] Dim MyForm as Form1 Set MyForm = new Form1 MyForm.Show [/ICODE] Can u give the prototype of your coding | |
Re: Hi I think by default it has zero value u can use like this [ICODE] Dim machinecount(,) As Integer ..... machinecount = New Integer(23,4) {} [/ICODE] | |
Re: Hi Do u want to compare record ( all the fields ) or a single field ? If a single record u can use selection sort approach even for multiple records too. | |
Re: Hi, I think u r asking about inter process communication. U are doing thru Database. U can use File concept. or other inter process communication techniques. | |
Re: Hi I am not clearly understand ur problem. but try this. Use [B]GotFocus () [/B]event of DataGrid and Check the Combo Box whether anything selected or not. If not, show the message box. | |
Re: HI I heard about Number Theory algorithm for long number addition, subtration, multiplication and division. It was found in a book [Cryptography in C]. I hope, It may help to u. ![]() | |
Re: Hi My suggestion is to search [B]Low Level Keyboard Hook[/B] in c#, this will help u. I think so. | |
Re: Hi I think Show the form modally will help u. Refer [ICODE] Form.ShowDialog() method or Form.ShowDialog(Owner) method [/ICODE] Try this | |
Re: HI Step to follow > Declare a variable (say ans) as int or long > Initialize ans as 1 (ans = 1) > Start a for loop with variable (say i) for 1 to the given number (say power, in your example 3) > multiply base (ur example 2) with … | |
Re: Hi First u change the Icon of the Form (Properties Windows Form -> Icon Property) [ICODE] To change the Icon of the Exe file -> Go Project -> Properties -> Press Make Tab ( U can see the Project Title and Icon there ) -> Change the Form in the … | |
Re: Hi U can use Package and Deployment Wizard which comes with VB6 To open package and deployment > Go Start -> Program Files -> Microsoft Visual Studio 6.0-> Microsoft Visual Studio 6.0 Tools -> package and Deployment wizard or > Open VB Project > Choose Add-Ins->Add-In Manager menu > Choose … | |
Re: Hi I think there is no way to add check box in Data Grid But u can design your own, to do this you have to handle the Grid with data. Flex Grid is very useful to display your own data. | |
Re: Hi U can try Memory functions like memcopy () .... something like that for quick swapping. I dont much about memory functions. but it may helpful to fast swapping | |
Re: Hi Use Invalidate() function to erase the entire client area. and it also call WM_PAINT message to redraw the client area [ICODE] void Invalidate( BOOL bErase = TRUE ); [/ICODE] | |
Re: Hi Here VC++6 code to extract the string [ICODE] CString s = "<a href=\"yahoo.com?234234234sdef\">Episode 1</a><br><embed src=\"videos/vplayer.swf\""; CString cut; int index = s.Find("</a>"); // Find </a> index if ( index >= 0 ){ // If Found cut = s.Mid ( index + 4 ); // Index + Length of </a> AfxMessageBox … | |
Re: Hi You can use Mid() Function to insert a character Here an Example [ICODE] Dim s as String s = "Hai Visual Basic" s = Mid ( s, 1, 3 ) & "(" & Mid ( s, 4 ) Msgbox s [/ICODE] Here break the string into two Strings and … | |
Re: Hi You can use DateDiff Function to Compare dates [ICODE]DateDiff(interval, date1, date2)[/ICODE] [B]Interval[/B] may be yyyy -- Year m - Month y - Day of year d - Day w - Weekday ww - Week h - Hour n - Minute s - Second Example [CODE]Dim TheDate As Date ' … | |
Re: Hi To avoid the duplicate(Existing) records to add you can create a primary key for any field (most probably uniquely identifying field). | |
Re: Hi, You did not specify number of rows for flex grid Add [CODE] frmReport.MSGrid1.Rows = rs.RecordCount + 1 [/CODE] before [CODE]frmReport.MSGrid1.Cols = rs.Fields.Count + 1[/CODE] | |
Hi I Want to display a Form as System Modal. The best Example is [B]Shutdown Dialog box[/B]. How can we create such forms. | |
Re: Hi, I dont know how to change the language of vbYesNo, but You can design your own MessageBox by changing the Form BorderStyle to FixedDialog. and u can show this form instead of MsgBox | |
Re: Hi, You may try VB Disassembler in the google search | |
Re: Hi ListBoxes dont have [B]Value[/B] property. Instead [B]Text [/B]Property to get the selected Text Ex [CODE] MsgBox LstStudent.Text [/CODE] [B]ListIndex [/B]property is used to get the current selected Item Index. If none of the item is selected it has -1 value [B]List() [/B]Property contains all the Items like array U … | |
Re: Hi I am not having knowledge about this. but u can use Choose Project -> Reference -> Microsoft Access 11.0 Object Library (For MS Office 2003) or Microsoft Access 12.0 Object Library (For MS Office 2007) Now the object library is added to your project So u can get the … | |
Re: Hi This is VB.NET code, I think so. Try [ICODE] For each n as string in my.computer.filesystem.getdirectories("C:\Testing\") n.Replace ( "C:\Testing\", "" ) Listview1.items.add(n,Imagelist1.images.count - 1) Next [/ICODE] I Dont know whether it is right or wrong. Please try it | |
Re: [QUOTE=az_master;594928]hi,can anyone help me with a code that can change form color after 10 seconds ,for example from yellow to red continiously.please help.[/QUOTE] Hi U can use Timer for this. Timer has interval property, which Specifies the number of milliseconds between calls to a Timer control's Timer event and Form.Backcolor … | |
Re: Hi ezibs You can try Microsoft Speech SDK at [url]www.microsoft.com[/url] Search about Speech SDK in microsoft website | |
Re: [B]I assume u Created a DataEnvironment, Connection, Command[/B] and Command is a SQL with Parameter Suppose U have Created the DataEnvironment as DataEnvironment1, Connection as Connection1 and Command as Command1 Then u can pass value to the SQL variable as [ICODE] [INDENT]DataEnvironment1.Command1 <Parameter Value>[/INDENT] [INDENT]DataEnvironment1.Refresh[/INDENT] [/ICODE] [B]Example [/B] [B]SQL[/B]: SELECT … | |
Re: Hi sonia Do u mean VB Graphics, or in General. How ever Graphics is very important to all projects. I give more User Friendly and Look and Feel. The best example is Winamp and its skins. These graphics acheived by lines and circle. | |
Re: [QUOTE=dinilkarun;596226]For i=0 to 10 ..... Form1.Show Call function1(var_Name, intValue) .... ..... ... Next i This loop is present inside a class and has many function calls inside the 'for' loop. form1 is called inside this loop. I want the control back into this 'for' loop and continue with executing the … | |
Re: Do u mean reading from a file or standard input that is keyboard If it is standard input u can try gotoxy (x,y) function | |
Re: Hi Array can be declared [ICODE] [B]Dim Names([/B] [I]array_starting_index [/I][B]To[/B] [I]array_ending_index for first dimension[/I] , again for second dimension [B]) as[/B] DataType Example Dim FName (10) as String [/ICODE] If array_starting_index is not mention then It takes default value 0 and Ending Index is 10. Totally 11 FirstNames it can … | |
Hi Friends, I am selva. I am very much interested in VB6. I am happy to join with u | |
Re: I Downloaded PingPong somewhere by google search. I may be useful | |
Hi My Question is how to use printer in vb6. I know some of the printer properties. But when printer prints some text it automatically goes to next paper, it is not good for bill printing. any one say how to code printer for bill format |
The End.