|
in wat format should we give
|
|
|
|
|
|
Is it possible to persist the current com component (that is to prevent other programs from re-registering a different version of the same component).
Thanks
|
|
|
|
|
No. Usually, an older version of a component won't replace a newer version. But there is nothing to stop a newer one from replacing an older version of a component.
|
|
|
|
|
In my application I am using tabbed browsing because there are multiple forms in my application. Each tab has a form. I noticed that when I added a table adapter to the form the binding navigator was added to the form, not the tab page.
Do I need to use the binding navigator?
I noticed that when I delete the binding navigator I get errors and then the form designer will not come up.
I am going to have to add multiple table adapters to this one form, possibly multiple table adapters to one single tab page.
Will it add multiple binding navigators or can I use the same binding navigator with multiple table adapters?
I have another post on here that shows the errors I am getting when I get rid of the binding navigator.
The subject line of the other post is "Problems with Designer Generated Code in VB 2005"
|
|
|
|
|
AAGTHosting wrote: I am going to have to add multiple table adapters to this one form, possibly multiple table adapters to one single tab page.
The Binding controls apply to the form, not an individual TabPage. Tabs are just an organization container for visual controls.
Will it add multiple binding navigators or can I use the same binding navigator with multiple table adapters?
It will add multiple navigators to the form, one for each table to you drag onto it.
|
|
|
|
|
Hi!,
I'm trying to pass arguments to a running process, the process is started from my program and takes command line arguments on start up, but I wish to pass more over time, not just on start up.
Does anyone know if this is possible, and if it is where should I be looking?
Thanks
John
|
|
|
|
|
of course this is possible, and there are many ways of achieving it. You could use:
- .NET Remoting
- sockets
- named pipes
- memory mapped files
and many others I guess.
Some of these will also work between machines.
For passing a command line to another process, I tend to prefer named pipes.
all but the first are Windows features, available for a long time and in all languages.
For more info you could search Google, MSDN, or CodeProject. I'm confident CP holds articles
on all of them.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
Hi,
Thanks for the reply, just a few questions. Are named pipes supported in .NET?
From the examples I could find quickly, it would seem these are look like server/client applications, is this how they work?
|
|
|
|
|
j_foulkes wrote: Are named pipes supported in .NET?
AFAIK they are not supported, I used P/Invoke to the good old Win32 functions.
They work like UNIX pipes, their names are system wide, so two processes can decide
to connect to the same pipe based on a fixed name; and a pipe is like a socket, what
gets written at one end can be read at the other end. So I would call it a symmetric
connection, not necesseraly associated with client/server stuff.
I used named pipes in a singleton application: the first instance creates the pipe and
listens for commands; if a second instance gets launched with some command line,
it pipes that command to the first instance and exits again.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use PRE tags to preserve formatting when showing multi-line code snippets
|
|
|
|
|
j_foulkes wrote: the process is started from my program and takes command line arguments on start up, but I wish to pass more over time, not just on start up.
What process?? Is it something you wrote?? Do you have control of the source code??
If not, then if this is possible or not is entirely up to the application you are launching, not you. If it doesn't support doing this already, there's nothing you can do to add this support to it. You'd have to rewrite this app yourself, duplicating it's functionality, and adding this communication support to it.
|
|
|
|
|
Thanks Dave,
I don't think I explained it well. This isn't a application I wrote or have control over. I know it can pass command line arguments to it on startup.
Oh well, back to the drawing board
|
|
|
|
|
You're stuck. There's nothing you can do to "make it work". If the app doesn't support interprocess communication already, you can't force it to.
|
|
|
|
|
hi,
I am not good at this...but if the process is started by your application then i think you can do this by redirecting output stream and input stream of that process and then using the simple read and write functions of the streamreader and streamwriter.
I am again telling you that I am not good at this, but I did once try it and sent commands to cmd.exe using the same method.
You can search on google for it! I think there is a sample code available.
Pranav Bhat
Email:pranavsbhat@gmail.com
|
|
|
|
|
That works if, and only if, his app that he's launching is a DOS command-line app that takes normal keyboard input. It doesn't work for Windows apps or DOS apps that scan the keyboard directly.
|
|
|
|
|
Hi All !!
I am new on this forum. Just made my account today. Website looks great!
I have been developping in Wedev and Clarion for many years. This year I have made the switch to VS 2005. Already I have looked shortly at VS2008.
I must admit, I regret that I have not started with VS earlier.......
In Windev we have always been working with ini-files. Would like to put in a ini-file several variables witch the user may change.
Anyone a suggestion or a quick start for using ini-files?
Second question .... if I may? I want to save user-setting in a configuration-file. Cann anyone give me also a quickstart?
Thnxs
Hans
-- modified at 14:52 Thursday 29th November, 2007
|
|
|
|
|
Hi,
I think you must try the settings file, it's a new technique simple and beautiful. I'll show you a way to use it, go to project > new item > settings file (name it e.g. testsettings.settings) > add a new record (use the user scope).
in your form:
'Read
Dim s As New TestSettings
MsgBox(s.FieldName)
'Update
s.FieldName = NewValue
s.Save()
hope this helps
NajiCo http://www.InsideVB.NET[^]
It's nice 2b important, but it's more important 2b nice...
http://www.facebook.com/group.php?gid=5932660937[^]
|
|
|
|
|
Hi Naji,
Thnxs for youw wonderfull tip.
It worked right away!!!
I will forget about the ini-files and use the settings-option provided bij VB.net.
Greetz
Hans
|
|
|
|
|
|
hi,
I need to detect the URL that a browser is requesting using vb.net? Please tell me how do i go about it! I need it to work on Firefox and IE.
Please tell me ASAP!!
Thanks in advance.
Cheers!!
Pranav Bhat
Email:pranavsbhat@gmail.com
|
|
|
|
|
You have little choice but to write a proxy server and configure the browsers to use your proxy to make the requests to get web pages.
|
|
|
|
|
hi,
thanks for the reply dave! Thats an option but can we configure a browser directly via code to use a proxy server?? Moreover, i dont think firewalls or malicious page detectors work this way..do they??
waiting for your reply.
Thanks in advance.
Cheers.
Sincerely,
Pranav Bhat.
Pranav Bhat
Email:pranavsbhat@gmail.com
|
|
|
|
|
Pranav Bhat wrote: Thats an option but can we configure a browser directly via code to use a proxy server??
Yes, but it would require poking a bunch of stuff into the Registry, different for each browser.
Pranav Bhat wrote: Moreover, i dont think firewalls or malicious page detectors work this way..do they??
Software firewalls on the local machines don't interact with the browser at all. They work on the network stack and watch the packets, and data in them. This is impossible to write in VB.NET (well, not impossible - you have to use 3rd party libraries line WinPcap) and requires you know FAR more about the network stack than how IP works.
Other firewalls and proxy servers that sit between the Internet and the workstations DO work this way. The browsers have to be configured to use the firewall/proxy or else they don't get out to the Internet.
Anything else is a plugin to the browser, for which you'll have to write a seperate plugin for each borwser you want to support, and install it on every workstation. I hate writing the same thing twice, so I don't like that option.
|
|
|
|
|
hi,
thanks for the answer dave!!
I'll have to choose from which option to go for!! But thanks anyways....i really appreciate it.
Cheers.
Pranav Bhat
Email:pranavsbhat@gmail.com
|
|
|
|
|
i have text file and this file change run time (batch file create text file and if run it next time put new result )
the question is how can put pointer in new position after change with function (seek)?
|
|
|
|