|
Well that's very vague!!!
Where do you want to check?
Inside an app? A form? Over the whole PC?
In a form you can use the relative key (up, down) event of the form in VB.NET or VB6.
If you want to intercept every single keystroke on the PC then it's tougher and you have to hook an application of yours to the system through API calls. If you browse around you'll find some free DLLs that will do the job for you making it much more simple for you. Just make sure you get the correct one for your OS since most of them are OS related.
Briga
|
|
|
|
|
I am trying to right a VB code that requires passing a function as an argument to another function. Any suggestions?
|
|
|
|
|
VB6 or VB.NET? Function pointers are not supported in VB6 code. Well, kind of. You can pass a function pointer to a C++ .DLL. But a VB6 function can't accept a funtion pointer as a parameter.
VB.NET requires the use of delegates to accomplish this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
In VB.Net, how do you make an MDI application so that no matter what screen resolution the end user is using, all of the controls on all of the forms display properly???
There has to be a way to do this...I mean open up Microsoft Mappoint in different resolutions, nothing looks different...how do they do it???
I am pretty sure the answer does not lie in the Anchor and Dock properties, these are not able to be set so that a control is anywhere but on one of the edges, or corners, I want them to be in the same spot that they are on my development machine!!! I have also played around with the "Scale" property, I can't make this work either!!
Come on Guru's, I know you are out there...
|
|
|
|
|
HarleyHetz wrote:
I am pretty sure the answer does not lie in the Anchor and Dock properties, these are not able to be set so that a control is anywhere but on one of the edges, or corners,
Not true. This is what those properties are for. The controls can be anywhere on the form, not just on an edge or docked. The controls are locked in place based on which edge of the form they're bound to. If you bind to opposite edges of the form, then the control automatically scales to maintain their distances from the form edges they're bound to. If the controls are bound on 2 adjacent edges, then the controls move to maintain their position relative to the edges they're bound to.
It's very difficult to answer this question in the forums considering it's entirely a visual problem. What controls are you trying to place where? And what does the form layout have to do to maintain the look you want when the form gets resized?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Im trying to get the Title, Ratings and Time from an inserted DVD. I cant find out what to do to get this information. Its like theres no information on how to pull any kind of information from a dvd on the net. If anybody has any information on how to do this it would be much appreciated.
Ok. Well I was able to pull all the information using the windows media player control....It was a pain. Now I just need to find the length of the main dvd movie. I have some code that runs through every media item but it returns 00:00? How odd. Heres the code that I have so far:
If oThisDrive.driveSpecifier = registryvalues.DVDDriveLetter Then 'do this block of code if we are on the right dvd drive letter
oSelectedDrive = oThisDrive
strProtocol = "wmpdvd://" & Left(oSelectedDrive.driveSpecifier, 1)
oTopMenu = oSelectedDrive.Playlist
hiddendvdplayer.WindowsMediaPlayer.currentPlaylist = oTopMenu
'display the playlist
Dim oSelectedPlaylist As WMPLib.IWMPPlaylist
Dim iNumItems As Short
Dim counter2 As Short
iNumItems = oTopMenu.count
If Not iNumItems > 0 Then
MsgBox("No items in the playlist or" & vbCrLf & "no disc in the drive.", MsgBoxStyle.Critical, "WARNING!")
End If
For i = 0 To iNumItems - 1 'go through each of the titles and figure out the longest one...we will assume that is the movie
strProtocol = "wmpdvd://" & Left(oSelectedDrive.driveSpecifier, 1) & "/" & Mid(Str(i), 2)
mywriter.WriteLine("STRPROTOCOL: " + strProtocol)
loadmedia(strProtocol, hiddendvdplayer)
ripdvd.Title = hiddendvdplayer.WindowsMediaPlayer.currentPlaylist.name()
'mywriter.WriteLine("CURRENTPLAYLISTNAME: " + hiddendvdplayer.WindowsMediaPlayer.currentPlaylist.name())
mywriter.WriteLine("CURRENTLENGTH: " + hiddendvdplayer.WindowsMediaPlayer.currentPlaylist.Item(0).durationString)
For counter2 = 0 To hiddendvdplayer.WindowsMediaPlayer.currentPlaylist.attributeCount - 1
mywriter.WriteLine("CURRENTPLAYLISTATTRIBUTE: " + Str(counter2) + " : " + hiddendvdplayer.WindowsMediaPlayer.currentPlaylist.attributeName(counter2) + " : " + hiddendvdplayer.WindowsMediaPlayer.currentPlaylist.getItemInfo(hiddendvdplayer.WindowsMediaPlayer.currentPlaylist.attributeName(counter2)))
Next
Next
End If
Wheres the EXE? Oh yeah I need to compile it. <-- ME
|
|
|
|
|
I have download the multicolumn combo box,but this is i think devolped in Visual Studio .NET 2003 or later but i have installed 2002 and it is unable to open that project.I is also not loading the .dll in my toolbox.Please help me how i will be able to place this .dll in my toolbox or open the project in my installed version.Please reply me as soon as possible because i have already spent 5 days to searching this control.Waiting for your reply..........................................
shahzad
|
|
|
|
|
I have download the multicolumn combo box,but this is i think devolped in Visual Studio .NET 2003 or later but i have installed 2002 and it is unable to open that project.I is also not loading the .dll in my toolbox.Please help me how i will be able to place this .dll in my toolbox or open the project in my installed version.Please reply me as soon as possible because i have already spent 5 days to searching this control.Waiting for your reply..........................................
shahzad
|
|
|
|
|
Hey guys!
I'm currently trying to write code to create a number, 1 through 700, just a simple counter. The value 700 isn't important, but what is is I want the counter to reset on the first day of the month, say at 12:00am on the first day of the month. I'm using .NET and want to use the system time/date on my computer to do this. Seems pretty simple, but i can't find a good method of reseting the counter to 0 on the first day of the month. The counter increments when the user clicks a button, so it doesn't increment EACH DAY. They could increment the counter 10 times a day, just want to reset it to 0 on the first day of each month. Help! Thanks so much guys!
-Rancho
|
|
|
|
|
Hi Rancho,
finding whether it's the first day of the month is easy.
if (datetime.date.day = 1) then
'reset the counter variable
end if what kind of an application is this? is it persistent in memory, or something that a user will open and close at certain points? if the latter, where are you storing the counter variable? In a database?
-jim
|
|
|
|
|
Ok, i'm going to use that method but instead do it based on the month. In your if statement, if it is the first day, and they click the button say 5 times, it will reset the counter all 5 times. Instead i just want it to reset once, the first time they click the button on the first day of the month.
It's a web application running on a localhost on a specific network. I assume the counter will hold it's value no matter how many times the web app is opened and run.
|
|
|
|
|
Simple. Keep track of the last date that the counter was reset. If the current date is the first and does NOT match the last reset date, reset the counter and update the last known reset date. You'll, of course, have to keep track of both the counter AND the last known reset date.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi!
I Have a form with several objects with the XP theme (Application.EnableVisualStyles()) and When i add a WebBrowser object all the previous objects are showed with the normal appearence. Does anyone know anything about this? I've read that the webBrowser object isn't "themeble" but it seems to be affecting my app.
If i launch a new form from the first form (and the first form doesn't possess a webBrowser object) with several objects and a webBrowser object then, in the new form all the objects(but the browser) have XP appearence.
This is very strange.Can anybody help me??? I'm going crazy... :P
Never say never
|
|
|
|
|
There's a bug in VB.Net where it won't theme your form if certain controls are present such as a toolbar. Calling DoEvents() right after EnableVisualStyles() makes it work.
Example:
<br />
' Enabling visual styles turns on WinXP theme support.<br />
' XP theme won't be shown unless you call DoEvents() right after. Works-around an MS bug.<br />
Application.EnableVisualStyles()<br />
Application.DoEvents()<br />
|
|
|
|
|
Thanks a lot.Major bug in vb .NET.
where do u get the answers for these things?
Never say never
|
|
|
|
|
carlos_rocha wrote:
where do u get the answers for these things?
Oh, I just searched the Internet. A lot of people ran into this issue. Including myself.
I hope it worked out for you! Good luck!
|
|
|
|
|
Hy everyone!
I want to do the following:
I do have a Word document containing lots of tables with descriptions/infos in it. But there is lots of text in there, too. To avoid lengthening the document any further I chose to reference to other tables within this document or other table, so if I already described it in an earlier table I do only reference to this one.
So for example in table 10.9.8 I do reference to table 10.1.2 which contains the required information.
At the moment I have to scroll manualy to this table, get the required info there and scroll back to where I came from afterwards. Well as you might have guessed it's quit anoying to do it like this. So I would like to realize this "scrolling" with a macro which changes this "referencing mark" to a hyperlink to allow clicking on it, which "scrolls" to the desired location within the document. Well, I could have done this manually to, but well, this document changes around once or twice within 14 days, adding some more data, deleting it. And maybe I will port this macro to another similar document, to do the same there.
This means I will have to scan the document first for all the headers of each chapter, put (text)marks and then scan for references to change them into hyperlinks to them to allow clicking the links.
But at the moment I have no idea how to do so! I am quit familar to VBA for Excel, but I wonder if this could help in VBA for Word, too.
So I wonder if anyone of you did something similar or knows how to do this and wants to share his/her knowledeg with me!
Thanks.
Stephan.
|
|
|
|
|
Hi All
I am facing a very strange problem with my datagrid. I am using datagrid to display data and on selection of a row i m displaying complete information about that particular row. But if i click on the datagrid's blank area (no rows in that area), it automatically selects the first row.
Any solution so that it does not select any row when i click on the datagrids blank area.
Thanks
Sumit Domyan
|
|
|
|
|
Hi Sumit, I don't believe this is possible with the current Winform.Datagrid control. There is always a row selected. You might want to try a third party or freeware datagrid control to see if they allow this functionality.
hope this helps.
-jim
|
|
|
|
|
Hi
I´m trying to validate an AD path using the DirectoryEntry.Exist(ADsPath) method, however I can´t get it working.
The Exists(...) method only functions if I enter the path to a "root" object (top of the hiearchy), like:
DirectoryEntry.Exists("LDAP://myServer/DC=myDomain,DC=com")
or
DirectoryEntry.Exists("LDAP://myServer")
If I try to validate an object/path further down the hiearchy, an Exception is thrown ("Unknown error").
DirectoryEntry.Exists("LDAP://myServer/CN=Mikael,CN=Users,DC=myDomain,DC=com") <-- this object exists, but the function throws an exception.
Any help is appreciate.
//Mikael
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~
Give me a computer - and I will give you software.
//Mysti[Q]u
|
|
|
|
|
i have a two subroutines.I need to pass a value from one subroutine,and change the value of another variable.This change must reflect in the calling subroutine.This must me implemented with out using module variables.
pls help me to find a solution
|
|
|
|
|
could you post the "headlines" of your subroutines? Maybe in pseudocode.
Because I wonder what you do want to do with which value.
To me it sounds as if you want to do the following:
<br />
Sub Subroutine1()<br />
...<br />
Dim myvar as variant 'your variable<br />
...<br />
Subroutine2(myvar)<br />
End Sub<br />
<br />
Sub Subroutine2(myvar)<br />
...<br />
End Sub<br />
but I have no idea which value you want to change. Is this value another variable of Subroutine1?
Maybe some lines of pseudocode would help or please be a little more precise
*) where you do get the value from
*) which value of another variable (where is it?) you do want to change
Just try to describe the structure and/or actions in your program.
Because from my point of view your description is a little to general!
Stephan.
|
|
|
|
|
|
hello,
i am developing a term project of sending sms from web to mobile. i live in pakistan. i want to send message using publically available webservice for example "webservice.tiscali.com" but when i put this link in my project to run this webservice i do'nt work.i want a webserive which send message in pakistan and also worldwide. one pakistan mobile company name is mobilink which is internationl mobile company.
piece of code is this one
Dim s As New com.tiscali.webservices.TiscaliSMSServices
s.SendFreeSMS(Me.PhoneNo.Text, Me.Msg.Text)
MsgBox("msg sended")
before creating this object we have added the web refrence in project.
please send us link of some service that works and updated and recepient receieve the message in case if any webservice does'nt support for pakistan it even works for rest of the world.
waiting for ur early reply
ok
bye
|
|
|
|
|
Uhhh... your going to have to find a service yourself. Not all services work with all providers, so you're going to have to find various services and test them with your phone to see if they're going to work.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|