|
No. You won't get finished code from here very often, unless you catch someone who's in an exceptionally good mood. If you want a pointer in the right direction, look at this article: Beginners guide to accessing SQL Server through C#[^]
Between the idea
And the reality
Between the motion
And the act
Falls the Shadow
|
|
|
|
|
Hi
In my program I would like to use a cursor from windows\cursors. In the Load event I use the following code:
Cursor = New Cursor("c:\windows\cursors\3dgarro.cur")
(This is a built-in cursor of Windows.)
However, the result is a plain black arrow instead of the 3D golden one. (I tried with other cursors too, the result is always a black arrow.)
I have no idea what the problem is. Any advices would be welcome.
|
|
|
|
|
In my windows folder I don't have a golden cursor.
Maybe extra cursors like that are extra ones you have the choice of adding when you install Windows? Although I have never seen a golden one. What version of Windows are you using?
If everything was not true, would it be not true that everything is not true? So by saying everything is not true, you are automatically denying that everything is not true. Im so confused...
FreeDOS
- An open source modern
MS-DOS/PC-DOS replacement.
|
|
|
|
|
Perhaps the Golden Cursor is a close relative of the Golden Rivet?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
The problem is not about the golden arrow, it does not work with any cursor.
(Anyway, the golden arrow was installed with my XP Prof by default, not optional, no extra-pack or sg like that.)
|
|
|
|
|
I know a way to do what you want, but it involves using the P/Invoke capability of .NET.
Here it is in C# (I will try to convert it to VB for you but I don't use VB very often, so I may make a few errors), in case another kind CPian will convert it properly.
C#
[DllImport("user32.dll")]
static extern IntPtr LoadCursorFromFile(string lpFileName);
static Cursor ColoredCursor;
static ColoredCursorForm() {
IntPtr cursor = LoadCursorFromFile(@"c:\windows\cursors\3dgarro.cur");
ColoredCursor = new Cursor(cursor);
}
Better than me translating it take a look at this (pinvoke.net)[^], scroll down a bit, you will find a VB example. This is a very useful site, I suggest that you bookmark it.
Good Luck!
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I used the following code:
Declare Function LoadCursorFromFileA Lib "user32.dll" (ByVal lpFileName$) As IntPtr
Sub LoadCur()
Cursor = New Cursor(LoadCursorFromFileA("c:\windows\cursors\3dgarro.cur"))
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
LoadCur()
End Sub
It works perfectly with every cursor file (even animated ones). Thanks!
|
|
|
|
|
This Solution worked, but only after I figured out that I needed to put my custom cursors in the c:\windows\cursors folder.
Thanks for the tip.
|
|
|
|
|
Hi Everyone,
I am searching for an app or code that will click a required text link on the screen. (i.e) I have a list of names and the program must (1) pick each name from the file (2) search the name in a web page in a browser (3) Once the name is found, click on the name (the names are text links to pages) (4) after some delay, get back to the previous page.
I am not sure where to start from.
Any help would be greatly appreciated.
Thanks.
|
|
|
|
|
Member 2056609 wrote: I am searching for an app or code
The world is a cold and heartless place.
However, we are here to try and warm it up just a little bit, and the title of your post suggests that you have already tried something yourself.
What have you got so far?
My advice is free, and you may get what you paid for.
|
|
|
|
|
Frankly, I have only extracted the list of names that has to be searched (a different part). Haven't done anything constructive in the mouse click part, since not sure where to start from.
Sorry for the empty hand reply.
Thanks.
|
|
|
|
|
Okay just a few pointers in the right direction:
1. Forget the mouse click event
2. Slap a browser control on your form
3. Research how to read through a webpage's content
4. compare your search list to the content of the web page
(5. Store your original url in a variable somewhere)
6. Research how to extract the url from a link on a webpage
7. when a link is found, set your browser control to go to the url of that link
8. after a while tell the browser to go back to the original page.
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi all...
I am creating a small project in VB.NET(VS2005). There I used wmp.dll library for playing media files.
Now, while playing a song by using that library, I wanna record that sound through output because I wanna mix that song with some other sounds.
Suggest me how can I do that.
Thanks
Gagan
|
|
|
|
|
That does not begin to make sense. You can't record using the output, you would use the input to record.
If everything was not true, would it be not true that everything is not true? So by saying everything is not true, you are automatically denying that everything is not true. Im so confused...
FreeDOS
- An open source modern
MS-DOS/PC-DOS replacement.
|
|
|
|
|
No Lloyd, in Windows one can record any output sound by using a sound or voice recorder and by doing some setting mannually.
Open volume control->Options->Properties
There select recording radio button and check "stereo mix" and "wave" checkboxes.
Now you can play any sound and by using a sound recorder, you can record that output sound.
I wanna do the whole same thing by programming not mannually. I wanna record any output song (not input) through vb.net programming. How can I do this??
Thanks
Gagan
|
|
|
|
|
Well that still does not make sense
However, if you mean any sound the computer makes you wish to record, then I don't really know if this is possible through code.
If everything was not true, would it be not true that everything is not true? So by saying everything is not true, you are automatically denying that everything is not true. Im so confused...
FreeDOS
- An open source modern
MS-DOS/PC-DOS replacement.
|
|
|
|
|
hi
i have problem to record wave output, can i help me please to record sound output cardsound
thanks
|
|
|
|
|
Hi
Im doing Texas Holdem poker program where player plays against the machine. Problem is how the software can know who has better cards.
There is 5 cards in table and both players have 2 cards. Program must decide who has the better hand or are hands similiar.
Thanks
teemuuu@hotmail.com
Finland
|
|
|
|
|
Google for "Poker Hand Evaluation". You'll find examples in all kinds of languages. Basically, each hand is going to be assigned an integer representing the strength of the hand. Which ever number is higher, wins. Anyway, this is where you have to do a bunch of research on various algorithms and implementations.
|
|
|
|
|
I am trying to create a contact us page on my website which will send the info entered to my email address using SMTP.
I got the following error:
the SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.
Which fields do you think this is referrring to? (server, host, port, recipient, sender, etc?)
|
|
|
|
|
your smtp server requires logon...it has nothing to do with the mail itself.
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
|
|
Hi
I want to get ip addresses and usernames using filesystemwatcher , who access server files.
Thanks,
Regards,
Vijay Kumar
India
Vijay
|
|
|
|
|
Since there is no link between a file on the server and the machine name that created it, this isn't possible.
|
|
|
|