- 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
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 .. |