|
Hey what's up everyone....
I have been trying to figure out how to get my applications to dock in windows. I have a bunch of apps that I would like to add that feature to but I can't figure out how. I would my apps to be able to dock in windows like you can dock the taskbar in windows. If anyone can point me in the right direction I would really appreicate it.
Thanks
Thanks cPod....
|
|
|
|
|
first, you need to put all the forms as mdi children.
then in the mdi parent u do the following:
Me.LayoutMdi(MdiLayout.Cascade)
Me.LayoutMdi(MdiLayout.TileHorizontal)
Me.LayoutMdi(MdiLayout.TileVertical)
|
|
|
|
|
Hey people!
I’m trying to create something that will keep track of what I am printing to the network printer and also to add the SN to each printed page. In my understanding I need to “listen” on a local computer if the print job was sent to a specific printer, if yes then let say get or ask the user to type the Memo, and generate add-on SN to the file and then send it back to the printer. Obviously I don’t even close idea on how to do that in VB.net
Can some one help me on that, thanks a lot!
Alexus
Yes I’m still here!
|
|
|
|
|
First, not to scare you or anything, but you're in for one of the most problematic app's of your life.
The .NET Framework has nothing in it that will help you with this. You'll be P/Invoking the Win32 Spooler API's and will probably be writing an entire class library around them.
Also, the Spooler API's change event notification system CAN and WILL drop notification events if enough changes occur in a quick enough time. This means the possibility exists that you won't know that a print job was started. Also, you don't get instant notification of the events either. So, a job can start printing before you get the notification.
That doesn't even mention that probles your going to run into changing the job. BTW, what do you mean by "SN"?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
SN - Serial Number (just for future reference, if I need to find the document or reverse look up in db)
If it is so complicated is there a way around? Dont I first send a job and than print it?
|
|
|
|
|
tempgp wrote:
If it is so complicated is there a way around?
You're kidding, right?
tempgp wrote:
Dont I first send a job and than print it?
No. The job (by default) can be sent to the printer as it's still spooling. What you see in the job is not GDI code, it's the language the printer understands, whether it's PostScript, PCL, RAW, whatever.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
In my main App I run a long running process on a seperate thread so as not to tie up the GUI - while the process is running I want to set the Cursor to the WaitCursor. The first thing the long running process does it fire an event which is handled on the GU thread and sets the cursor to the WaitCursor then when the process has finished it fires another event which is again handled on the GUI thread and sets the Cursor to default - however, the cursor never actually changes to the WaitCursor
The long running process fires off an event every 1000 records or so which is handled on the GU thread thus:
<br />
Private Delegate Sub xxxDelegate(ByVal sender As Object, ByVal e As xxxEventArgs)<br />
<br />
Private Sub xxx(ByVal sender As Object, ByVal e As xxxEventArgs) Handles LongProcess.xxx<br />
<br />
If button.InvokeRequired = False Then<br />
Console.WriteLine("A - " & Cursor.Current.ToString())<br />
...<br />
Else<br />
Console.WriteLine("B - " & Cursor.Current.ToString())<br />
Dim del As New xxxDelegate(AddressOf xxx)<br />
Me.BeginInvoke(del, New Object() {sender, e})<br />
End If<br />
End Sub<br />
When run the following is written to the console:
B - [Cursor: WaitCursor]
A - [Cursor: Default]
B - [Cursor: WaitCursor]
A - [Cursor: Default]
B - [Cursor: WaitCursor]
A - [Cursor: Default]
...
Why is this?
|
|
|
|
|
First, since your long running thread doesn't do anything with the GUI, it should not be the thread that changes the cursor. This should be handled by the GUI code just before it launches the long thread. When the thread completes, some kind of event or signal is raised on the GUI thread that started the long thread. Then with signal occurs, the GUI thread handles changing the cursor back to normal. GUI effects only on the GUI thread!
If your long running thread were to be used in a console app, how would it know that there was no cursor to change? Get the idea yet?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
It is the GUI thread which changes the cursor - the long running process just raises an event to say it has started then one to say it has completed - these are handled on the GUI thread.
|
|
|
|
|
There have been many posts on dynamically displaying images in a Crystal Report, but none of the replies have helped me with my problem... Hope somebody has the answer
Using: VB.Net 2003 with CrystalReports.Net 2003 and MS Access (XP) DB.
I have a table with images (have tried .bmp and .jpg) stored as OLE type.
My CR DB at design time is XML schema file which contains my image field as a base64binary type.
I've dragged this field onto report creating an IBlobField. At runtime the image is not displayed. I have tried multiple resolutions (72 - 300 dpi) and image sizes. Does the Blob field resize the image for you? When I insert the image statically from the .bmp or .jpg file at design time, it displays correctly.
On another note: Anyone know what the best resolution to use for inserting images into a CR. Often the images I've inserted have appeared distorted. I'm trying to add an electronic signature to the CR.
Thanks for any help I can get!
Kevin
|
|
|
|
|
Hi, I created windows chat application. It's working properly, but only one problem is there. When any client type message & send it to common window, server give responce but that message displayed only that client's common window other clients can't see that message. So please tell me that when any one send message using which code server send that message to all clients?
If possible please give me code for that. Thank you very much.
|
|
|
|
|
So in other words it works for people who talk to themselves ?
It's pretty much impossible to help you here, you need to provide some code and let us know what you're trying, so we can point out where you're going wrong.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I am working on a project for work, and was wondering what the best choice for data storage and recall would be. I only need to save three pieces of data per line, but need to be able to search with a match on two of them.
example:
data1, data2, data3
select data3
from ?
where data1=string1, data2=string2
While I realize that this is not proper coding for SQL, it is just and example. Any help would be greatly appriciated.
Mega1
|
|
|
|
|
Well, if you're using SQL, then you're using a database, surely ? For a single flat table with three pieces of information, I reckon Access is sufficient.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
can any one help me?
i have exe project , and the problem is:
how can i insert a procedure in this exe project
to work under any startup event(e.g load event)
and thank for all
|
|
|
|
|
What do you mean by "any startup event"? There is no startup event for an .EXE...
And what kind of procedure are you talking about?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You can't. You can't change an exe to have another procedure in it, it just doesn't work that way. If it's VB.NET you can decompile it, add your proc and recompile, I guess.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
well,
my project in vb6.
can you help me in find the tool
that enable me for decompiling my exe project.
|
|
|
|
|
It's obviously not YOUR project, or you'd have the source code. Why are you hacking someone elses program ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
System.NullReference exception occurs when the code is run
dim pt as new POINTAPI
l=getcursorpos(pt)
|
|
|
|
|
You haven't supplied enough information to troubleshoot the problem. You need to post the code showing how you declared POINTAPI and GetCursorPos().
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
For some reason, the CurrencyManager will not let me remove the last item in the collection. For example, if I have a CurrencyManager bound to a collection with a Form and Control bound to the CurrencyManager. I can remove any item from the CurrencyManager just fine with RemoveAt. However, if it is the last item , it simply ignores the call. It doesn't throw and error, it simply doesn't do anything. Count remains Same, Position remains 0. Even if I try calling CurrencyManagerVar.List.Clear(),
it ignores the call. Again, no error, just doesn't do anything.
But in my Another form it has worked fine with CurrencyManager.RemoveAt(CurrencyManger.Position)
Any Problem in my code?
My code is :
CurrencyManager.RemoveAt(CurrencyManager.Position)
I have also tried with
Dataview.Delete(CurrencyManager.Position)
And
Dataview.Delete(CurrencyManager.Count-1)
And also with
DatarowView = CurrencyManager.Current
DataTable.Remove(DatarowView.row)
above all are not working
|
|
|
|
|
i have a datagrid which is displaying a table of database db1. i have also a button btn_insert
now i want to enter one more row in datagrid so that when i click btn_insert a new row gets inserted
i want that user should append the details of new row (that he wants to insert) in the datagrid
and when he press btn_insert i fetch those values and insert the row in the actual database
is there any method to count rows in datagrid ?
plz help, how should i go for this.....
|
|
|
|
|
how to know if a tooltip is displayed or not when mouse is moved over minimize,maximise,close icon on title
|
|
|
|
|
Hi To ALL!
In VB.NET, i need to display a form in Sub Main().I have written code something like this but its not working. Pls help me ...
Public Sub main()
dim frm as new form1()
frm.show()
End sub
Thanks
Mahesh
|
|
|
|