|
readonly value change means
[readonly(true)]or[readonly(false)]
Here True or flase is the value.
|
|
|
|
|
create object of class first
first f = new first();
f.readonly = true;(according to your need)
if you want to access it without making its object then make it static
or use delegates
It is Good to be Important but!
it is more Important to be Good
|
|
|
|
|
The attribute determines how the code is compiled. You can't change that at run time.
---
b { font-weight: normal; }
|
|
|
|
|
hi,
Can anybody tell me how to work with the user control item. I know how to implement it and write the code in it; but i need to know how to use it inside another form and how to implement it from there.
best regards,
jamil abou khalil
|
|
|
|
|
It is ok i found how to do that.
Jamil Abou Khalil
|
|
|
|
|
just add it to the project, and drag it on the form.
|
|
|
|
|
hi!
i need to extract a htm file from a chm file to display.
i tried using
help.showhelp(this,"mk:@MSITStore:C:\Help.chm::/help1.htm");
but the url is not accepted as it is not in string format.
please help me display only the htm file using the chm file without opening chm help on whole.
with regards,
Asha.
hi!
|
|
|
|
|
Hi, Dear Respected Programmers
Kindly help me and convert following VB-commands into C# language.
Thank you
Screen.MousePointer = vbHourglass
Screen.MousePointer = vbDefault
|
|
|
|
|
this.Cursor = Cursors.WaitCursor; should get you the hourglass
Russ
|
|
|
|
|
|
In .NET 2.0 you could simply use the Control.UseWaitCursor property. Otherwise take a look at the Cursor class.
"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." - Rick Cook www.troschuetz.de
|
|
|
|
|
Good Morning.
Can anyone tell me whether there is an equivalent to CSS on Windows forms.
If want to be able to set the size, background colour and default font for a series of panels for my project.
Currently I have been setting these for each new panel.
Thanks
Mike
|
|
|
|
|
No there isn't.
If you want to set properties for a group of controls simply select them one by one while pressing Ctrl and then set the properties. If you want to create a new one with the same properties simply copy an existing control.
"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." - Rick Cook www.troschuetz.de
|
|
|
|
|
Mike
Sylvain Blanchard wrote this control which should do what you want:
http://www.codeproject.com/cs/miscctrl/StylesSheetManager.asp[^]
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
when we draw a line using grahics object,against button
& when i refresh that window,the line disappears
so i want to ask ,which method is used to permanent draw line
|
|
|
|
|
sure it will disappear when u use the refresh method cz the refresh methode returns the form to its original view and dispose all its resources as if you are creating a new instance of that form. I am trying to figure out the solution for ur problem but i am not able to do so until now.
jamil abou khalil
|
|
|
|
|
draw it in the paint event of the form
sameer
|
|
|
|
|
ys i did try to draw it in the Onpaint method,but i want to draw against button?
then it create problems
|
|
|
|
|
put it in the button paint method?
Russ
|
|
|
|
|
ok do one thing make one class level bool variable like
private bool _drwaLineFlag=false;
now on button click make it true(drwaLineFlag=true; ) and call the paint method this.Paint(); . and and in Paint Method put a condition against the _drwaLineFlag
|
|
|
|
|
sam
could u provide me a little piece of code for this .plz
|
|
|
|
|
Hello
I have some codes to list our companies workgroup's name, or domain's name or workgroup's computers.
Problem is this :
1-When i search to list all computers, i can't get domain's computer's name.
Can anybody give me a code that list all computers in workgroups and domains.
2-When internet connection is active, seraching for computers crashes. Whay? And how can search only for local systems.
Tanx.
|
|
|
|
|
|
Hi there, have you used AD thru .net before? The following works if executed in an app on my machine but fails if used in a web service. Maybe you know what's actually happening beneath?
Appreciate any help TT
[WebMethod]
public bool LogonValid(string user, string password){
// validate the user credentials
string[] dirPaths = new string[] {"LDAP://dc=bbsaa, dc=local"};
return LogonValid(dirPaths, user, password);
}
private static bool LogonValid(string[] paths, string userName, string password) {
foreach (string path in paths){
DirectoryEntry entry = new DirectoryEntry(path, userName, password, AuthenticationTypes.Secure);
// Bind to the native AdsObject to force authentication.
Object obj = entry.NativeObject;
DirectorySearcher search = new DirectorySearcher(entry);
search.Filter = "(SAMAccountName=" + userName + ")";
search.PropertiesToLoad.Add("cn");
SearchResult result = search.FindOne();
if(null != result) {
return true;
}
}
return false;
}
|
|
|
|
|
Hi,
i got a very silly doubt but i want to clarify that.
my doubt is,
what do we call the list of menuitems which are sepeated by a seperated
is it a group.
for ex. menu has llike this
menuitem1
menuitem2
menuitem3
---------
menuitem4
menuitem5
now what do we call menuitem1,menuitem2,menuitem3 group is it the group of menuitems or anything else.
please clarify,
thanks.
|
|
|
|