|
Yes, I'm sure they would be Inforcing a group policy on the printers, and when you log into the domain the policy automaticly set's your computer also.
Before I go on...
Where is the physical printer at, your place or at work?
|
|
|
|
|
The printer is at my workplace, I just add printer, it's shared from an old server, I looked it up and added it. I can obviously print ok. I can set duplex printing from Word, and print in the normal way. I just have to be able to set duplex on and off from code for some special cases.
BTW, would you rather email me to save time on here? chris.nurse@justice.wa.gov.au
Thx.
Nursey
|
|
|
|
|
I can give your email a try, but I am on the other side of the world from you in the US, so It may be faster to us CP, but I'll give it a try and see.
|
|
|
|
|
Can I just ask, did you actually step the code and look at all the dll last error codes? If so are you saying you didn't get any occurences of error 5 anywhere?
Ta!
Nursey
|
|
|
|
|
Yes I stepped through the code, And No I got No error 5's except in the situation of the XP machine on the network in previous message.
Also,
The last meassage was supposed to read:
From a command prompt, type
NET USE LPT2: \\<printer server>\<printer> /persistent:yes
to map the local LPT device to the network printer.
|
|
|
|
|
G'day All,
My checkbox unchecks itself when I programatically change the data in the underlying record from within the CheckedChanged event
Private Sub chbActive_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles chbActive.CheckedChanged
If chbActive.Checked Then
'Set name to 'Bert'
Dim Pos As Integer = Me.BindingContext(Me.Ds_Students, "Students").Position
Dim dv As DataView
Dim strExp = "StudentCode = "
Dim sc As String = CType(Me.Ds_Students.Students(Pos).StudentCode, String)
strExp += sc
dv = Me.Ds_Students.Students.DefaultView
dv.RowFilter = strExp
dv(0)("Name") = "Bert" 'This line causes the problem
End If
End Sub
When clicking on the checkbox chbActive the checkbox initially displays a check, but after setting name to Bert the checkbox unchecks itself.
Can anyone please explain why?
Please send replies to craigandrow@ozemail.com.au
Regards,
Craig
|
|
|
|
|
Check if you have a code in DV_Change or any other events that occure when dataview changes, that sets the value of the checkbox.
(check it by running this sub, line by line using F8 key, then you could correct this problem)
|
|
|
|
|
How do you superimpose a datepicker into a datagrid.
|
|
|
|
|
This shows how to add a datetimepicker to a datagrid.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsdatagridcolumnstyleclasstopic.asp
|
|
|
|
|
hello there -
i have a bitmap image, saved in an byte array to transfer this to the network.
up to now, i realised this by the remoting technology of .Net. i just called a
function of my remote client with a byte array parameter.
if i do this with just one client - everything works fine. i got an image transfer rate
of about half a second (i want to transfer the screenshot of my desktop and try
to get a smooth motion).
but my application will run with about 10 to 20 clients and therefore i will have
a transferrate of 5 to 6 second per image, what is definetly to slow. at the
moment i just run through an array of my clients, as you can see in the following
code:
Public Sub _captureScreen()
Dim i As Integer
Dim user As IClient
Dim screenTime As DateTime
Dim duration As TimeSpan
Do While keepRunning
screenTime = DateTime.Now
Dim getScreenShot As Interfaces.ScreenShot
Dim ic As Byte()
Try
Dim screen As Image
screen = getScreenShot.GetDesktopImage
'Ein MemoryStream wird deklariert
Dim ms As New System.IO.MemoryStream()
'Das Image wird Byteweise in den MemoryStream gespeichert
screen.Save(ms, System.Drawing.Imaging.ImageFormat.Png)
'Das sich im Buffer des MemoryStream befindliche ByteArray wird im ic
gespeichert
ic = ms.GetBuffer()
'Der MemoryStream wird freigegeben
ms.Flush()
ms.Close()
ms = Nothing
screen.Dispose()
screen = Nothing
Catch e As Exception
MessageBox.Show(e.ToString)
End Try
For i = 0 To server._clients.Count - 1
user = server._clients(i)
Try
SyncLock user
user._giveServerScreenShot(ic, server.guid)
End SyncLock
Catch e As Exception
server._reOrgArray()
End Try
Next
ic = Nothing
getScreenShot = Nothing
duration = DateTime.Now.Subtract(screenTime)
server._schoolMain.screenTime.Text = duration.ToString
Loop
End Sub
so, has anyone any idea how i can optimize my image transfer rate?
thanks for all help.
tom
|
|
|
|
|
I knew you were going to run into this problem. The solution is to not transfer the entire screen image. Only transfer the parts that change. But to do this, you'll have to come up with two schemes. One, to "bounding box" the parts of the image that changes, keeping in mind that you can have multiple areas of the screen that change, and... Two, a protocol that transfers just the parts that change and can be reassembled on the server side.
You really should have done some homework on the concept first. Search the web for "VNC". You'll find a bunch of remote control software, including screen shot transfer, with most of it being publicly available with source code. Try http://www.realvnc.com/[^] or http://www.tightvnc.com/[^] for a couple of examples.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave - you really are my man! you always answer my questions and i appreciate that very much. thanks for this! i hope i can do something for you, when the time comes and you need help.
well, i look about thread pooling and i think this could be a good solution. running maximal 40 threads at a time in a threadpool is acceptable i think.
problem is: i didn't really get the clou about how the pooling is working.
|
|
|
|
|
well - after long try out, i am now at the point to send my graphic as udp-broadcast. problem is: the graphic is to large for one udp packet. i want to split the graphic in for sections, send these section and build them together on the other side. but i dont know how to cut bitmap and then rebuild the pieces to a whole again. do you have an idea how this can work? i guess you have. you always have.
|
|
|
|
|
we have a design project wherein we have to make a visual basic program that is interfaced with the parallel port. what is the requirements or needed files for us to interface with the parallel port of a computer? what are the code for every pin on the parallel port.
i hope some one can help me with this. thanks a lot!
|
|
|
|
|
|
thanks a lot sir dave! but i need the codes for the visual basic 6 or . net (but preferrably vb 6) and using the windows application. i hope that you could help me again. thanks again!
|
|
|
|
|
All you need to do is search the net for "vb6 parelle port" and you'l come up with all kinds of tidbits on the subject. Try http://delabs.topcities.com/cirdir/data2.html[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
HOW TO: Access Serial Ports and Parallel Ports by Using Microsoft Visual Basic .NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;823179
|
|
|
|
|
thanks a lot sir anonymous, but i need is the windows application of .net. we have a program that set the time when will a switch will be open or close through the output of the parallel port. i know that the parallel port's output is about 5 volts. that voltage is will be connected in a relay that is also connected to a female plug. i really appreciate the help that you gave to me. Thanks a lot guys!
|
|
|
|
|
This will work is you wanted to read/write data to the port. But for a hardware "switch" application, you'd need I/O port-level access to the COM and LPT ports for it to work properly.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi again,
I have 2 grids on my form. One of then is populated from a dataset. On entering values in the second col of my first grid I want to do a for next loop of the first grid and display the total value in the second col of my second grid:
I have managed to populate the dataset for the first grid but have no clue how to use the for next to calculate the total.
Can some one help?
I can put the code here if you need.
Tnx
|
|
|
|
|
This[^] little article on MSDN should give you the insight your looking for.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
Search the web for "metro 272 file format equifax[^]" for more information. You may even have to contact Equifax or TRW for the specification.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi all,
I would like to have the tool tip text on a col of a datagrid. For eg if I run my mouse on the second col of my Datagrid I want to display 'Enter only Mr. or Mrs."
Is t his possible?
Tnx
|
|
|
|