|
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.
|
|
|
|
|
ya you can say it a sort of groupping.MenuItem groupped accroding to their functionality.for more just have a look of any menu given MS application.like IE
sameer
|
|
|
|
|
when user click on stop button on the mediaplayer, which event will run?
i want to get it to stop a timer.
|
|
|
|
|
I got it
private void axWindowsMediaPlayer1_PlayStateChange(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e)
will run !!
|
|
|
|
|
Hi all, I started using Visual C# Express 2005, and to my horror realized it doesn't support setup & deployment projects, it only has the ClickOnce Publisher.
And I only recieve the one manifest problem after the other and its making me
Have any of you used an external installer, something that I can just add my project outputs and it creates the needed msi file for installation, and if possible deploy the dotnet framework all at once. Freeware is always nice
Thanks in advance
He who laughs last is a bit on the slow side
|
|
|
|
|
can i get a form for console application?
ravi
|
|
|
|
|
You can write a console app that also shows a form, sure. Just start with a console app and add a form to it.
Is this what you meant ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I Have a search criteria form.I enter related information and i will see the related information in datagrid.Now if i have one lakh related records how can i see the records in datagrid.
|
|
|
|
|
Ravi Shankar43 wrote: lakh
This is not a word. I have no idea what you're asking ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Ravi Shankar43 wrote:
lakh
This is not a word. I have no idea what you're asking ?
I think he meant, Lacs
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
means some thousands of records.how can i search for that records ofcourse we set paging concept for that but it is a lengthy process.
|
|
|
|
|
there must be some search criteria for search.put those criteria in a combobox.and on selected index chage event you can refresh you data grid by selecting those records from the original table which match with selected criteria. and to select data from table use table.Select("CONDITION");
sameer
|
|
|
|
|
hi...
In my application...
I have declared a SerialPort object in parent form & i am accessing it from a child form but
its giving an error in port 'open' method. Can anybody tell me where i am going wrong...
Here is sample code for some more information...
//In parent form
public SerialPort comport = new SerialPort();
child_Form childForm= new child_Form();//this is the child form
child_Form .MdiParent = this;
comport.PortName = "COM1";
//In child form
if(!((ParentForm)this.MdiParent).comport.IsOpen)
((ParentForm)this.MdiParent).comport.Open(); // Getting error on this line
((ParentForm)this.MdiParent).comport.Write("send the text on serial Port");
I am getting intellisense for parent's 'comport' in child form.
above two sentence in child are write or wrong...? where i'm doing mistake...?
Thanks in adavance,
Vinay
|
|
|
|
|
Hi,
I'm not sure if this is your problem, but I think you don't have defined baud rate, parity, data bits and stop bits for your comport.
OR
Try send your comport trough parameter to your child form.
I hope it helps,
Jure
|
|
|
|
|
Hi,
I am still having problems having an e-mail pop-up from an <a></a> tag. The subject contains an "&" and there cuts off certain text. I was told to use Server.UrlEncode which does work to a degree, but then it adds "+" to the spaces (which I don't want), like:
Enquiry from J&D+Ship+Services
It should actually be:
Enquiry from J&D Ship Services
Here is my code in the .aspx page:
<a href="mailto:<%= Globals.InfoEmail %>?Subject=Enquiry from <%= Server.UrlEncode(Globals.CompanyLongName) %>"><%= Globals.InfoEmail %></a>
I hope someone can help me.
Regards
ma se
|
|
|
|
|
Try %20 for spaces an %26 for &: J%26D%20Ship%20Services
demo link
____________________________________
There is no proof for this sentence.
|
|
|
|