Posts
 
Reputation
Joined
Last Seen
Ranked #809
Strength to Increase Rep
+9
Strength to Decrease Rep
-2
88% Quality Score
Upvotes Received
20
Posts with Upvotes
20
Upvoting Members
17
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
11 Commented Posts
9 Endorsements
Ranked #207
Ranked #207
~154.80K People Reached
About Me

Tech Lead

Interests
Reading BooksChatting with Friends
PC Specs
Type: LaptopProcessor : Core DeoRAM: 1 GBCompany: DELLOS: WinXP SP2
Favorite Tags

405 Posted Topics

Member Avatar for thijscream

Hi, To get the Current Time u can use DateTime.Now property. It returns CurrentTime. So in btnStart u can use like this [CODE=c#] private void btnStart_Click(object sender, EventArgs e) { //Display the current Time textBox1.Text = DateTime.Now.ToString("hh:mm:ss tt"); textBox2.Text = DateTime.Now.ToString("hh:mm:ss tt"); //Start the Timer tmrTime.Enabled = true; } [/CODE] …

Member Avatar for HaxNain
0
8K
Member Avatar for peroberg
Member Avatar for vinaya

Hi, dateTimePicker1 is a Control which displays the date and Time visually. This control help to select the date and time visually. U can get currently selected date or Time using [ICODE] dateTimePicker1.Value [/ICODE] [ICODE] dateTimePicker1.Value.ToShortDateString(); [/ICODE] gets the Date in Short Format. Also in DateTime class, ToShortDateString() is possible. …

Member Avatar for ddanbe
0
11K
Member Avatar for sneixum

Hi macneato! Thats right!!.. but [CODE=CSS] position:fixed; [/CODE] is not work in IE6...

Member Avatar for shiqar
0
118
Member Avatar for selvaganapathy

Hi I am getting this error whenever running the DOT NET Applications. Any one help me to this problem. How can fix it.

Member Avatar for Reverend Jim
-1
716
Member Avatar for chern4ever

Use Input statement instead of Line Input Ex [code=vb] Private Sub Command1_Click() Dim dText As String Dim sString1 As String, sString2 As String Open "C:\Users\Chern\CINEMA\reserve.txt" For Input As #1 Do While Not EOF(1) Input #1, sString1, sString2 dText = dText & sString1 & ", " & sString2 & vbCrLf Loop …

Member Avatar for Jx_Man
0
3K
Member Avatar for Tekito

Hi, Instead of Arrays, You can use Collection object or Your own Collection Class. VB6 does not allow to declare Constants, Arrays, User Defined Types as Public. Ex In a class Module [CODE=VB] Option Explicit Private mMyCollection As Collection Public Property Get MyCollection() As Collection Set MyCollection = mMyCollection End …

Member Avatar for MrZerocaL
0
3K
Member Avatar for abu taher

Hi, Form has WindowState Property. The values may be vbNormal - 0 - (Default) Normal. vbMinimized - 1 - Minimized (minimized to an icon) vbMaximized - 2 - Maximized (enlarged to maximum size) But Form does not have any particular Event occur when minimize and maximize. [B]Resize()[/B] event can be …

Member Avatar for Qesha carol
0
1K
Member Avatar for Pgmer

Hi, To search all the instance of keyword, you should explicitly save the last search index. For this u can use the Variable [CODE=VB.NET] Dim iLastIndex as Integer Private Sub FindButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FindButton.Click Dim idx As Integer = iLastIndex idx = TextBox3.Text.IndexOf(TextBox1.Text, idx) …

Member Avatar for shamy086
0
237
Member Avatar for firoz.raj
Member Avatar for DAWNIE

Save the Information of all shapes (Circles and Squares) in a data structure and redraw it in paint event of PictureBox.

Member Avatar for polas5
0
2K
Member Avatar for lisheen

Hi Try this [ICODE] str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\REPRINT.MDB;Persist Security Info=False" [/ICODE]

Member Avatar for Jason2726
0
277
Member Avatar for Webbsta

Have you try saveFileDialog.AddExtension property? It is indicating whether the dialog box automatically adds an extension to a file name if the user omits the extension. The extension added to a file name depends on the currently selected file filter.

Member Avatar for Weakegg
0
2K
Member Avatar for emulman

Starting html tag is missing, Is that typo mistake ?? Anyway, Set the height of the 5 DIV tags or it should contain something inside to show

Member Avatar for Skorpio07
0
153
Member Avatar for gamestoenjoy
Member Avatar for f_atencia
Member Avatar for ko ko
0
95
Member Avatar for ruudmu7
Member Avatar for emilio
Member Avatar for mahmudh
0
274
Member Avatar for suganzeni

Use Rnd () function to Get the Random value. The Rnd function returns a value less than 1, but greater than or equal to zero. Example [ICODE] Dim value As Integer = CInt(Int((256 * Rnd()))) [/iCODE] You will get the value 0 to 255 By using Rnd() in timer, generate …

Member Avatar for mzoner
0
1K
Member Avatar for Derice

Hi, I was also faced that problem, but never get good solution. Data Environment is not refresh when add a new Record. It will be static. But i did separate the Data Environment and my application. Then Make Exe with Data Environment. Whenever you want to print from Data Environment, …

Member Avatar for rjohn18
0
112
Member Avatar for Traicey

Hi, [QUOTE]I wana enter 4 digit[/QUOTE] means you have to allow only 4 digits? or you mean, when you press '4' If so, put quote before 4 in [CODE=CSharp] if(e.KeyChar == 4) [/CODE] [CODE=CSharp] if(e.KeyChar == '4') [/CODE] because u checking the char

Member Avatar for tawadchai
0
96
Member Avatar for lukechris

Hi Luke, Instead of converting Label to Integer (Label1 to Minutes), Use DateTime Class for Date or Time operations. It has methods and Properties to manipulate it.

Member Avatar for codeorder
0
443
Member Avatar for pinus-strobus
Member Avatar for AndreRet
-1
99
Member Avatar for Rajnesh

Hi, My Suggestion, Start your coding form [B]Boot Loader[/B]. Have a knowledge on Booting process.

Member Avatar for kvprajapati
0
929
Member Avatar for vbcoder123456

Hi, You can try String.Format() Try this [CODE=VB] Dim str As String 'Here 20 is the width of the first string '-means Left Align, 0 and 1 are index str = String.Format("{0,-20} {1,2}", "Hi", 10) MessageBox.Show(str) [/CODE]

Member Avatar for Jx_Man
0
757
Member Avatar for selvaganapathy

This code snippet convert Number to String in VB6. For instance input 100 will be return as Hundred, It converts upto Core....

Member Avatar for SoftwarePaladin
0
308
Member Avatar for rosebabu

Hi, Which version of .NET Framework you are using? FormClosing is new to .NET Framework 2.0. Or Specify what difficulty you are facing while implementing the above code.

Member Avatar for Geekitygeek
0
2K
Member Avatar for santy555
Member Avatar for swapna7999

Hi I think you want to include ij|11.dll into your vb project. If so, Open vb Project Click Project -> Reference Click Browse button and Locate the ij|11.dll Now the dll is included in your project

Member Avatar for phpbeginners
0
265
Member Avatar for vishalkhialani

I agree with macneato jQuery + AJAX it is possible .. You dont need to all the images statically. If u try AJAX, u can load the image (or any element) dynamically. There are lots of javascript libraries available, but jQuery is most popular ..

Member Avatar for infinitymedia
0
123
Member Avatar for pysdex

[QUOTE=pysdex;1093228] [CODE=VB] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Number1 = TextBox1.Text Number2 = TextBox2.Text Equation = TextBox3.Text A = Number1 B = Number2 MsgBox(Equation) *can read equation enter Answer = Equation *can't use the equation MsgBox(Answer) End Sub [/CODE] [/QUOTE] Parse the Equation for …

Member Avatar for Ranx
0
91
Member Avatar for kzip
Member Avatar for sathya8819

It is better to keep the image folder under the folder where your executable is available Say for example your executable file is reside in the folder [icode]C:\Users\pashok\Documents\test[/icode] u can use [CODE] String[] files = Directory.GetFiles(@"testimages\", "*.jpeg"); [/CODE]

Member Avatar for sathya8819
0
109
Member Avatar for selvaganapathy

This simple code shows to display the form in different shape. Also using the Gradient Brush to add Look And Feel to your form. Moving the form is also possible. Requirements Just draw a Form (Form1) and add Event handler for Load, MouseDown, MouseMove, Paint and DoubleClick for Form1. Then …

Member Avatar for anoop4real
1
211
Member Avatar for neosonic

The problem is from Height to ScaleHeight and ScaleHeight to Height Get the Height and Width of the Image from the Picture object rather than from AutoSize To Get the Height and Width of the Image [CODE=VB6] Private Sub Form_Load() Dim img As StdPicture Set img = LoadPicture("abc.jpg") 'Image Height …

Member Avatar for neosonic
0
2K
Member Avatar for OldQBasicer

Use a Variable like bLoopCancel to control your loop. Initially set it false. Code your loop so that if bLoopCancel is true, your loop terminates When a loop is executing (Do, for ..) it may not respond to the user. Use [ICODE]Application.DoEvents()[/ICODE] inside the loop now the loop will respond …

Member Avatar for Progr4mmer
0
156
Member Avatar for tqmd1

Hi Try this [CODE=VB.NET] Imports System.Drawing.Drawing2D Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim gPath As GraphicsPath Dim rgn As Region PictureBox1.BackColor = Color.Blue 'Create a graphics path gPath = New GraphicsPath() 'Add elliptical gPath.AddEllipse(PictureBox1.ClientRectangle) 'Create a region rgn = New Region(gPath) 'Change the picture …

Member Avatar for selvaganapathy
0
89
Member Avatar for jrosh

Hi Here is the [URL="http://www.daniweb.com/code/snippet217097.html"] sample code[/URL] for form in different shape, but i've written this code C#.NET. I hope u will understand

Member Avatar for selvaganapathy
0
65
Member Avatar for crackerjacker

Have u try ?[CODE] If GetAsyncKeyState(VK_LBUTTON ) Then If GetAsyncKeyState(VK_RBUTTON ) = 0 Then .. End If End If [/CODE]

Member Avatar for selvaganapathy
0
749
Member Avatar for atrusmre

Hi, Do u create txtUnit1 dynamically? Even though it is created dynamically, it should have reference to refer later. Also check the modifier (Private, public ...). In your conditions the controls may not be created.

Member Avatar for thikkamsantosh
0
98
Member Avatar for jlego

Made changes only Ok button is clicked [CODE=VB.NET] 'Ignore the changes, if cancel button is clicked If ColorDialog.ShowDialog() = DialogResult.OK Then 'Do some changes End If [/CODE] or [CODE=VB.NET] If ColorDialog.ShowDialog() = DialogResult.OK Then 'Process Ok button event ElseIf ColorDialog.ShowDialog() = DialogResult.Cancel Then 'Process Cancel button event End If [/CODE]

Member Avatar for jlego
0
98
Member Avatar for cabsjonel

Hi, Happy Christmas and Happy New Year. Lets come to the discussion, Use Public keyword declare a public variable in a module so that all other modules and forms can access it. [B]Ex:-[/B] [CODE=VB] 'In a module Public sUserName As String [/CODE] 'In a Form (Form1 ) ' - Draw …

Member Avatar for abu taher
0
97
Member Avatar for OldQBasicer

hi, What is the purpose of that timer (Do ... Until ) ? Anyhow try this [CODE=VB.NET] Do TimeLater = DateTime.Now lblOxygenReading.Text = sglOxygen.ToString("#.##") 'Force to redraw the text lblOxygenReading.Refresh () 'Use Application.DoEvents() to help the to respond the user events Loop Until DateDiff(DateInterval.Second, TimeNow, TimeLater) >= intWaitTime [/CODE] Note: …

Member Avatar for selvaganapathy
0
222
Member Avatar for coollife
Member Avatar for tqmd1

Check the Image property of PictureBox as [B]Nothing [/B].. Ex: [CODE] If PictureBox1.Image Is Nothing Then MsgBox("No Picture") Else MsgBox("Some Picture is there") End If [/CODE]

Member Avatar for selvaganapathy
0
640
Member Avatar for killerbeat

Hi I hope you are familiar with Win32API. use MoveWindow() or SetWindowPos() API to move start menu

Member Avatar for selvaganapathy
0
253
Member Avatar for cdtrd
Member Avatar for cdtrd
0
160
Member Avatar for kong_quints

Hi I hope the following reference site may help u [URL="http://www.vbforums.com/showthread.php?t=505382"]http://www.vbforums.com/showthread.php?t=505382[/URL] [URL="http://www.vbforums.com/showpost.php?p=3090252&postcount=3"]http://www.vbforums.com/showpost.php?p=3090252&postcount=3[/URL]

Member Avatar for selvaganapathy
0
115
Member Avatar for neosonic

[QUOTE]I want to move that desk to the desired its desired place in the plan (let's say, top 50, left 100). [/QUOTE] Refer following sites for moving controls around form using mouse [URL="http://www.vb-helper.com/howto_user_move_controls.html"]http://www.vb-helper.com/howto_user_move_controls.html[/URL] [URL="http://www.freevbcode.com/ShowCode.asp?ID=4349"]http://www.freevbcode.com/ShowCode.asp?ID=4349[/URL] [URL="http://www.vbforums.com/showthread.php?t=231433"]http://www.vbforums.com/showthread.php?t=231433[/URL]

Member Avatar for vb5prgrmr
0
121
Member Avatar for Rombosia

Hi These sites may helpful for you [URL="http://www.vb6.us/tutorials/convert-c-strings-vb-strings"]http://www.vb6.us/tutorials/convert-c-strings-vb-strings[/URL] [URL="http://www.vbthunder.com/articles/readcpp.php"]http://www.vbthunder.com/articles/readcpp.php[/URL]

Member Avatar for selvaganapathy
0
1K

The End.