|
Thanks Dave,
I think i am going to use select case to make a new instance of related class.
What i want to know is, isnt it possible to use variable as a variable type just like i wrote before like PHP script.
$var1="products"
$$var1.Text="Test"
which means product.text="test"
i have some strongly typed dataset classes and i wanna bind only one datagridview to one of the classes which is selected. i am doing this to add new records to different tables. for example when i bind the datagridview to the products class instance, i am gonna add some new products and when i bind the datagridview to customer class instance, i am gonna add some new customers. otherwise i have to create new form for every tables in my database.
thanks again.
|
|
|
|
|
Member 896436 wrote: What i want to know is, isnt it possible to use variable as a variable type just like i wrote before like PHP script.
No, you can't. This ain't PHP.
Member 896436 wrote: otherwise i have to create new form for every tables in my database.
No you don't. You just have to supply the code to bind the DGV to it's columns and bind it to the correct collection.
|
|
|
|
|
|
Hi...I'm new to vb.net..I would like to incorporate the vista glass effect in my vb.net app,
but I can't find any examples to do this...I know how to make the form into glass form, but
can't get the controls on it to act normal...the text on them disapeares when the form is
glass...help would be greattly appreciated..
also there is a way to incorporate the office ribbon, or at least the button, in vb.net apps?
|
|
|
|
|
Is your application written using WPF?? If not, there's pretty much nothing you can do.
|
|
|
|
|
Have you done a search on this site? Their are quite a few examples of glass effect in WinForms/WPF apps.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Hi all ,
I am working on the VB.net project , which downloads text files to my local directory from a server.
Sample text file is provided below
! 07-08-30 05:12:12 00 0002.1159 Information: Component in tape
! 07-08-30 05:13:03 00 0002.1548 Information: RIT1
! 07-08-30 05:16:27 00 0002.1245 Information: End-of-reel
! 07-08-30 05:16:27 00 0002.0027 Question: End of reel?
! 07-08-30 05:16:29 00 0002.1217 Information: Read in lot
My problem is this log file on the server generates new entry every few minutes and when i run my VB program i want only the new line to be updated on the local file.
In other words I want the text file on my local directory to be updated with new lines from the text files located on the server.
Can some one please help me with the code to do the text file updating. Thanks
|
|
|
|
|
Open both files, read through matching off until you reach the end of your local file, re-open it for append and add the records.
If you know the server file is ONLY adding you could do it by counting the number of rows in your local file, and read to that line in your server file before appending, but there is no magical way to do it.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
I am using MS visual dot NET. How can I show an image on Tooltip (Window application) and some thing like that? Because I want to show image of each Employee when cursor move on each row in datagrid. On web application we can use javascript. But this ia Window application. Please give me somes solutions. Thank you so much
asdasda
|
|
|
|
|
Why are you crying?
Simple. You can capture the MouseEnter event, and show a form in that event. In that event, make sure the Left, Top of form coincides appropriately with that of the Control. The form can consist of the PictureBox (which can be used to show the image according to the control. This can be done by setting a Public Shared variable of the parent form and changing the value to the appropriate image url) and other controls for working with the image.
And on MouseLeave you just close the form.
Make sure you make the form looks like a splash screen by changing her properties. BTW you can as well use a PictureBox control directly if you don't want the tooltip to be visible outside your form. I just thought of a more general case when user can probably perform some operations on the image.
-------------------------------------------
It's code that drives you - Shyam
modified on Monday, October 27, 2008 8:09 AM
|
|
|
|
|
Thank you Shyam ... you help me to solve this problem. My firend. I'm from VietNam. where are you?
asdasda
|
|
|
|
|
Moi from india...
|
|
|
|
|
oh. India have very big software industry. I know, India is number software industry in the world. Nice to meet you. My Email is : quyphidao@yahoo.com. Could I have your email? I hope we will be good friends and help each other to improve knowledge....
asdasda
|
|
|
|
|
Please tell me the hex code of N
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
Doesn't Google work in India?
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Ashfield wrote: Doesn't Google work in India?
Yes it does. But the guy is a senior software developer @ Rance Computer Pvt Ltd. So googling seems to be a bit low for his position I guess
-------------------------------------------
It's code that drives you - Shyam
|
|
|
|
|
If google is too mainstream, you can always use the 1208930147 search engine.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
ahahahah!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|
|
It only works on web sites that are the default web for the server, so that you can browse to the ip address instead of the name.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
What do you mean by "hex code"? Do you mean the character code expressed in hexadecimal format?
If you are using windows, start the charmap program and click on the letter.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: start the charmap program and click on the letter
And you got my 5 . Great answer.
-------------------------------------------
It's code that drives you - Shyam
|
|
|
|
|
Maybe he wants to curse someone
Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.
|
|
|
|
|
How is that related to VB.NET?
Hm, didn't find a underlined N in the Charmap-table.
|
|
|
|
|
Yes
How can Use it?
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
Will you promise to call us all Dull and useless software support people if we give you the answer?
Pound salt!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
|
|
|
|