|
tommy_tanaka wrote:
i implemented a client-server application, where serveral clients send their screenshot to the server. the server keeps the shots of the clients, the pc and username in a class named "client".
Beating the crap out of your network are you?
You could create an entire control that encapsulates just a single user session. That control would update itself, showing the username, machinename, and client image. For each incomming client commection, a new control is created that does all the work for that connection. Your main code would setup and manage the client area that shows the controls and places them.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
so to say, i do, yes.
anyway, i am using the .Net Remoting technique and so, my client-objects are already finished an marshalByRef objects... and also i want to keep the gui-layer away from my network-layer. therefore, i don't want to mix the custom control and the client object. i had in mind to have a custom control like that (pseudocode):
Class clientControl
Private remoteclient As Client
Private ImageBox As ImageBox
Private Label1 As Label
Private Label2 As Label
Sub New(client)
clientControl = client
ImageBox.Image = clientControl.Image
Label1.Text = clientControl.Username
Label2.Text = clientControl.PCName
End Sub
End Class
My problem is: how to position this control, how to genereal create it??? and then, how to update the Imageboxes ...
|
|
|
|
|
Hi..
I want to know at run time whether a partcular file is accessible at run time.How can I do the same
Thanks and regards
g
|
|
|
|
|
The best way to do that is to try and open the file with the access you need. If it fails, then the file is inaccessible. You can do this insde a Try/Catch/Finally block to test this.
Try
Dim myFile As New FileStream( filename, FileMode.Open )
' More code to do whatever you need...
Catch
' The FileOpen failed so the file is not accessible.
Finally
myFile.Close()
End Try
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
How can I use the ASP.Net? I currently have geocities as my web host, but It will not work with ASP.Net.
Any suggestions as with which web host i can use?
bravo659
|
|
|
|
|
Ok. Thanks. I got that MDI child creation. Now I have an integer variable named OpenWindows that i declared as Public in my frmMain class. What I need now is how do I change OpenWindows ' value from frmMain 's child - frmText when it's closing? The code below doesn't work:
Private Sub frmText_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing<br />
Dim blabla As New frmMain<br />
blabla.OpenWindows -= 1<br />
End Sub
|
|
|
|
|
Not sure about your specific problem, or the wisdom of your approach, but to get to base class methods, use base.
At least, that's now C# works.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
To add to what Christian said, the word your looking for is MyBase . This will allow you access the base class members.
MyBase.baseClassMethod()
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have as a homework this exercise:
Description of the program:
1. Necessary to develop MDI-application, which gives a chance user to execute operations with object of the file system:
- produce navigation (transition from file in file, change the disk),
- realize copying, removing, renaming of the files and files.
2. The Affiliated window given applications is a window with list of the files and files any directory. The Operations with element of the file system in this window possible to execute by means of menu or softkeys.
3. As in majority standard MDI-applications necessary to realize the operations in menu Window: displacement between window and sequencing the windows.
I need some free code about that.Please help me cause my deadlines is almost over
|
|
|
|
|
No, we will not help write your homework assignment. How else will you learn anything?
You should have all the materials necessary to work out how to do this task from your tutor. If you have a problem or don't fully understand a specific part of the assignment then we can help with that.
Do you want to know more?
Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
|
|
|
|
|
endri81 wrote:
I need some free code about that.
I'm sure you do. OR you could actually do your own homework, so that you learn something. Or how were you expecting this stuff to work when you hit the real world, and your employer sets you a task ?
endri81 wrote:
Please help me cause my deadlines is almost over
And how have you spent the time since your project was set ? Or were you too drunk to remember ?
I am at a loss to understand why the internet seems overrun with deadbeats who think they can get through life without actually applying themselves to anything. It's VB for goodness sakes, my 8 year old could probably do your assignment.
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
It is true without a doubt that if you want to learn how to code in any language, you need to do the work yourself. In school they give you all the necessary materials to work with, and all you learn are the fundamental coding in VB.Net, or other language. The coding part is the hardest. I find it to be. But, in the real world if you graduate and get hired as a programmer, and your boss gives you that given task and don't know how to create an MDI Parent and a child form, then you will not last not even one day. It's good to get feed back and study the code and make sure you learned something.
bravo659
|
|
|
|
|
Christian Graus wrote:
I am at a loss to understand why the internet seems overrun with deadbeats who think they can get through life without actually applying themselves to anything. It's VB for goodness sakes, my 8 year old could probably do your assignment.
Don't hold back now.
Do you want to know more?
Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!
|
|
|
|
|
Hello,
I make a small project in Vb.NET, i use RICH EDIT BOX to display text.
There is a "Print" button in my application.I want that when user clicks on "PRINT" button, then a print dialog appears (JUST as it appears IN NOTEPAD or MS-WORD when user clicks on "PRINT" button) and ask for Printing options i.e. " PRint Current PAge", "PAge No" etc
Kindly help me in this regard.
EsHbAn BaHaDuR
|
|
|
|
|
Look up PrintDialog on the VS.NET help or MSDN if you don't have the documentation on your machine. I doubt that this will have all the features of the MS-Word print dialog (which is more advanced). Also, I believe that you have to do more work to actually print anything. I am not sure about how to do that right now, sorry.
vir·tu·al re·al·i·ty
n. Abbr. VR
A computer simulation of a real or imaginary universe in which Microsoft APIs are thoroughly documented and behave in an entirely logical manner.
|
|
|
|
|
Actually the print is complex, but also as easy it comes. Depends what you really want to do with the print option. Like he said, in MS Word is more advanced and complex. It has a lot of coding using the Do..Loop, IF..Then...Else statements, as well as the With conditions for every loop that a counter encounters when a user clicks on the print button.
But there is a very simple code that you may use momentarily, just to get the gist of coding print documents.
This is the code that I developed that is much easier if I want to print non-complex applications. I used this to print the database information that fills the dataset in a datagrid. The connection I used is Access Database(Microsoft Jet) and the OleDbDataAdapter. It prints fine without exception.
All you need is a print button. Call it printGrid.
Private Sub btnPrintGrid_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrintGrid.Click
PrintDocument1.Print()
End Sub
Private Sub PrintDocument1_PrintPage(ByVal sender As System.Object, _
ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles _
PrintDocument1.PrintPage
Dim myPaintArgs As New PaintEventArgs(e.Graphics, New Rectangle(New _
Point(0, 0), Me.Size))
Me.InvokePaint(DataGrid1, myPaintArgs)
End Sub
bravo659
|
|
|
|
|
Hi,
Iam trying to raise an on click event on XML menu (created by ComponentArt ) for my web page.
Although,among the events it provides is a MenuItemSelected event,It never gets raised.
Therefore iam trying attach another onClick event on it, but do not know how. Can someone help.
Thanks.
|
|
|
|
|
Your question would be better handled in the ASP.NET Forum[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello,
i like to handle an event from an included libary:
I use this code in my VBA project form1:
<br />
Private WithEvents mScandata As RealScan<br />
------------------------------------------<br />
Private Sub Form_Load()<br />
<br />
Set mScandata = New RealScan<br />
<br />
End Sub<br />
------------------------------------------<br />
Private Sub mScandata_ScanReady(ByVal pDobj As SCANNERLib.IDataObject)<br />
<br />
Dim i As Long<br />
For i = 0 To 250<br />
MessageBeep (i)<br />
Next<br />
<br />
End Sub<br />
------------------------------------------<br />
This code doesen' t work. Does anybody has experience with event handling in vb? I think the prob is to initiate the m_Scandata event?
happy coding,
-mark
|
|
|
|
|
The qeustion should be has anyone ever done anything with the RealScan library? And from what I can tell when searching for RealScan, that's not very likely.
Handling events in VB/VBA/VB.Net is so common it happens in virtually every app everyone writes.
It LOOKS like everything is OK. There are many possibilities as to why your having a problem with it. The signature of the event handler could be wrong, the documentation on the library could be wrong, the library firing the event when it's supposed to and your not looking for it at that time, or you expecting the event when the library is not supposed to fire it, or are you supposed to call an initlization function after you create the object... The list goes on and on...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
give code to display selected date from monthcalendar control in a textbox using vb.net
|
|
|
|
|
Man, you make a lot of demands.
We'll help you with code that you have attempted and are having a problem with, but we won't solve your problem for you. You won't learn anything that way.
What code do you have and what's the problem your having?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I want to know how to detect the row changes in datagrid.
My problem is that I want to update the subtotal of a single column in datagrid if the user delete(s) a row in datagrid
I want to know the event that fires when you delete a row
thank you.....
edong
|
|
|
|
|
Has anyone here on CP started working with Microsoft's Concept Application IssueVision, If you have, do you have any of the details on the password hash and user scheme. I'm just checking before I try to "hash" it out.
I'm working with both the vb.net and the cs.net, versions.
Anyone interested in IssueVision, It can be found here.
http://www.windowsforms.net/Applications/application.aspx?PageID=40&tabindex=9
Thanks
|
|
|
|
|