|
how do i connect my database to my visual studio express project. When i add information on my form it must then be added to my database in the specific tables. Please i need your help, can your helpe detailed.I am using Microsoft Access 2003.
Please Help: SOS
Leavashni
|
|
|
|
|
Hi,
I want to make our VB Project support multilanguage/multilingual. As of now it doesn't support all the characters. Please sugguest & Help.
Thanks
Ranjan
|
|
|
|
|
There is the language Property for every form. Begin with one language. Enter the test property for every control, then change the language of the form and fill the text properties for the new language. If the language is found it will be set to the windows startup language (I hope so, didn't tried it on my own, but a fellow worker did this).
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
Hi, Thank you for the response. I am not able to find the Language option for forms.Please provide details.
Thanks & Regards
Ranjan
|
|
|
|
|
Well, you find it in the property-window (there I found it) when you have selected the form itself.
Greetings,
Ingo
------------------------------
A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature!
|
|
|
|
|
I'm doing the movie ticket reservation system. Is there any related topic. The problem is there is seat plan function for user to choose for their seats. What tools shall i use and is there anything related that might help? Thank You..
Siew Chin
-- modified at 3:51 Thursday 2nd March, 2006
|
|
|
|
|
Specifically, what part of this are you having a problem with? The UI, database, ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
anybody here? please help me!
how to change vb98 project to vb.net2005 project?
can i get a tool??
|
|
|
|
|
hi
just open that VB98 project in Visual Studio2005 IDE..it will ask you to convert Automatically...follow the wizard and it will convert..it
bye
Paritosh
|
|
|
|
|
I have a csv format report "A" and an excel file "B" contains two macro, the first macro will convert the csv report to a xls file "C", after that I want to copy the second macro in "B" to "C", so that I could open "C" and load the macro directly in the future. My question is how can I copy macro from "B" to "C", I'd appreciate any help you provide.
|
|
|
|
|
Sir,
I want to extract the files and folder icon and finally want to add the icons to the treeview with their text.
Please help me
Thanjs and Regards
Pankaj Garg
|
|
|
|
|
In the article that I posted a link to in your last post, there is a link at the top of the text of that article. Using the System Image List[^]. The code is in VB6, but is easily converted to VB.NET.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have created a small word processing application, and I have created a new file extension (“.sln”) to save files. Like
RichTextBox1.Save (FilePath & “/myFile.sln”)
Now, I want to open myFile.sln using my word processing application when I double click Myfile.sln
Do you know any codes to do that?
Please help me
chatura
|
|
|
|
|
If u want to open file with extension .sln in text box then in my opinion u need to copy the text of the file to clip board and then paste it in text box.
In this way it would appear as if file is opening directly in text box
|
|
|
|
|
Chatura Dilan wrote: Now, I want to open myFile.sln using my word processing application when I double click Myfile.sln
Do you mean when you double click in windows explorer? If so this is a windows setting for the default application associated with a file extension. (eg, for most people .doc will open with MS Word).
Tip: If you Right click a file you can choose "Open with..." then simply brose for your exe. As long as your app supports executing with an argument providing the path to the file then all should be dandy (eg, c:\myapp.exe "c:\my files\myfile.sln").
|
|
|
|
|
Yes I mean that I know that. but it does not work. My application is already associate with .sln files. but when I double click 'myfile.sln', my application starts and loads a new document file. but it does not load 'myfile.sln'
chatura
|
|
|
|
|
First you have to understand what windows does (by default) when you associate a file extension with an executable program. It executes the .exe passing the file name as the first parameter like this:
C:\myFolder\MyExecutable "C:\myData\the_file_I_d_clicked.sln"
So, you need to support arguments in your executable, and if the first argument is a valid location of a file, then open it at startup instead of a blank document.
Here, I wrote a little example for you:
I had a textbox and a button, on the button I have this code:
String str = tbInput.Text;<br />
StreamWriter sr = new StreamWriter(@"C:\test.abc");<br />
sr.Write(str);<br />
sr.Close();
Then in my app start code I have this (note: string[] args are the arguments passed into the exe)
if(args.Length>0)
{
string path = args[0];
if(Path.GetExtension(path) == ".abc" && File.Exists(path))
{
StreamReader sr = new StreamReader(path);
this.tbInput.Text = sr.ReadToEnd();
sr.Close();
}
}
sorry, forgot which forum I was on...here in VB.NET
if(args.Length>0)then
string path = args[0]
if(Path.GetExtension(path) = ".abc" and File.Exists(path))then
StreamReader sr = new StreamReader(path)
this.tbInput.Text = sr.ReadToEnd()
sr.Close()
end if
end if
-- modified at 8:24 Thursday 2nd March, 2006
|
|
|
|
|
Thank you for your reply. I’m trying to change it according to my application..
Sorry for my delay
chatura
|
|
|
|
|
Hi, If you need to relate an extension type to your application, you can do it using the windows utilites, or a vb code. in windows, it's done using folder options in explorer. but in code I can help you, you should create some keys in the registry, it's very simple. you can also assign an Icon and add commands to it when you right click on a file like Edit in MyApplication or CompileFile... tell me if you need it.
but if you need that after having the type related, how to open it so:
when you double click on file, it's automatically sent to the related application as arguments. you can select multiple files and press enter so all files will be sent to you application as array of arguments.
you can catch all argument while loading application. someone tell you how using C#
but can you tell wich version of VB you use? is it vb.net or vb2005? so I can help you also...
OmarMallat
|
|
|
|
|
Sure... I'm using VB.Net 2005
I’m very sorry do not try to change the application which associate “.sln” files. They are solution files. I changed my extension. it is “.shln” files.
Sorry for my delay
chatura
|
|
|
|
|
I have this code in VS 2003
Private mobjListener As TcpListener
mobjListener = New TcpListener(5000)
mobjListener.Start()
ByVal client As TcpClient
client = mobjListener.AcceptTcpClient
dim strIpAddress as string
strIpAddress = client.Client.RemoteEndPoint.ToString
but the property Client is protected so...
so i want to get the ip address of the client without using mobjListener.acceptSocket
Regards,
Maher
|
|
|
|
|
You don't have a choice here. You can't get the address from the TcpClient object. So, you'll have to use AcceptSocket.
Dim clientSocket As Socket = mobjListener.AcceptSocket()
Dim clientAddress As IPAddress = CType(clientSocket.RemoteEndPoint, IPEndPoint).Address
Now, for some reason, MS left out the ability to create a TcpClient from a Socket object, sooo, make it yourself...
Public Class MyTcpClient
Inherits TcpClient
Public Sub New(ByVal s As Socket)
Me.Client = s
Me.Active = True
End Sub
End Class
.
.
.
Dim client As TcpClient = New MyTcpClient(clientSocket)
(code lifted from Experts Exchange...)
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
well acctully we can do this with out using AcceptSocket.
it is by using Reflection
and here is the code
PropertyInfo property = client.GetType().GetProperty("Client", BindingFlags.Instance | BindingFlags.NonPublic );
MethodInfo method = property.GetGetMethod( true );
Socket socket = ( Socket ) method.Invoke( client, null );
Regards,
Maher Abu Zer
|
|
|
|
|
You're still getting it from the Socket...
To each his own!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Sir ,
I want to add the desktop node in treeview and finally it should have my computer node , network neighbour node etc.
Please help me.
Thanks and Regards
Pankaj Garg
|
|
|
|