|
I have designed two forms, "compose page" and "read page", I designed one button "add" on the compose page, once it pressed, the requested things will be add in the "requested lists" field, at the same time, the record of that things in the stock(stored in a database) will be deducted by corresponding requesting number. Then press "send" to recipients. But this logic is abnormal, Normally, when the recipients receive the request email, he press "accept" on the "read page", and then stock record will be deducted. I dont know how to send out the "read page" to recipient by email. Please help me. Thank you.
|
|
|
|
|
i wanna ask how do i overwrite the contain inside the text file?
recently when i write it will continue my old information
strmw = OpenStreamWriter(filePath)
strmw.Write(vbCrLf)
'loop all the player status
For x = 1 To Val(NumPlayer.Text)
' write detail in the record
strmw.WriteLine(String.Format("Player:" & (x), Now))
strmw.WriteLine(String.Format(" Name: " & wpname(x).Text, Now))
strmw.WriteLine(String.Format("position:" & wPP(x).Text, Now))
strmw.WriteLine(String.Format(" MoveStep:" & wcounter(x).Text, Now))
Next
strmw.WriteLine(String.Format("whosturn: " & PTurn.Text, Now))
strmw.Close()
|
|
|
|
|
You can use the fileStream
* * *
Dim f As New FileStream(FileName, FileMode.Create, FileAccess.Write, FileShare.Write)<br />
Dim r As New StreamWriter(f)<br />
All the parameters with *'s above them can be changed to diffrent options such as reading or writing ect.
|
|
|
|
|
when i try to use this
Dim f As New FileStream(FileName, FileMode.Create, FileAccess.Write, FileShare.Write)
Dim r As New StreamWriter(f)
it said the filename not declared
how to use the *?
|
|
|
|
|
FileName is a string ... and is the file you are wanting to open/create/overwrite
so if the file and path is c:\bla.txt then
Dim f As New FileStream("c:\bla.txt", FileMode.Create, FileAccess.Write, FileShare.Write)
Dim r As New StreamWriter(f)
dont forget to close the streamwriter and filestream with FileStream.close and StreamWriter.close
|
|
|
|
|
the (f) having error
Error on : Array bounds cannot appear in type specifiers.
where or my streamwriter as i refer all not declare? wat happen?
---------
Dim f As New FileStream(Path.GetDirectoryName(Application.ExecutablePath) & "\save\testing.txt", FileMode.Create, FileAccess.Write, FileShare.Write)
Dim strmw As StreamWriter(f)
Dim wPP As Label() = ControlArrayUtils.getControlArray(Me, "PP")
Dim wpname As Label() = ControlArrayUtils.getControlArray(Me, "Pname")
Dim wcounter As Label() = ControlArrayUtils.getControlArray(Me, "counter")
Dim filePath As String = Path.GetDirectoryName(Application.ExecutablePath) & "\save\testing.txt"
Dim respond As MsgBoxResult
respond = MsgBox("Save game ???", MsgBoxStyle.Question + MsgBoxStyle.YesNo)
If respond = MsgBoxResult.Yes Then
strmw = OpenStreamWriter(filePath)
strmw.Write(vbCrLf)
'loop all the player status
strmw.WriteLine(String.Format("Number Of player:" & (NumPlayer.Text)))
For x = 1 To Val(NumPlayer.Text)
' write detail in the record
strmw.WriteLine(String.Format("Player:" & (x), Now))
strmw.WriteLine(String.Format(" Name: " & wpname(x).Text))
strmw.WriteLine(String.Format("position:" & wPP(x).Text))
strmw.WriteLine(String.Format(" MoveStep:" & wcounter(x).Text))
savegamesound()
Next
strmw.WriteLine(String.Format("whosturn: " & PTurn.Text))
strmw.Close()
|
|
|
|
|
It thinks that you are trying to create an array of stream writers:
Dim strmw As StreamWriter(f)
This should be:
Dim strmw As StreamWriter = New StreamWriter(f)
---
b { font-weight: normal; }
|
|
|
|
|
whn try to run the function, the record was written but when i try to run my whole system a few time but i didnt run the save function , when i check back the text file nothing inside...? wat happen with it?
|
|
|
|
|
What do you mean? What save function is it that you are not running? Why? What does it do?
---
b { font-weight: normal; }
|
|
|
|
|
dunno y my record was empty when i try to run my system a few time without saving... wat happen?
|
|
|
|
|
Dear Friends,
I have one simple sales and inventory control program. I would like to add in this project barcode system for some of the items. Can I enhance my system just adding this as a new future or else I have to do it as a separate project. Can u give me some hint how to use barcode system in the project. What is the logic for barcode system in VB6.
Please help me out in this technique.
Your quick response will be highly appreciated.
Thanks
Patel Murtuza
|
|
|
|
|
Hi murtaza h r u:
i have worked a lot at the barcode systems all u have o do is to download an barcode activex control from a site www.Fathsoft.com the add it aon ur project and do the same like give it a Daasource and Datafield property a get connected to the database and remember use the code 39 for barcodes.any problem just make a mail to me b there.
mani
|
|
|
|
|
Dear Zulnurain,
Thanks a lot for your quick response. I have downloaded the demo project for VB6 from the said website. But can you tell me how can I compare the item barcode with the one which I scanning at selling time so that I can take the salling and cost price of the item from the database. can u please explain with sample code.
or example I have one item name "camey soap" with barcode 1234567 how can i find the cost and sale price for this item from database while scanning the item.
Your quick response will be highly appriciated.
Thanks
Murtuza Patel
|
|
|
|
|
hi there u have to locate the BarcodeID in ur database which will display the information of the respective productName , listprice ,sales price etc i hope u worked with the Database.
i will b pleased if u add me in ur Yahoo Msnger list let me also now it if u got any prob
|
|
|
|
|
for Barcode System, Diff Barcode printers available in market. for example ARGOX, TSC, Zebra, SATO and much more.
Printing of Labels frm Printer is depend on PRN file.
Each Barcode Printer hv different .PRN File.
For Example: ARGOX Barcode Printer
1)First Load Argobar lite software and their drivers.
2)and through Argobar Lite software - make the lable of as per requirement of Label Width and Height.
3)USE in it Smooth Fonts then take PRN file.
4)and In that PRN file, pass variable from database
JUST like that diff. printers ve diff. Procedure.
Other Method is: If ur using Crystal Report then Directly make label as per requirement and pass variable in it. and for BARCODE lines printing take free download fonts for example CODE 39 or Code 128 for Barcode Printing.
And print it by any printer , Means Laser printing or anyother Barcode Printer
|
|
|
|
|
Hi, i have a problem with printing prn file to ARGOX printer..
i already generated prn file from ARGOlite software but when i print this file to ARGOX printer,
the result is not the barcode but, it show the content of prn file itself(syntax). But if i print directly from ARGOLite, the result is the barcode.
Is there any clue.??
Thanks
|
|
|
|
|
I have a button on the form... how can i set it when its clicked that it goes to "www.google.com" and that it opens it in current browser???
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
|
|
|
|
|
not sure adzactly but in vb6 you used the shell command
If you search in the object brower for shell the only 1 that pops up is
Microsoft.VisualBasic.Interaction.Shell(String, [Microsoft.VisualBasic.AppWinStyle], [Boolean], [Integer]) As Integer
Try searching msdn or google for a vb.net version
hope this helps a bit
|
|
|
|
|
nm i found it, it's very easy!!! as i though it will be wery easy buth it takes time to find it... here is :
System.Diagnostics.Process.Start(http://www.google.com):->
<blink>FeRtoll Software.net
------------
E-Mail me
WebPage
|
|
|
|
|
i want to show a powerpoint presentation and move slides using "back", "next" buttons (these buttons r in my form).
i have some ideas.
1. i should embed the file, but there isn't OLE object
2. i can run and command the powerpoint.
shell("c:\program files\microsoft office ...\powerpnt \s """ & c:\slide.ppt & """")
but i can't move slides using my command buttons. because slide is in another application.
3. i can dde link with powerpoint but i don't know how i can do, and i don't know commands. (i think, it is the best way)
i can't go more. plz help!! do u have any idea, could u write.
-- modified at 19:43 Friday 24th March, 2006
|
|
|
|
|
I have not tried this myself, but it should be possible to automate a PowerPoint application from another.
You'd need to instantiate the PP application object from your program and then send commands to it via the PP API or object methods.
I know this is fairly easy with VS 2005 and Visual Studio Tools for Office 2005, but don't know how easy it is in prior versions of VS or VB.
Have a look at the MSDN[^] web site (especially the VSTO section for Office applications). Maybe there will be a sample or something to help.
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
I am trying to show a winform window using threads like this
Dim aFrmAlertPopUp As New AlertWindow(messages, altSysOrigin, alertId, BgColor, userAlias, altTeamMember, altAlertType, "SAS", Me.ControlToUpdate, "", alertGUID, alertCaseNO)
Dim backgroundThread As New Thread(AddressOf aFrmAlertPopUp.display)
backgroundThread.Start()
The Class AlertWindow works like a msn messenger warning window, when I instantiate I pass the values to the class
then I call the method display that will load values and display the window
this is how it was before (when it was actually working)
Dim aFrmAlertPopUp As New AlertWindow(messages, altSysOrigin, alertId, BgColor, userAlias, altTeamMember, altAlertType, "SAS", Me.ControlToUpdate, "", alertGUID, alertCaseNO)
aFrmAlertPopUp.display
Now, when I call backgroundThread.Start() it doesn't work
is the thread.start() the right call?
Am I doind anything wrong?
thanks
|
|
|
|
|
Standard question #1:
What do you mean by "not working"?
Standard question #2:
What error message do you get?
---
b { font-weight: normal; }
|
|
|
|
|
After searching many sites trying to find a free custom propertygrid / propertylist i have come up empty handed, there are a few for c++ but nothing free for vb.net. I reason i am looking for a free propertygird is because i want to use it in a open source project i am working on.
So i decided to have a go at creating one myself... this being my first custom control that i have tried to create its proving to be a chalange. Ok any anyways lets see if anyone can help me with a few problems.
I have a collection for Categories and a collection for Entries.
Cateogies are like the headers as such with the + - in the propertygrid
The entry collection is a object. I then set the object to say ie a textbox entry or a progress bar entry...
This has all gone well so far.
Problem/Suggestion 1
I basically draw the lable on the left, value on the right using drawstring. When i click on an entry i then dynamically add a textbox basically the size of the value side. I set the focus to the textbox. Set the value of the textbox and hide the border amoungst other things. Is this the best way of doing this? This method works, but seems a bit clumsy when font size changes. I was thinking that maybe instead i need to capture keypresses and use draw string to draw changes unstead of using a textbox.
Problem/Suggestion 2
I am going to use the render part of controls to draw the progressbar and buttons. But a control i am slightly lost with adding as an entry is a combobox. I can add the combobox like i did with the textbox above but i cant resize the combobox small enough to the size i would like it without it screwing up. Using the renderer i can draw the button for the combobox but yea i dont know how to draw the actuall box part. I started to experiment with adding a usercontrol with say a listbox and then showing that as the drop down part. Does any 1 have any suggestions on this?
Problem/Suggestion 3
I supose i will at some stage want to show tool tips for half hidden lables or values ... any one know where to begin on this?
if u would like to see what it sort of looks like atm
http://gtools.sourceforge.net/pg.JPG
the horrible choise of colours is just to see where things are drawn
Thanks
|
|
|
|
|
Hi, please feel free to add, modify and use source code from my recent article:
http://www.codeproject.com/useritems/PropertyGridEx.asp
Kind Regards
|
|
|
|