405 Posted Topics
Re: Hi, Normal modules are used for Global purpose. You can place your global variables , functions, etc. But Class Module is similar to Classes in other object oriented languages like c++, java . You can use class modules for making ActiveX. I dont know the fast of execution. but if … | |
Re: Hi, Use DateDiff() function to compare the date and time. By using this develop your code and if you face any difficulty then discuss here. | |
Re: Hi, Why dont consider the MaskedTextBox control ?. This MaskedTextBox gets formatted input from the user | |
Re: Hi, you specify, what method you are using to Scrape the Page . Have you heard Regex class? | |
Re: Hi, your above code will work when you move the mouse over groupBox1, it will show the X and y position of the Mouse [QUOTE]I need to be able to allow a user to click a button within a frame on the form. Once the user clicks the button, I … | |
Re: Hi, I think error form the line [iCode] File1.MultiSelect = 2 [/iCOde] because MultiSelect property is read only at Runtime. that is you can set it at design time only. | |
Re: Hi, Set uiMode property of windows media player to none [CODE=CSharp] axWindowsMediaPlayer1.uiMode = "none"; [/code] | |
Re: Please post your code to try anyone to solve. | |
Re: Hi, To do this use NotifyIcon Control. When your form is minimized then Set NotifyIcon control Visible to True and Use Show In Task bar property of the Form. | |
Re: Hi, Use ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=MyDB;Persist Security Info=true;[B][COLOR="Green"]Jet OLEDB:Database Password[/COLOR][/B]=MyPassword" | |
Re: Hi, > Press Print Screen > Now Clipboard contains the Screen Image use following code to save the image [code=CSharp] if (Clipboard.ContainsImage()) { Image screenshot = Clipboard.GetImage(); screenshot.Save("c:\\screenshot.jpg", System.Drawing.Imaging.ImageFormat.Jpeg); } [/CODE] [B][COLOR="Red"]Note: Clipboard.GetImage() is new in the .NET Framework version 2.0.[/COLOR][/B] | |
Re: [QUOTE]Can you help me to check a number is even or odd without using any conditions.[/QUOTE] I think Bitwise & operator can be useful. No & 2 == 0 means Odd and No & 2 == 2 means Even (here No is any number) Is this correct? I think it … | |
Re: Hi, [QUOTE]for a button click event, 1. how to navigate for another form, while existing form is invisible?[/QUOTE] > Create new instance of the Form using new Keyword > Show the form using Form.Show() method [QUOTE]2. how to navigate for another form, with the values of previous form? [/QUOTE] To … | |
Re: Hi, I think it is possible, but i know how... | |
![]() | Re: Hi, pictureBox1.Paint is an Event, not a Function. It is similar to Button.Click, Form.Load ... etc.. So [ICODE] pictureBox1.Paint(); [/ICODE] is wrong. You can simply call pictureBox1.Invalidate() as said by LizR. This will implicitly call Paint () Event. Or else You can use pictureBox1.CreateGraphics() function to Create the Graphics object … |
Re: You need to know GDI+ or some other technique Other Technique: > Draw a Label in Form, > Set Autosize Property to False > Set Dock Property To Fill > Set TextAlign Property to Middle Center Now you can display the word in the Label which will be displayed in … | |
Re: The MsFlexGrid.Sort property sorts entire rows. I think it may not useful for particular column. [B]To Sort[/B] Make the SQL with ORDER BY Clause. This will sort your Records. [B]To refresh[/B] Also in FlexGrid you are loading the records so you have to Reload everything in Refresh Action. | |
Re: May be file corrupted or virus problem or Access Permission. | |
Re: Hi, You can hold the all reference in an array. [ICODE] Dim Labels(0 To 80) As Label [/ICODE] Then use a loop to create labels and add to array and form | |
Re: Code the things said by guest11 [CODE] Private Sub Command1_Click() If WindowState = vbMaximized Then WindowState = vbNormal ElseIf WindowState = vbNormal Then WindowState = vbMaximized End If End Sub [/code] | |
Re: Hi, I think you have to give the Browser filename as process name and Sites as Command line parameter to the browser. For Example FireFox [url]www.Google.com[/url] [url]www.Yahoo.com[/url] | |
![]() | Re: [QUOTE]I am trying to make a unique ID for each of my records.[/QUOTE] Yes I agree Addition of Ascii dont give a unique number as Shaik Akthar. Better to use Auto Number or Other Algorithm. Addition of Ascii of ABCD is same as Addition of Ascii of ABDC, BACD, and … |
Re: [QUOTE]what query should i use if i complete record of 1 month say deember.[/QUOTE] Use BETWEEN Clause in Query [QUOTE]After developing a project, how to make its .exe file.[/QUOTE] Exe file automatically created when you compile the solution according to debug version or release version. [QUOTE]when i move from Form1 … | |
Re: OutOfMemoryException is thrown when there is not enough memory to continue the execution of a program. So avoid unwanted usage of memory. | |
Re: Hi, Add another loop for print the empty space [CODE=VB] Private Sub Command1_Click() Dim a As Integer, i as Integer, j as Integer, k As Integer a = 5 For i = 1 To 5 For k = 1 To i - 1 Print " "; Next For j = … | |
Re: Hi, In vb, MOD is an operator to find Remainder Ex [CODE=VB] Dim iRemainder As Integer iRemainder = 2008 MOD 10 'Here 8 is the Remainder [/CODE] If you divide one number by another number you get quotient. | |
Re: Similar Problem already discussed in the following thread [URL="http://www.daniweb.com/forums/thread135921.html"]http://www.daniweb.com/forums/thread135921.html[/URL] | |
Re: Hi, This is working but sometimes u need to close the form then .. Make a boolean variable. then check it for close operation. Try [CODE=CSharp] bool bUserClose = true; private void Form1_Click(object sender, EventArgs e) { bUserClose = false; Close(); } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { if … | |
Re: Hi, I am not clear understanding your points. but from your discussion i guess something that Your parent class (ClsDeckOfCards) may be collection class. Because Collection is a generic dynamically growing class. It uses "Key" string to represent an object in a collection. So Key should be unique. You can … | |
Re: hi, [QUOTE] Dim Newaccount as Account -----but I can declare this like.. Dim Newaccount As Account = New Account [/QUOTE] First one is just a Reference not Referring any object. With out referring any object using reference (Like first one) is an exception (NullPointerException) Second one is a reference and … | |
Re: Why dont you try DataGridView control instead Combobox with columns? | |
Re: Hi, you need array for maximum and minimum in each column [CODE=C] float M[3][3]= { {0.01, 1.02, 2.05}, {2.01, 0.00, 5.00}, {3.01, 4.00, 0.40} }; //You will have three minimum and three maximum so array needed float mx[3], mn[3]; int i,j,k; for ( i =0; i<3 ; i++){ //This is … | |
Re: HI, You are describing about your User Interface design. It can be achieved in any languge (It may be VB.NET or C#.NET ....). i dont know how far you are familiar with the programming language. But C# is a good language for implementing your concepts. Your major work is to … | |
Re: Have you used SplitContainer.BackgroundImage property? | |
Re: Hi, > Use a boolean variable (bBtnClicked) > Initially Keep it false (bBtnClicked = false) > Whenever user click the button Make it True (bBtnClicked = True in Click Event) > Now the boolean variable having the result whether button is clicked or not . | |
Re: Hi, Use ListView1.SelectedItems instead of ListView1.Items. If ListView1.SelectedItems.Count =0 then There is nothing selected otherwise something selected. If you want the user should select only one then Change MultiSelect Property to False. | |
![]() | Re: [QUOTE=breezyy;666082]Hey there, I'm still a newbie to VB and here's my question. I have say 3 check boxes and each of them is assigned a message. If I click on one of them, it displays its message (say Hello) in a text box. Now if i press on the 2nd … ![]() |
Re: Hi, I am not having clear idea about animation. But I think animation like character, in GDI + may not good. Instead you can try DirectX. Have ever heard about DirectX? I think it is best for character animation,Transformation, Lighting, Double Buffering Games, etc.. Please refer DirectX... | |
Re: Hi, Also try DataGridView Control to add the Questions and Answer. | |
Re: Hi, It is working for Mouse Not for Keyboard Cursor. Use DataGridView.CurrentCell it represents the active cell. | |
Re: Hi, It is simple logic. [CODE] > First Add half of that number (788 + (10/2) = 793) > Take Modulus (793 MOD 10 = 3), You get the remainder (3) > Subtract the Remainder from that Number (793 - 3) [/CODE] OR [CODE] > First Add half of that … | |
Re: Yes debasisdas is correct. Another way to avoid null is concatenate the empty string after the field value Ex [CODE=VB] cn1.Text = rc1.Fields(6) & "" [/CODE] | |
Re: Yes, Definitely, as quick as possible. Use Rich Text Box to make Notepad,, it is capable of doing things like wordpad. | |
Re: Make [B]Stretch[/B]property of ImageBox to true. | |
Re: Hi, This WHERE 1 = 2 is probably using for Copying the Structure of the Table into another one. That is creating a new table by the existing table without copying the records. because the condition 1 = 2 is always false. | |
Re: I give example for drag and drop > Place two label (Label1, Label2) > Change DragMode Property of Label2 to 1 - Automatic > And try the below code [CODE=VB] Private Sub Label1_DragDrop(Source As Control, X As Single, Y As Single) If TypeOf Source Is Label Then Label1.Caption = Source.Caption … | |
Re: Hi, you are declared [ICODE]Dim num(1 To 5), i, j, z As Integer [/iCODE] here z only the integer, but i, j and num are considered as Variant. In the input [QUOTE] For i = 1 To 5 num(i) = InputBox("number") Next i [/QUOTE] You are getting the string value … | |
Re: I think it is possible using Process.Start("Path"). Try this Class. Also you can get the output of the Executed program as well. | |
Re: Hi, I think No problem until the loop. Problem in [QUOTE] [Text2.Text = rst!fieldname2] [Text3.Text = rst!fieldname3] [/QUOTE] I dont know What reason you have add this code. Any how again use rst.EOF and rst.BOF [CODE] If rst.EOF = False And rst.BOF = False Then [Text2.Text = rst!fieldname2] [Text3.Text = … | |
Re: Hi, Use [B][COLOR="Green"]Regsvr32 /s [/COLOR][/B]- For silent mode ( No message box). |
The End.