|
I tried to use \\server\directory but i got an error saying that UNC path can not be like that. What class can I use to convert the \\server\directory into a path that is acceptable by DirectoryInfo?
Thanks.
|
|
|
|
|
Post your code.
Are you making sure to format it like this:
@"\\server\directory"
?
|
|
|
|
|
Well insted of putting '@' infront I had "\\\\server\\directory".
|
|
|
|
|
|
I’m working with an ActiveX and it’s API has some samples on how to handle COM interfaces and so on.
How do I make the call QueryInterface in C#?
My C++ codline work like this:
<br />
hr = pMaterialField -> QueryInterface ( IID_ISFColorObject, (void**)ppDiffuseColor );
_____________________________
...and justice for all
APe
|
|
|
|
|
Try looking at the System.Runtime.InteropServices.Marshal class. This class has all kinds of static methods for handling COM interfaces and so on.
I hope this helps.
Deus caritas est
|
|
|
|
|
Hi,
I am trying for developing one application which will work as a Bluetooth Server to detect bluetooth enabled devices around its proximity and will transfer data to and from detected devices. If anyone is having any idea abt how to proceed or code snippet, do let me know
Sanjay
|
|
|
|
|
Hey, I'm trying to build my own ICryptoTransform-able class, so I could use it in CryptoStream, because as I know of, 2 chars in hebrew, transformed (in almost any transformable there is in System.Security.Cryptography) to 24 chars, so I would like to create my own so it wouldn't be so much... I already built the algoritm, and I inherited from ICryptoTransform as they wanted to, and I'm using MSDN to know what methods and properties I need to do, but there are two properties I don't know what to do with them, and what I should return from them... the properties are InputBlockSize AND OuputBlockSize, if anyone can tell me what to do in them, and even give me an exemple I would appriciate it...
oh and another thinh, can some-one tell me in the TransformBlock and TransformFinalBlock, what does every parameter stand for, and what do I need to return from it?
NaNg
-- modified at 8:30 Tuesday 9th May, 2006
|
|
|
|
|
I want to trap the page break event at runtime.I can't able to trap the page break at runtime in a running word document.
Requirement :
- When columns in a table span pages, need to repeat the column heading row at start of each page .Column means to say the total no of rows in a page is greater than the rows that can be printed in a single page, then in that case we have to repeat the column heading into the next page as well.
If anyone have any idea to implement this condition then please give your suggestions
rksingh
|
|
|
|
|
I want to maximize MDI child form and also disable maximize button of it. How can I do that?
Thanks
I'm ...
a fan of Manchester United
a fan of Ozzy Osbourne
a King of Nothing
|
|
|
|
|
I found the answer myself.
First, set maximize the child form in Form load event.
Second, set ControlBox of the child form to be False.
I'm ...
a fan of Manchester United
a fan of Ozzy Osbourne
a King of Nothing
|
|
|
|
|
hi
i have a project in CSharp with 2 forms(see demo project included)
one named frmFirstForm with a button named btnShowSecondForm
and two variables named myFirstVariable and mySecondVariable.The
other form named frmSecondForm has a button named btnShowFirstForm
I don't know how to hide frmFirstForm and show frmSecondForm when i press
btnShowSecondForm button.Like that when i press btnShowFirstForm form frmSeconForm
the second form hided and the frmFirstForm showed(not the new instant of frmFirstForm class).
And the last question:how can i use 2 variables of frmFirstForm from FrmSecondForm.
Anyone can help me.Thanks in advanced
dinhzap84@yahoo.com
zappa
|
|
|
|
|
there is one BEST way which I recomend, without using static variables and distroying your code, simply, go to frmSecondForm.cs, and you will see a Constructor, simply add parameters in it, i'll give you the example and then explain:
public frmSecondForm(object myFirstVariable, string mySecondVariable, Form prevForm)
all you need to do, is to add before that private variables, and then simply placing them from the constructor to the variables, and there you go.
Why Form prevForm?
that's how you can control the last form either, when you want (as you want - your click event on btnShowFirstForm), you just do:
prevForm.Show();<br />
this.Close();
ofcourse in the first form, you can't do the close method, cuz it will close your whole program, because it's the main [first] form opened.
Hope I helped... NaNg
|
|
|
|
|
thank you very much.I'll try it
i'm a new member and hope you'll help me later
zappa
|
|
|
|
|
Answer 1:
On Click event of btnShowFirstForm write this code
frmSecondForm.Show();<br />
frmFirstForm.Hide();<br />
On Click event of btnShowSecondForm write this code
frmFirstForm.Show();<br />
frmSecondForm.Hide();
Answer 2:
Declare variables as public and call them from second form like this:
<br />
frmFirstForm f1 = new frmFirstForm();<br />
string getvalue = f1.varablename;<br />
|
|
|
|
|
can any one help me ..i am implementing the SSL but at the final step i got the error...... failed to install......." keyset does not exist"
i have completed all the step carefully but still error
|
|
|
|
|
Hi i have an doubt about working with different versions of .net frame work.
because now i working on .net framework 1.0 and i need to work that same application with .net frame work 1.1, if any one faced the same problem plz share with me .
regards.,
ranandbe
|
|
|
|
|
The newest version is 2.0 so I would advise you to move to that.
What probblems are you facing?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
hi i created one componand in .net framework 1.0 and also it has in live,but now i need to reference that componand to my application(part of above application)in .net framework 1.1 ,i try to get reference but it give version error message,so how can i solve this problem.
thank you for your interrest on my question
regards.,
ranandbe
|
|
|
|
|
How about recompiling your component under 1.1 and using this instead?
|
|
|
|
|
How about telling us what the error message is?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Do you honestly think posting your question three times will help you getting an answer.?.
If you didn't notice yet, there are a Modify and a Delete link at the right bottom edge of your postings. Please, feel free to use them.
"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
|
|
|
|
|
I am using winform DataGrid in VS2003,but there is no property to set to make paging.How can i make my datagrid can paging large amout records.And i can not do this job in store procedure for some reason.This is tough.
Can somebody help me?
Robert
|
|
|
|
|
Im just starting to play with manipulating Active Directory using C# (never done any C# before).
I've followed some examples and extracted data for a given user, but its returning some odd data as follows:
badPasswordTime = System.__ComObject
lastLogoff = System.__ComObject
lastLogon = System.__ComObject
pwdLastSet = System.__ComObject
What is "System.__ComObject" and why am I not getting numeric data back?
Am I doing something wrong or missing something?
The code I am using (just a sample pulled off the web) is as follows:
<code> static void Main(string[] args)
{
string path = "LDAP://domain.com";
DirectoryEntry entry = new DirectoryEntry(path,"USERNAME","PASSWORD");
try{
Object native = entry.NativeObject;
DirectorySearcher search = new DirectorySearcher(entry);
search.Filter = "(SAMAccountName=ADTEST)";
foreach(SearchResult result in search.FindAll())
{
DirectoryEntry dirEntry = result.GetDirectoryEntry();
foreach (string key in dirEntry.Properties.PropertyNames)
{
foreach (Object propValue in dirEntry.Properties[key])
{
Console.WriteLine(key + " = " + propValue);
}
}
}
}
catch( Exception ex )
{ throw new Exception(ex.Message); }
Console.ReadKey();
}
}
}</code>
Any suggestions welcomed.......Thanks!
|
|
|
|
|
Hi All!
I have a little installation file, and after the user runs it, the app is installed, and all is good, I want to find the installation path. Can anybody tell me how I can do this?
Many thanks
Willem Le Roux
|
|
|
|