|
Hi MikeMarq,
Perhaps its because you are not calling the MemberwiseClone() method within its class or by a derived class. Remember that a protected member is accessible within its class and by a derived classes.
Andre Luiz de Alcântara Chaves Bittencourt
|
|
|
|
|
Your suggestions fixed it. Thank you guys for your help.
|
|
|
|
|
The previous poster is dead-on.
You will need to write a function in your class that implements the ICloneable.Clone.
For example:
Public Class MyClass
Public Function Clone() as Object Implements ICloneable.Clone
Return Me.MemberwiseClone()
End Function
End Class
You can then call the Clone function from outside the class to create a shallow copy of your type.
|
|
|
|
|
I have a 3 page Word doc containing VB text boxes on every page.
I would like to automate filling these text boxes thru a VB.net program.
How do I go about it?
Thanks
Rey
|
|
|
|
|
Hi,
I used to do VB 6 programming at college, and now I have to do a project for uni in VB.NET2005. The program is going to be a typing tuition program, with a few tests such as entering the write letter, all very simple kid oriented stuff.
I was just wondering, am I going to struggle with VB.NET 2005 as I have not used it before, or should I be ok picking it up, what are the major differences?
Any tips on programming this, as I have not got that much of an idea at the moment!
Cheeky, but has anyone got any source code or anything like that for a similar program???
Many thanks
|
|
|
|
|
There are quite a few differences, but i doubt you struggle if you've got previous experience. It's not like learning a new language, it's more like moving house, things are just different. Not in a complicated way though.
e.g. instead of setting listbox style to have checked items, you have a checked list box now.
I guarantee you will pick it up in no time.
My tip for your program:
Start studying up on keypress, keydown, keyup and how to use them.
Don't start a new thread on this site, just keep this one running and ask different questions.
Short Keydown Intro:
Say you want to know if they pressed f then do something if they did:
if e.keycode = keys.f then
'do something
end if
Posted by The ANZAC
|
|
|
|
|
I used vb5 before I switched to vb.net 2005. I'd say that vb.net is more powerfull but slightly harder to use but not dramatically harder. I wouldn't expect that you would have any problems picking it up. I'd say vb.net is better if you are doing any somewhat complicated program especialy if it is object oriented. Here would be my list of pluses and negatives.
Plus:
1 better at object oriented stuff
2 an extensive library that I think is identical to the one in c# and c++. It lets you do a some things that were hard or impossible to do in earlier vbs.
3 The intellisense is better than the one in vb5 (I never used vb6 so I can't speek for that).
Negative:
1 have to declare ALL variables
2 arrays have to start at zero (no base 1)
3 theres no simple built in one word functions. Instead you use the class library and create an object from a class then use it. This is more capable generally but its not quite as simple use.
They also changed a few other things like some of the data types. For instance int is now 32 bit instead of 16.
|
|
|
|
|
MikeMarq wrote: 1 have to declare ALL variables
2 arrays have to start at zero (no base 1)
3 theres no simple built in one word functions. Instead you use the class library and create an object from a class then use it. This is more capable generally but its not quite as simple use.
I wouldn't say these are all negative...
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
1 & 2 are. They used to be optional and you could do things either way. Now you can only do it one way. 3 is a tradeoff. The new way is more powerfull but slightly more complicated so in some cases its better and some cases its worse.
|
|
|
|
|
MikeMarq wrote: 1 & 2 are.
I disagree. Why is being required to declare variables negative? It prevents sloppy code. Zero based, granted it is not a natural starting point like 1, has it reasons.
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
MikeMarq wrote: Negative:
1 have to declare ALL variables
Surely this is a positive, as it enforces good coding practises?
Steve Jowett
|
|
|
|
|
harveyhanson wrote: I going to struggle with VB.NET 2005
You shouldn't. Prior to VB.NET, the last version of VB I worked with was 3.0. Didn't like it, ran across VB.NET and it is okay, though I prefer C++/C#...
harveyhanson wrote: has anyone got any source code or anything like that for a similar program???
Nope, sorry :->
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
Can we use DAO control with Data Reports plz tell me if we can then how we can do that
.o0|EvolvingLogics|0o.
|
|
|
|
|
Why would you want to? DAO died a merciful death a long time ago. It hasn't been supported in the lastest MDAC's for quite a while now.
Let me guess, you're using VB6? You'd be much better off using ADO[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
ok let us consider ADO
then whats next i have connected the database and binded the controls too no wht can i do next
.o0|EvolvingLogics|0o.
|
|
|
|
|
I have no idea what's next because of two things. I don't know what you're trying to do beside some Data Report work and I haven't touched VB6 in about 6 years, ever since I got my hands on the VB.NET 2002 Beta.
But, having said that, Google comes up with all kinds of stuff on the old VB6 DataReport[^] control.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
If I have the WDSL is there a way to create my variables on the fly based on what is in the WDSL......I guess I don't understand the importance of what it is beside telling me the datatypes of all the fields.
Also, basically a soap client is an app that receives data in XML format via connecting to some port over tcp/ip?.......Right?
I'm trying to understand how an app is produced when all you have is the WSDL and that it uses SOAP to communicate.
Thanks
Tom
Tom Wright
tawright915@gmail.com
|
|
|
|
|
i am building this program and i want it to be able to send some sort of message to another computer based off test results. If the results come back bad i need the program top flag another computer. I have never done any thing like this so i was looking for ideas??
|
|
|
|
|
Karma31251 wrote: i want it to be able to send some sort of message to another computer based off test results.
OK. You'll need to write two apps, based on TCP/IP sockets or .NET Remoting.
The first will be the processor of the data and send out the resutling message. You'll also need to writing something that tracks which machines to send the messages to.
The second app will run on the client machine that will recieve the messages. When this app starts, it needs to "check-in" with the server to let it know that a client is listening for messages. It'll work something like the ubiquitous chat application, or which there are hundreds of examples out on the web.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
i guess you mean over a network? Well if its how i imagine the program to be you will need to create 2 programs, a server and a client one, the first one will be the one which creates the message and the second will be the one which will recieve it. So you will be using an interface to connect over network, if using windows winsock would be a good guess, so the client will listen waiting for the results. By bad i guess you mean that it is below/above a certain level, and it would be fairly easy to do an if statement to catch that.
However your message is a bit vague, am i talking along the correcr lines?
|
|
|
|
|
everyhing you assumed was correct and it did clear some things up.
thanx
|
|
|
|
|
Hi all. I have a textbox in which i will add "Comments" on aspx page along with an Add button. On this page , i have a gridview as well. The problem is,
When i enter value in TEXTBOX and press ADD button, the value in textbox should have to be populated in Gridview without PAGE REFRESH. Please make sure the current scenario.
I have a table ABC with a column Comments. I pull Data from ABC table in Gridview. so, when i add value in Textbox and press add button, basically it will save first in ABC table and then refresh the gridview behind the scene. Please let me know How I can achieve it. Thanks for your consideration
|
|
|
|
|
Your question should be posted in the Web Development or ASP.NET forums. What you want can only be done in client-side script since you don't want a post-back to the server.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I am trying to select the current email from someones inbox (not open one just the highlighted one) using vb.net + vsto SE from VS 2005, and am having difficulty finding a property that relates to it, I am assuming its would be in the active inspector method? If not would it be part of the MAPI folder?
Thanks for any help
Chris
|
|
|
|
|
There is no "current email" as far as MAPI or any other email datastore goes. The "current" email only has any meaning in the application thats showing them. There's nothing that says "this email is selected" in MAPI. Soooo, you're question is a bit vauge.
Are you writing an extension for Outlook?
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|