|
Load it into a Bitmap object. You don't need a PictureBox at all. Once you have it in a Bitmap object, there are Width and Height properties you can look at. To get the file size, you'd have to check the size from the streamed number of bytes. There is no size property in the Bitmap object.
|
|
|
|
|
--> well there is no forum for Win XP. And i also posted this question in Vista forum but no answer. so thats why i am posting this question here:
--> How will i change the background image in the explorer (e.g; when open the C drive)?
J A Nasir K
|
|
|
|
|
And you're not going to get an answer here either because your question has nothing to do with VB.NET or the .NET Framework. Try the General Discussions forum.
Besides, you only waited about 20 minutes in the Vista forum before deciding that was too long to wait for an answer.
|
|
|
|
|
Where did you get those fancy arrows from?
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
|
|
|
|
|
Is there a way of editing the configuration of the standard windows screensaver "3D Text" using VB/C# code?
|
|
|
|
|
You have to modify the registry entires under HKEY_CURRENT_USER\Software\Microsoft\Screensavers\Text3D. You just use the normal Registry classes in the .NET Framework to do this.
|
|
|
|
|
Hi Friends,
I am using MaskEd control to get From Time and To Time.
I have set the Mask property to "##:##"
After given from time and to time , I need to find the difference between to time and from time...
But it is not allowing since it is string...So can anyone pls..tell me..how can i do that...
or how to convert string to integer.....
Please Help.
Thanks in Advance,
Regards
|
|
|
|
|
I think you're mistaken in what you want the masked text box to do.
int.TryParse is how you work out if a string is an int, and convert it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
How to store and show images from the access database to datagridview.I am using VB.NET 2005.
can anyone suggest solution for this.
|
|
|
|
|
Took about 1 minute on Google ^ to see how to store and retrieve images from access, now you see if you can use it for putting them into a datagridview.
Google is one of the greatest programming aids around, try it!
Bob
Ashfield Consultants Ltd
|
|
|
|
|
|
Hi Hitesh,
Please the following code snippet.
--------------------------------------------------------------------------
BEGIN CODE
Dim dirInfo As New DirectoryInfo("C:\Temp")
' Get a DirectorySecurity object that represents the
' current security settings.
Dim dSecurity As DirectorySecurity = dirInfo.GetAccessControl()
' Add the FileSystemAccessRule to the security settings.
dSecurity.AddAccessRule(New FileSystemAccessRule("ShanmuganathanR\Shan", FileSystemRights.Delete, AccessControlType.Deny))
' Set the new access settings.
dirInfo.SetAccessControl(dSecurity)
END CODE
--------------------------------------------------------------------------
Hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
Thanks
it works...
Is there any API for retriving domainname/user.
Hitesh sojitra
|
|
|
|
|
Hi Hitesh,
It is good to hear that my response was helpful.
Well, I am not aware of any such API's however, you may try to explore the System.Security namespace for more feature and functionality.
Hope this helps.
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
i observe that FileSystemRights once changed cant not be reset programmatically through the same APIs.
dSecurity.AddAccessRule(New Security.AccessControl.FileSystemAccessRule("cybergindia\hitesh", FileSystemRights.FullControl, AccessControlType.Deny))
the follwing doesnt seem to work once the rights are set to AccessControlType.Deny.
dSecurity.AddAccessRule(New Security.AccessControl.FileSystemAccessRule("cybergindia\hitesh", FileSystemRights.Read, AccessControlType.Allow))
pls help..
Hitesh sojitra
|
|
|
|
|
I guess perhaps you lose the right to set it to allow, as the user you're logged in as, or running as ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yeah, once the user that runs this code, they give up all of their permissions to modify the access rules. That same user cannot then get it back because they no longer have the permissions to set the access rules.
|
|
|
|
|
ya i gatting same problem.. than what is solution to enable it by code?
Hitesh sojitra
|
|
|
|
|
There is none. You said 'don't let me edit this'. Now you can't edit it.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
If i set individual permission instead of FullControl than it possible to enable by .Allow option ?
Hitesh sojitra
|
|
|
|
|
I guess try it and see.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i tried but not a single permission could be enabled by .Allow Option
Hitesh sojitra
|
|
|
|
|
You're OBVIOUSLY going to have to use an admin account to grant the permissions back to that user. Then you can go back as that user and try your code again. Please tell me you know how permissions and Windows Security works before you attempt to write code that manipulates it??
BTW: What you're doing is a complete waste of time. You're really not proecting anything by allowing the user to manipulate access rights. There is absolutely nothing stopping the user from resetting the permissions directly on these files/folders from Explorer. Please keep in mind that any code a user launches runs AS the user. There is no special permissions that code gets over and above the permissions the user has who launched it.
|
|
|
|
|
|
first i m using this code to Deny permission
dSecurity.AddAccessRule(New Security.AccessControl.FileSystemAccessRule("cybergindia\hitesh", FileSystemRights.Write, AccessControlType.Deny))
AND
To enable it i Use this code
dSecurity.AddAccessRule(New Security.AccessControl.FileSystemAccessRule("cybergindia\hitesh", FileSystemRights.Write, AccessControlType.Allow))
is it right way ?
Hitesh sojitra
|
|
|
|