|
I want to preview the cursor file when I click a button or something, after the user gives the path of the .cur file, does anyone know how to?
|
|
|
|
|
|
I tried renaming it to a .ico file but it didn't work, I just want to convert it to an image to get a preview of it.
|
|
|
|
|
How exactly do you think changing the extension on a file name will affect the content? Follow the link I provided and see what you need to do to read a cursor file and interpret (and display) its content. .NET even contains a class to do most of the work for you: Cursor Class (System.Windows.Forms)[^].
|
|
|
|
|
Thank you I'll refer to it! But I tried to load a cursor file using these methods, it didn't give any errors but at runtime it says that the cursor file is damaged. I even tried system cursor files! I just want to give a preview of the cursor to the user, changing the mouse pointer is enough, don't need to view a preview on a picture box.
|
|
|
|
|
|
What is a filr? Those examples should work with a valid .ico file of the correct size.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Yeah youre right i should just stick to the lessons rather than try to do new things, that was files by the way, i've mistakenly typed it as filr! Thanks!😐
|
|
|
|
|
Member 12901689 wrote: that was files by the way, i've mistakenly typed it as filr! Could have been some new kind of file-type I never heard of
Member 12901689 wrote: Yeah youre right i should just stick to the lessons rather than try to do new things, Not everyone is here to learn; some people get impatient if they don't make any progress. If you change your username to something that I can remember, then I'll try to be answering with a bit more detail next time
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Thanks for the advice, I'll read the articles and try them, I changed my name by the way, thank you very much!
|
|
|
|
|
In a vb.net 2010 application, I have the following code setup so far:
Dim _dtEmailaddress As DataTable = SelectEmailAddress(_dtPersonID(0)("SPA_PersonID"))
Dim _email As String = String.Empty
If _dtEmailaddress.Rows.Count > 0 Then
If IsDBNull((_dtEmailaddress(0)("email"))) Then
_letter = _letter.Replace("&SPA_EMAIL.EVAL", "")
Else
_letter = _letter.Replace("&SPA_EMAIL.EVAL", _dtEmailaddress(0)("email"))
End If
End If
I need to be able to check for email addresses that end with '@opd.org' in the reference called _dtEmailaddress(0)("email").
Thus can you show me the vb.net code so I would know how to use only email addresses that end with '@opd.org'?
|
|
|
|
|
Pull the email address from the relevant field and check for the address you want to test against.
|
|
|
|
|
In addition to Richard's answer...
Becasue _email variable is type of string, you can use string functions, such as EndsWith, Contains, etc.
If _email.EndsWith("@opd.org") Then
End If
|
|
|
|
|
Thanks! That answers my question!
|
|
|
|
|
demonstrate the following add function and view list of applicants
|
|
|
|
|
Imagine me, sitting here, probably thousands of miles away from you, reading your question, knowing nothing about what you want to do and what you need help with exactly.
After reading your question (which isn't even a proper question) I have no clue how I could possibly help you.
If you want to be helped, please put some effort into your question(s).
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
This is not a homework service. If you do not understand the assignment, please consult your tutor.
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
Start by assuming that your teacher is reading this, and taking note of your multiple attempts to cheat on your homework.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
How to create a school database using own code. the program should update and display
|
|
|
|
|
|
Hello
I am working with a piece of VB6 code that reads data from an instrument through the USB port.
The instrument uses an FTID USB chip and the data is read by the host byte by byte from the USB bus using a driver supplied by FTID.
Each data byte is returned as a string character and then converted using the function Asc(string).
The problem is that on Windows 10 machines running chinese, the data returned is corrupted.
I think this may have something to do with the longer (2 bytes per character instead of one) character coding used for chinese but I have not been able to understand the issue.
Any suggestions?
|
|
|
|
|
Use AscW instead.
AscW returns the Unicode code point for the input character. … The returned value is independent of the culture and code page settings for the current thread.
(The documentation is for VB.NET, but the same comments apply to VB6.)
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thanks Homer.
I tried AscW(string) but I still get the same error. For example:
instead of reading 0 22 129 0 22
in the chinese PC I get 63 63 63 0 0
I also tried changing the regional settings in the PC to English but that did not work either.
|
|
|
|
|
How about AscB ?
But really, if you're going to be converting bytes to and from strings, you should be using a format like Base64[^] instead.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
AscB no good either. Thanks.
|
|
|
|