|
Thx for answer now it's working with the Assembly method but If I can correct you, here is the working code :
<br />
Dim myAssembly As System.Reflection.Assembly<br />
Dim myStream As System.IO.Stream<br />
Dim myImage As Image<br />
<br />
myAssembly = System.Reflection.Assembly.GetExecutingAssembly<br />
' The resource name is Case Sensitive !<br />
myStream = myAssembly.GetManifestResourceStream("myProjectName.icon1.ICO")<br />
myImage = Image.FromStream(myStream)<br />
Does any1 know with my little icon (48x48) are small in my toolbar ?
|
|
|
|
|
Thanks for ur correction.
You have to set the Button Size as well as the ImageList's ImageSize property.
By default its value is 16 by 16.
|
|
|
|
|
Hi, i have a big question i think ! How i can make a communication with a casio cash registers device with a computer program using visual basic.net (or any other language !), please if there is any API for this purpose tell me please !!
|
|
|
|
|
No API built into the .NET Framework or Win32, but you might want to get the docs on the cash register. If the cash register has a serial port on it, and you have sufficient docs on what the register understands, you might be able to write your own communication class for the register.
RageInTheMachine9532
|
|
|
|
|
You can communicate with some models of casio electronic cash register (ECR) using serial communications.
When I say some, I believe that certain models require an aditional comms board to be fitted.
You will also require the protocol manual for the specific model of ECR to understand the format of the data to send.
An understanding of how to manually program the ECR would help you understand the protocol manual.
If you have no experience of this technology then you probably have a steep learning curve ahead.
Have you climbed the north face of the Eiger?
Regards
Wayne Phipps
____________
Time is the greatest teacher... unfortunately, it kills all of its students
LearnVisualStudio.Net
|
|
|
|
|
Hi,
I'm creating a little application with multiple screen but I don't want to user MDI window.
So I've got the idea to use TabControl tu design each window I need for my application.
Second Point, I want to change the tab by pressing a button on the main window or by selecting option in the menu.
All is working fine. The next step is to hide the Text Label of each Tab. I haven't find any option in the tabcontrol ot act this way.
Does any1 know how to do this !
Thx
Sybux
|
|
|
|
|
Do you wan't to hide the Text or the Tabs? Text is easy, just don't put in any Text, you'll end up with blank tabs.
Hiding the tabs is a little more complicated. Basically, you can't using standard methods. You could try moving the tabs up off the top of the form, under your menu bar, or, under some other kind of control.
You could probably use some third party tab control that has that functionality, but I don't know of any. Or you could get imaginative and hide the tabs behind another control on the form, even if was just a blank panel control, or something like that.
RageInTheMachine9532
|
|
|
|
|
Thanx for the suggestion. in fact I've found what I was looking for : Panel.
I now use Panel to put all control I need and I use a toolbar with this button to change panels.
panel1.bringtofront() etc....
Bye
Sybux
|
|
|
|
|
While using Excel, I imported text file as an object (imported as OLEObject).
I want to export it back to a text file. I can copy it to the clipboard, but I don't know how to copy it from the clipboard to a path.
|
|
|
|
|
Wouldn't it be alot easier to tell Excel to export the information back to a text file using the SaveAs function? You'd save yourself the work of writing code to go to the clipboard and import the Excel sheet data that's on it (not text!), parse it up to get the text and then write it out to a file.
RageInTheMachine9532
|
|
|
|
|
I checked this option, but it seems that I can't use SaveAs function for OLEObject. Can you write me the code lines of how to save OLEObject (that contains one item - which is text file) to text file? Thanks
|
|
|
|
|
I think I misunderstood you before. Your saying that you imported the text file and kept it an OBJECT in the worksheet? You did NOT import the text into the worksheet?
If that's the case, could you import the text as text, not an object, onto a newly created blank worksheet, then use SaveAs on the worksheet object?
RageInTheMachine9532
|
|
|
|
|
I imported the data as an object, since the data file has more lines than the sheet. Hence, importing the data into blank sheet will not be good.
|
|
|
|
|
OK. Now I'm a little confused...
Are you saying that the text your importing is NOT integrated into the worksheet data? Or are you scanning the data yourself and importing sections of it?
Now, are you putting the modified worksheet data back into the text file?
Or are you putting the original text file back on the clipboard from Excel and treating the text file something like an email attachment?
RageInTheMachine9532
|
|
|
|
|
I have a big text file (standalone). I want to analyze the data in it.
In order to analyze it, I need MS Excel. I wrote a macro that reads the data from the text file into array, analyze the data and at the end import the text file as an OLE Object (from Menu bar I Choose Insert, then Object and then the file name). I can't paste the text file to sheet, since the number of lines is text file is bigger than the max number of lines in Excel sheet. Then I save the Excel file. I have a sheet that contains an object in it.
I send this Excel file. Now, I assume that I get the Excel file.
I open the saved file. I want to analyze only part part of the data.
I need to read the text file into the array. The text file is located in the sheet, and I don'd know how to read data from it. If I will copy this text file outside of the Excel, I will know how to read it.
I need the code to copy this textfile outside of the excel. (I succedded to copy the text file to the clipboard, but not from the clipboard to the desired directory. Thanks
|
|
|
|
|
Well, I've found out the you can't programatically get to what you want to do. In order to save the object back to a text file, you have to righ click the object icon, select Package Object, then Edit Package. A new window will open up called "Object Packager". From here you can select File|Save Contents to resave the text file back to an actual file. The problem is, you can't programatically control the Object Packager.
I think you'd be better off importing the text into a second worksheet in the same workbook, but you'd have to do the importing yourself, one row for each line of the file and when you run out of rows, go to the next column and go down the rows again, and repeats this until you run out of text file. Then, you can write another macro to do the same thing, but write out the text instead of reading it.
But, the bottom line seems to be keep the files seperate and have Excel import the data you need when you need it.
RageInTheMachine9532
|
|
|
|
|
|
hello
can anyone help me?
i wish to build a form where the user will type in a book name
then when user press the button, there will be a image of the book on the pictureframe
how to set the form to get the picture that i wanted from a folder?
can any please help me?
your help is much appeciated
thank you
|
|
|
|
|
you can set the 'picture' property of a picturebox object on your form to any image that you want, ex: myPictureBox.picture="myPhoto.jpg"
if you want to get the image from a subfolder in the applications' folder, use something like: myPictureBox.picture="\images\The Book of Stuff\cover.jpg" or
myPictureBox.picture=CurDir() & "images\The Book of Stuff\cover.jpg"
this is probably very obvious and probably u've already tried this method.
if this doesnt help, supply more detail, id like to help.
------------------------
Jordan.
III
|
|
|
|
|
sorry for the late reply
thank u for your help by the way im using vb6
yes i have try those
is working perfectly
my lecturer want me to do a book searching
example
VB 6.0 will show the book picture
VB.net will show other picture
to do this i have set the picture name in the database
but she says that this is a noob way to set it
my db is like this
book=vb.net pic=vbnet.jpg
she want me to delete the pic column in the db
that means all i can do is
try to tell the program to get the picture once i enter the name(VB.net)
n the picture will show up without refering to db(pic column)
is this way possible?
thank you for your help Jordan
|
|
|
|
|
sorry, i dont understand that.
how about u paste some of your code or email me your project .zip'ed if its too long to paste.
nadroj_@hotmail.com
------------------------
Jordan.
III
|
|
|
|
|
Hi,
Regarding the Data binding, How can i communicate to use the data binding with User Control in VB.Net.
If I have a User Control that I want to make it ready for data binding, means if i put a texbox in the form, I can bind the textbox to the usercontrol's property. Is that this possible get it.
Hope that you all can give me some example to do that.Please help me.
Thanks & Regards.
|
|
|
|
|
You can bind your UserControl to the Textbox's Text property (or any other properties).
Here's an example:
UserControl1.DataBindings.Add(New Binding("UserControlProperty", TextBox1, "Text"))
Check MSDN on Data Bindings[^] for more information.
Edbert P.
Sydney, Australia.
|
|
|
|
|
I have developed a program that I need to convert to run under windows XP but I can not find out how to autorun a program under xp for a limited user neither, the all users startup directory option or the run registry keys seem to work.
Any help would be gratfully appreciated
|
|
|
|
|
Well, those are the options you have. If the user is a member of the local Users group, running from StartUp or the registry is not a problem.
What is so limited about this user? Do you get any error messages when you try to run the program from the Startup or Registry? Are you having installation problems with error messages?
RageInTheMachine9532
|
|
|
|