Shameel wrote:
The OP is from India and I know what she meant
Thats a bold assumption IMHO.
cheers, Super ------------------------------------------ Too much of good is bad,mix some evil in it
Considering all drives are always visible to every user by default, your request doesn't make much sense. If policies are preventing a user from seeing a drive, the code that enumerates drives won't show the letters that the user cannot see anyway, without you having to check permissions.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak
Just holding the file open won't do that. It's when you write data to the file without flushing it, or shut the machine off in the middle of a disk write that you run into this problem.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007
I think you'd be better off asking HP about issues with QTP. I've never used it, and it's quite likely that anyone else who has used it will see your post. From your code sample, it looks like your asking about using the UpdateMethod property of some object, though I can't figure out what that object it. I do know it's not anything to do with VB6 or VB.NET. You're best source of information is going to be the manufacturer of the library(s) you're using.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007
snoby wrote:
testers tried to rename an Xml file to Bmp file.
Of course that's not going to work...
snoby wrote:
In that extreme case , my custom control should not fail. So while fetching such a file my control failed.I can handle it in try -catch block.
That's exactly what you have to do.
snoby wrote:
But is there any coding to restrict such exceptions from occuring ?
You can't predict the future. You have no choice but to handle that exception. Even if the file is intentioned to be a valid image, files CAN be corrupted, no matter what you do. You simply don't have a choice here. You MUST handle the exception.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007
snoby wrote:
CAn anyone suggest the solution...
Yes, you can't, (Name) refers to the name which the variable is declared in code with. E.g. if you have a textbox called txtUsername then if you look in the code generated by the designer you get:
private System.Windows.Forms.TextBox txtUsername;
So you can't get rid of the (Name) property because if defines how the code is generated.
I have no idea what I just said. But my intentions were sincere.
On DataValueField property set values 0,1,2... On DataTextField property set values AAA,BBB,CCC...
"My advice to you is to get married. If you find a good wife, you will be happy; if not, you will become a philosopher." Socrates
Tell me how to get updated Coordinate position when control is dragged & dropped on any part of designer without using events.On designer also events are not getting raised.