User Profile
Collapse
-
thanks..i think that might help.. -
VB6 automatically registers the ocx in Win Xp and not in Win Vista.
I tried pasting it in system folder of Win Vista,but still i get 'OCX not registered properly'.Leave a comment:
-
For a ball bounce animation,you can just change the top property of the ball picture gradually in a timer...increas e top property to make the ball move down and decrease it to make the ball move up.Do not change the left property of the picture.
You can also add elastic effect to the ball by reducing the height of the picture exactly at the moment when the ball reaches bottom position of bouncing.Leave a comment:
-
Position of Common Dialog Box
Does any one know how to set the position of common dialog control after .shoeopen or .showfont or .showcolor?? -
Registering ocx files
I'm using an up-down control in my project..I've created an exe of it,placed the necessary ocx in its app.path.The exe runs fine in Windows XP,but Win Vista produces an error "OCX not registered properly"..
How do i register an ocx file properly? -
i too dont think we can use SIN and COS for an image control..to rotate an image we have to extract every pixel color data..Leave a comment:
-
Try this....
'get center coordinates in x and y initially
y=image1.top+(i mage1.height/2)
x=image1.left+( mage1.width/2)
'change dimensions
image1.width=ne wwidth
image1.height=n ewheight
'set position so that center is same
image1.left=y-(image1.width/2)
image1.top=x-(inage1.height/2)Leave a comment:
-
What you have done is just open a database,read it and store it in a variable(actual ly you are overwriting the variable in your do while loop)..you must have to use some sort of output actions/commands like msgbox or you can write your output in a text file etc..
try writing..
msgbox "doubleID: " & doubleID & vbnewline & "doubleID1: " & doubleID1 & vbnewline & "intstring: " & intstring...Leave a comment:
-
That wont work..i tried
If i add 'keyascii = 0' in keypress event of the text box, it doesnt accept any keystrokes.Leave a comment:
-
Popup Menu in Text box
Hi all,i'm using vb6. In my project i have a text box which when right clicked must pop up a menu with 2 sub menus-Change Font and Change color.
I did my coding in mouseup event of the textbox.
The problem is that a text box in vb has always a default pop up menu with sub menus-Undo,Cut,Copy,P aste,etc..
Now when the user clicks the right mouse button inside the text box the default pop up shows and my user defined pop up shows... -
Even if you create a database using Visual Data Manager,it behaves as an ordinary .mdb file.
You cannot directly link your controls without an intermediate ADODC/DAO.
Ordinary Data Control/DAO would do..
when giving add/remove command,add/remove the item from both the combo box and database table via DAO.Leave a comment:
-
Yeah..that works.I didnt know it.Thanks.
One more thing - Is there any registry keys/values associated with this hot key setting? I would like to know it because i would like to set an hot key automatically to my own exe/application via codingLeave a comment:
-
Yes,i know to handle it in vb-wmp control, but in my project i'm supposed to display icons of various installed players and when the user clicks an icon,the already selected video file my play in the corresponding player.
I'm comfortable with extracting the icon,opening the player,but i my project involves automatically closing the file after complete play.Leave a comment:
-
I feel it seems like a kind of error beep.
Anyway,Is there any way i could avoid it?Leave a comment:
-
Actually i'm extracting a file's icon using SHGetFileInfo() API..that returns a structure containing a handle to the icon(hIcon)..so to use it i'm forced to go for DrawIcon().
I've set
picturebox1.hei ght=32*screen.t wipsperpixelY
picturebox1.wid th=32*screen.tw ipsperpixelX
Any decrease in the size makes it cropped.
I dont know what to do..Leave a comment:
-
Setting Hotkey for an Application
Hi, is it possible to set a hotkey for an application by doing some registry changes in Win XP or Vista??
For example if i press Ctrl+Shift+E i want MS Excel to open..something like that. -
Stretch Property for PictureBox
I'm currently working on a project in vb6. I have to display icons in the form.
I use DrawIcon(pictur ebox1.hDC,0,0,h Icon) API to draw the icon into the picture box. As image box does'nt have hDC property i cannot draw icon into it.
Now i want to reduce the size of the picture box proportionately ,but as the picture box does'nt have stretch property the icon seems to be cropped.
What do i do now?Any ideas? -
Textbox Beep
I'm currently working on a project in vb6. I have a textbox in which the user is supposed to enter his/her name and press enter. When i give my name and press enter a short beep is heard, but the program flow is good and every other thing is going as expected.
I feel the beep sound is annoying and i want to avoid it.How do i do it?
Does anyone know why do i get that beep sound? -
Finding length of a video file
Hi,i'm using vb6.I have a command button which when clicked opens VLC Media Player and plays a specific file in it in full screen mode. Now i want the player to close itself after playing the file.
I dont know how to do this, but if i can possibly find out the time length of the video,i can send a close message to that window.
So,does anyone know how to find out the length of a video file or any alternative solution for this proble... -
I'm using vb6..I should have mentioned it..i'm sorry
is it .net code?Leave a comment:
No activity results to display
Show More
Leave a comment: