- Strength to Increase Rep
- +9
- Strength to Decrease Rep
- -2
- Upvotes Received
- 20
- Posts with Upvotes
- 20
- Upvoting Members
- 17
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
Tech Lead
- Interests
- Reading BooksChatting with Friends
- PC Specs
- Type: LaptopProcessor : Core DeoRAM: 1 GBCompany: DELLOS: WinXP SP2
405 Posted Topics
Re: 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] … | |
Re: Hi, Can u post your coding to view somebody to tell the suggestions. | |
Re: 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. … | |
Re: Hi macneato! Thats right!!.. but [CODE=CSS] position:fixed; [/CODE] is not work in IE6... | |
Hi I am getting this error whenever running the DOT NET Applications. Any one help me to this problem. How can fix it. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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) … | |
Re: Hi, Try For Each Loop instead of For Loop | |
Re: Save the Information of all shapes (Circles and Squares) in a data structure and redraw it in paint event of PictureBox. | |
Re: Hi Try this [ICODE] str = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\REPRINT.MDB;Persist Security Info=False" [/ICODE] | |
Re: 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. | |
Re: 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 | |
Re: Set width for Table, will solve this problem | |
Re: Use DIV tag instead of the first SPAN tag and remove the height CSS. | |
Re: Hi, Are you using Database? and Company_id is a Field? | |
| |
Re: 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 … | |
Re: 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, … | |
Re: 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 | |
Re: 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. | |
Re: Hi, You can use either file handling mechanism or database connection. | |
Re: Hi, My Suggestion, Start your coding form [B]Boot Loader[/B]. Have a knowledge on Booting process. | |
Re: 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] | |
This code snippet convert Number to String in VB6. For instance input 100 will be return as Hundred, It converts upto Core.... | |
Re: 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. | |
Re: Hi, I think it is not possible for security reason. | |
Re: 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 | |
Re: 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 .. | |
Re: [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 … | |
| |
Re: 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] | |
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 | |
Re: Have u try ?[CODE] If GetAsyncKeyState(VK_LBUTTON ) Then If GetAsyncKeyState(VK_RBUTTON ) = 0 Then .. End If End If [/CODE] | |
Re: 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. | |
Re: 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] | |
Re: 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 … | |
Re: 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: … | |
Re: Hi, Use Key_Press event in VB6 to capture the keypress within vb application. | |
Re: 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] | |
Re: Hi I hope you are familiar with Win32API. use MoveWindow() or SetWindowPos() API to move start menu | |
Re: Search for any third party components, or you try your own controls | |
Re: 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] | |
Re: [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] | |
Re: 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] |
The End.