|
Great! Exactly what I was looking for. Many thanks friend
Aim small, miss small
|
|
|
|
|
tatchung wrote: I'm very new to VB6
I feel sorry for you. VB6 has been dead/unsupported by Microsoft since March 2005. You may want to become more familiar with VB.NET/C#, just a friendly suggestion
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Paul Conrad wrote: I feel sorry for you
Indeed...
Paul Conrad wrote: You may want to become more familiar with VB.NET/C#
I'm actually quite familiar (but not near an expert) with .NET framework although management requires me to do this using crappy vb6. This app is actually like a trouble ticketing systems that allows certain users to display records, validate codes etc and provide resolutions. Problem is the records are not really database driven...rather file based using SSH. Yeah I know...problematic either way
Paul Conrad wrote: just a friendly suggestion
Many thanks for the concern. I greatly appreciate it
Aim small, miss small
|
|
|
|
|
tatchung wrote: management requires me to do this using crappy vb6
I really feel sorry for you, then.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Need to retrieve treeNodes during the pageload event. It should be built within for loop.how to write the code to find out which child belongs to which parent . i'm confused Whether sp can be written to get child for the parent or. for loop to be written to solve this problem. suggest me one idea.
spriya
|
|
|
|
|
Do you understnd what you Wrote?, Do you think someone can understand it? when you have a problem and you want to post it in the forum, make sure that you have tried something and post the code of what you have already done , and tell us where you got stuck and we will help you , we cannot do your job for you.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hello all,
I'm trying to help my sister do a simple window form application here for her grocery shop. I'm using Visual Studio .NET 2003 to create a Point Of Sales System for her shop.It is connected with MySQL 5.0 Database. I'm trying to doing a system planning and researching about this coding here.
Anyone can provide me some information or sample how can I detect a parallel receipt printer or barcode printer using VB.NET? I need this Window Form Application to detect the receipt printer,if the receipt printer is not turning on or plug into the workstation,it will prompup and request the user to check it.
Hope someone can help me on this problem. Thanks for reading.
Regards
Drexler
|
|
|
|
|
It is possible to detect if a device is plugged into the LPT port, but not natively though VB.NET.
I have been doing something similar using a free DLL called "IO.DLL", which gives you direct access to the ports required to do what you are wanting.
http://www.geekhideout.com/iodll.shtml[^]
To see if the printer is availiable, you need to query port &h379 (LPT1 Control Port), and I think it is the second topmost bit (&h40) that says if the printer is attached and ready or not.
I cant be much more help than this I'm afraid, but it should have some real good pointers to get you going.
modified on Friday, July 11, 2008 5:31 AM
|
|
|
|
|
Sorry,I still can't figure out how should do this detection for my receipt printer and barcode printer here. Anyone can give me further detail or sample for the above code?
Thanks for reading.
Regards
Drex
|
|
|
|
|
Hi everybody,
i have a "little" problem with this function in my class:
Public bPayLoad() As Byte
Public lCount As Integer
Public Sub New(ByVal b_PayLoad() As Byte)
bPayLoad = b_PayLoad
If Not (b_PayLoad Is Nothing) Then
lCount = bPayLoad.Length
Else
lCount = 0
End If
End Sub
If I create a new object of this class and pass the ByteArray B() to it why does the objects bytearray change when i change B()?
thanks for your help and sorry for my bad english
|
|
|
|
|
Because the array is an object. You are passing a reference to the array by value, that only means that the reference is copied, not that the object is copied.
If you want a copy of the array, you have to create a new array and copy the data to it.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hello,
Maybe a stupid question.
Is there a possibility to change the shape of a command button from rectangle to a circle (round button)
If yes, is it standard or do i have to add something 3th party
If it is not possible in VB 2005 is it posible in VB 2008 ?
Thanks
DCA
|
|
|
|
|
|
If I have a method which writes to a byref parameter without reading it first, is there any way I can indicate that the compiler shouldn't warn about uninitialized variables being passed to it? I'd expect it's probably something simple, but I searched and couldn't find it.
|
|
|
|
|
Depending on which VB you are using:
VS2008: Go to project properties, under the compile tab you should see a list of warning configurations. Change them to how you see fit.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
I'm using vb2005. I don't want to disable the warning globally. I merely want to indicate that in certain particular instances a certain parameter should be considered 'output only'.
|
|
|
|
|
I am not sure if the changes made in the project properties will become global defaults or not. You can always try.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Try using Out instead of ByRef .
From this page[^]:
Output parameters are very similar to reference parameters. The only differences are:
The variable specified on the invocation doesn't need to have been assigned a value
before it is passed to the function member. If the function member completes normally,
the variable is considered to be assigned afterwards (so you can then "read" it).
|
|
|
|
|
VB doesn't have an 'out' keyword like C#, but you can use an attribute:
e.g.,
Public Sub Test(<System.Runtime.InteropServices.Out()> ByRef i As Integer)
David Anton
http://www.tangiblesoftwaresolutions.com
C++ to C# Converter
C++ to VB Converter
C++ to Java Converter
VB & C# to Java Converter
Java to VB & C# Converter
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: convert VB, C#, or Java to C++/CLI
|
|
|
|
|
Oh! Thanks, I wasn't aware of that.
|
|
|
|
|
I currently have a report which contains both detail values and subtotal values. What I am trying to do is find the minimum values for the subtotal value. It works fine if I want to find the minimum of a detail value, but when I try to do it for the subtotal value, the Formula editor returns a "This field cannot be summarized." error message.
The formula is: Minimum ({@subMaxFlavorPct})
|
|
|
|
|
I want to add a string to the beginning of my array and still keep the existing strings in the array.
I'm thinking it has something to do with moving the existing items down.
Can anyone help me with this?
|
|
|
|
|
You could move all the items in the array down one by one, but performance-wise that's probably not the best way. You could reverse[^] the array, add the new item, and then reverse the array again, which, depending upon arrays are implemented in .Net, may or may not provide any better performance.
If top performance is a priority, use a linked list[^] or Data Structures : Part 1 - Singly Linked Lists[^][^].
|
|
|
|
|
Hi,
an array can't do that without a performance hit, since all its data has to be moved.
That is exactly why they invented all those other fancy data structures, such as linked lists.
Now linked lists may be too expensive for your needs (depends on how often you want to prefix something
to a loaded array). If only seldom, I would suggest a linked list of arrays, i.e. each node in the
linked list contains an array. So you would start off with a single node containing the original array,
then prefix one node with the one new data item in a single-element array.
Of course, whatever you choose, if it is not an array, then you may not get some of the nice features
an array offers, such as fast indexing, automatic sorting, reversing, etc.
|
|
|
|
|
You can't add anything to an array, as it can't be resized. You would have to create a new array and copy all the data from the current array.
For a collection with a dynamic size, you should use something like a List(Of String) instead. Although you can insert an item at the beginning of a list, you should consider adding it at the end of the list intead, as that doesn't mean that every item in the list has to be moved. Which end of a list is which, only depends on how you look on it. You can just as easily loop from the last item to the first, in which case the last added items comes first.
Perhaps even a Queue(Of String) would be better for what you are doing.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|