|
braleping wrote: Just communicated in one computer
??????
braleping wrote: but my server cannot display message in List box from client side
How did you implement this communication? Sockets? Remoting? RPC?
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
communication under the Windows.so use common IP Address"127,0,0,1".i think it isconnect in Remoting.
|
|
|
|
|
This tells me you have code that sends a message between your client and server, but you don't have a single clue how how it works or what you used. How am I supposed to explain what you should be doing if you can't tell me what you're using?
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
I am never use Winsock and any components,in my server side i just put one Listbox,timer and "Start"buttoon.that's all.i want to know use AddHandler,Event Handler,raise Event can solve my problem?if not this,what i should be use to solve problem?thax
|
|
|
|
|
I am never use Winsock and any components,in my server side i just put one Listbox,timer and "Start"buttoon.that's all.i want to know use AddHandler,Event Handler,raise Event can solve my problem?if not this,what i should be use to solve problem?thax
|
|
|
|
|
communication under the Windows.so use common IP Address"127,0,0,1".i think it isconnect in Remoting.
|
|
|
|
|
i think connected in Remoting,because use common IP Address"127.0.0.1".how to solve my problem?
|
|
|
|
|
Right now when I drag a .jpg file onto my program icon on my desktop it starts the program. How do I capture the filename so I can load it into my form on startup?
|
|
|
|
|
It has been many years since I did this... Isn't it passed as a command line argument to the application?
|
|
|
|
|
I believe it is a command line argument. The problem is how do I pick it up once my app starts. What is the command to access it?
|
|
|
|
|
From the Main method (all applications have one - unless VB is different) which will be on your Program class (in VS2005).
Alternatively, from anywhere else in the application:
Environment.GetCommandLineArgs()[^]
|
|
|
|
|
Colin,
First, thanks for your help. When I drag my file on top the the program it starts and I can read the arguments, but it only lists the executing program. The file I drag onto the program to start it is not listed. Any ideas?
|
|
|
|
|
I've just tried it myself. It works for me. If I drop a file onto the shortcut on the desktop, it will have the file name as the second argument (ordinal position 1) in the array.
|
|
|
|
|
This is what I am using:
Dim arguments As [String]() = Environment.GetCommandLineArgs()
For i As Integer = 0 To arguments.Length - 1
MsgBox(arguments(i))
Next
I drag the picture on top of the program shortcut and only get the executing program. Does the above code look correct?
|
|
|
|
|
Well, it should work. I used a For Each in my test, but it should be at arguments(1)
bendbock wrote: I drag the picture on top of the program shortcut
When you say you drag the picture. Do you mean the icon of a file in explorer? Or a picture from a running program? (e.g. A bit of clip art in power point)
|
|
|
|
|
|
C#
public class MyList<T> : IEnumerable<T>
{
public IEnumerator<T> GetEnumerator()
{
//DoSomething1;
}
System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
{
//DoSomething2;
}
}
How to change the C# code to VB.net source?
Thanks!
|
|
|
|
|
VB replaces <t> with (of T), I believe. Notice how VB uses () for everythng, thus making it illegible ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
(via Instant VB):
Public Class MyList(Of T)
Implements IEnumerable(Of T)
Public Function GetEnumerator() As IEnumerator(Of T) Implements IEnumerable(Of T).GetEnumerator
'DoSomething1;
End Function
Private Function IEnumerable_GetEnumerator() As System.Collections.IEnumerator Implements System.Collections.IEnumerable.GetEnumerator
'DoSomething2;
End Function
End Class
David Anton
www.tangiblesoftwaresolutions.com
Instant C#: VB to C# converter
Instant VB: C# to VB converter
Instant C++: C# to C++ converter, VB to C++ converter
Instant Python: C# to Python converter, VB to Python converter
|
|
|
|
|
Hello,
Does anyone know how to make an update patch for a VS 2005 window project.
I have developed a CRM for some customers. However, the customers want some more development to it.
I am wondering is there any way you can create an update patch that will only install the changes or add-ons that you have made. Currently the users have to uninstall and then install the new setup.
I have used MSI to create the setup.
Many thanks for any suggestions,
Steve
|
|
|
|
|
Do you want to just deploy some dlls and not the rest of the app ? Or do you want to send out a 20 kb file that updates a 2 MB exe ?
Either way, to do it automatically, you probably need to use an installer that supports such a thing. I don't think MSI's, do.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How can I use a custom font in a project that the user has placed in a folder.
|
|
|
|
|
This question doesn't make any sense at all. What project? What folder? What's the fon't got to do with anything? Why are you changing the font?
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
You forget when you're working on a project that it makes perfect sense, unfortunately only to you!
What I have is a game, where users will be able to navigate to a folder and all the images for the game will be taken from that folder, I would also like for the score,lives time etc to be in a font that is also contained in the folder.
I guess the best description is skinning.
Hope this makes it more understandable.
|
|
|
|
|
You might want to go for a skinning library. A little Google reveals these[^].
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|