405 Posted Topics

Member Avatar for Drycola

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 …

Member Avatar for selvaganapathy
0
104
Member Avatar for jinkylopezplan

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.

Member Avatar for selvaganapathy
0
27
Member Avatar for Gaurav arora

Hi, Why dont consider the MaskedTextBox control ?. This MaskedTextBox gets formatted input from the user

Member Avatar for selvaganapathy
0
137
Member Avatar for webfort
Member Avatar for selvaganapathy
0
153
Member Avatar for Duki

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 …

Member Avatar for cVz
0
241
Member Avatar for krille

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.

Member Avatar for krille
0
173
Member Avatar for sireesha.c

Hi, Set uiMode property of windows media player to none [CODE=CSharp] axWindowsMediaPlayer1.uiMode = "none"; [/code]

Member Avatar for selvaganapathy
0
102
Member Avatar for elanch
Member Avatar for nikesh.yadav

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.

Member Avatar for nikesh.yadav
0
89
Member Avatar for guest11

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"

Member Avatar for guest11
0
83
Member Avatar for sancti

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]

Member Avatar for vckicks
0
84
Member Avatar for arupa

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

Member Avatar for arupa
0
180
Member Avatar for ash-always-win

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 …

Member Avatar for selvaganapathy
0
102
Member Avatar for 123user123
Member Avatar for Annieken

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 …

Member Avatar for selvaganapathy
0
114
Member Avatar for harry_b

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 …

Member Avatar for harry_b
0
194
Member Avatar for nagatron

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.

Member Avatar for dspnhn
0
196
Member Avatar for ntredame
Member Avatar for belac

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

Member Avatar for belac
0
97
Member Avatar for RobWil

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]

Member Avatar for RobWil
0
5K
Member Avatar for CatchItBaby

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]

Member Avatar for selvaganapathy
0
87
Member Avatar for breezyy

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

Member Avatar for selvaganapathy
0
117
Member Avatar for Ahsen

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

Member Avatar for Ahsen
0
153
Member Avatar for Anticipation

OutOfMemoryException is thrown when there is not enough memory to continue the execution of a program. So avoid unwanted usage of memory.

Member Avatar for Anticipation
0
144
Member Avatar for chern4ever

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

Member Avatar for mmkhetan
0
77
Member Avatar for K.Vanlalliana

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.

Member Avatar for K.Vanlalliana
0
196
Member Avatar for ahmbil

Similar Problem already discussed in the following thread [URL="http://www.daniweb.com/forums/thread135921.html"]http://www.daniweb.com/forums/thread135921.html[/URL]

Member Avatar for K.Vanlalliana
0
427
Member Avatar for Umair.P

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 …

Member Avatar for selvaganapathy
0
120
Member Avatar for Tekito

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 …

Member Avatar for Tekito
0
115
Member Avatar for gouki2005

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 …

Member Avatar for manal
0
121
Member Avatar for htmlforums
Member Avatar for htmlforums
0
100
Member Avatar for me_roy

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 …

Member Avatar for WaltP
0
435
Member Avatar for kaloon

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 …

Member Avatar for nvmobius
0
130
Member Avatar for Renukavani
Member Avatar for Renukavani
0
67
Member Avatar for R3B3L

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 .

Member Avatar for selvaganapathy
0
17K
Member Avatar for sdimantova

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.

Member Avatar for selvaganapathy
0
118
Member Avatar for breezyy

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

Member Avatar for breezyy
0
122
Member Avatar for OrbMonkey

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

Member Avatar for selvaganapathy
0
99
Member Avatar for C#Novice
Member Avatar for yuenli

Hi, It is working for Mouse Not for Keyboard Cursor. Use DataGridView.CurrentCell it represents the active cell.

Member Avatar for selvaganapathy
0
89
Member Avatar for K.Vanlalliana

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 …

Member Avatar for selvaganapathy
0
90
Member Avatar for pardeep3dec

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]

Member Avatar for hkdani
0
108
Member Avatar for san_gwapo19

Yes, Definitely, as quick as possible. Use Rich Text Box to make Notepad,, it is capable of doing things like wordpad.

Member Avatar for san_gwapo19
0
103
Member Avatar for abu taher
Member Avatar for elanch

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.

Member Avatar for QVeen72
0
89
Member Avatar for troblekid

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 …

Member Avatar for troblekid
0
154
Member Avatar for chern4ever

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 …

Member Avatar for chern4ever
0
5K
Member Avatar for guest11

I think it is possible using Process.Start("Path"). Try this Class. Also you can get the output of the Executed program as well.

Member Avatar for guest11
0
209
Member Avatar for preethi_ga

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

Member Avatar for tchawurura
0
201
Member Avatar for ruchika beddy

Hi, Use [B][COLOR="Green"]Regsvr32 /s [/COLOR][/B]- For silent mode ( No message box).

Member Avatar for selvaganapathy
0
79

The End.