405 Posted Topics

Member Avatar for jainendra.shah

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 …

Member Avatar for jainendra.shah
0
98
Member Avatar for zion_neo

Hi Please specify full detail. > Table under ListBox? > What u mean Table? Is it Grid?

Member Avatar for zion_neo
0
75
Member Avatar for wednesday

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

Member Avatar for ericstenson
0
216
Member Avatar for apuamy

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 …

Member Avatar for selvaganapathy
0
83
Member Avatar for asushil

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]

Member Avatar for mejval85
0
234
Member Avatar for lich

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]

Member Avatar for selvaganapathy
0
91
Member Avatar for regalla

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 …

Member Avatar for selvaganapathy
0
87
Member Avatar for Robins Antony

Hi, [B]It is possible to create Table dynamically[/B] depends upon the Database Connection used for the Database such as DAO, ADO etc..

Member Avatar for selvaganapathy
0
65
Member Avatar for realone

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 & "'" …

Member Avatar for selvaganapathy
0
74
Member Avatar for jainendra.shah

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]

Member Avatar for jainendra.shah
0
170
Member Avatar for kinyuadave

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 …

Member Avatar for Jx_Man
0
109
Member Avatar for murali5780

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 …

Member Avatar for selvaganapathy
0
114
Member Avatar for ae4jm

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 …

Member Avatar for ae4jm
0
92
Member Avatar for fujilec
Member Avatar for selvaganapathy
0
71
Member Avatar for mafaisal

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)

Member Avatar for selvaganapathy
0
74
Member Avatar for dinilkarun

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

Member Avatar for selvaganapathy
0
86
Member Avatar for evios

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]

Member Avatar for evios
0
138
Member Avatar for realone

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.

Member Avatar for selvaganapathy
0
261
Member Avatar for Tekito

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.

Member Avatar for selvaganapathy
0
86
Member Avatar for geetajlo

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.

Member Avatar for Pgmer
0
64
Member Avatar for wellibedamned

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.

Member Avatar for iamthwee
0
412
Member Avatar for it2051229

Hi My suggestion is to search [B]Low Level Keyboard Hook[/B] in c#, this will help u. I think so.

Member Avatar for Jx_Man
0
83
Member Avatar for geetajlo

Hi I think Show the form modally will help u. Refer [ICODE] Form.ShowDialog() method or Form.ShowDialog(Owner) method [/ICODE] Try this

Member Avatar for selvaganapathy
0
120
Member Avatar for awi123

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 …

Member Avatar for lich
0
120
Member Avatar for kinyuadave
Re: Icon

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 …

Member Avatar for kinyuadave
0
160
Member Avatar for efarook

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 …

Member Avatar for efarook
0
121
Member Avatar for Benniit

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.

Member Avatar for jk_bscomp
0
81
Member Avatar for n.aggel

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

Member Avatar for n.aggel
0
379
Member Avatar for noraantonia

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]

Member Avatar for noraantonia
0
91
Member Avatar for mrt.work

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 …

Member Avatar for selvaganapathy
0
92
Member Avatar for realone

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 …

Member Avatar for debasisdas
0
81
Member Avatar for mgorecki

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 ' …

Member Avatar for selvaganapathy
0
93
Member Avatar for Vermahardeep

Hi To avoid the duplicate(Existing) records to add you can create a primary key for any field (most probably uniquely identifying field).

Member Avatar for selvaganapathy
0
47
Member Avatar for Rups``

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]

Member Avatar for Rups``
0
534
Member Avatar for selvaganapathy

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.

Member Avatar for selvaganapathy
0
1K
Member Avatar for jpparis

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

Member Avatar for jpparis
0
245
Member Avatar for andy_aphale
Member Avatar for wrichardson530

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 …

Member Avatar for selvaganapathy
0
80
Member Avatar for wrichardson530

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 …

Member Avatar for wrichardson530
0
165
Member Avatar for saurabh.verma

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

Member Avatar for saurabh.verma
0
104
Member Avatar for az_master

[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 …

Member Avatar for debasisdas
0
159
Member Avatar for ezibs

Hi ezibs You can try Microsoft Speech SDK at [url]www.microsoft.com[/url] Search about Speech SDK in microsoft website

Member Avatar for selvaganapathy
0
51
Member Avatar for mike4

[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 …

Member Avatar for debasisdas
0
72
Member Avatar for sonia sardana

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.

Member Avatar for debasisdas
0
95
Member Avatar for dinilkarun

[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 …

Member Avatar for dinilkarun
0
111
Member Avatar for web_master

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

Member Avatar for jephthah
0
3K
Member Avatar for NeedVBAhelp

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 …

Member Avatar for selvaganapathy
0
106
Member Avatar for selvaganapathy

Hi Friends, I am selva. I am very much interested in VB6. I am happy to join with u

Member Avatar for zandiago
0
47
Member Avatar for humera05
Member Avatar for humera05
0
135
Member Avatar for selvaganapathy

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

Member Avatar for selvaganapathy
0
118

The End.