|
I created project , In OpenFileDialog windows under "My computer" Drives are not getting displayed. I checked the system policies everything is fine. What are the different possibilities where i can check why "My Computer" trees is not displaying Drives. (Is there something related to CAS)?
BSK
New Bee
|
|
|
|
|
HI,
Iam new to c# Can anyone help me insolving this problem when i try to give "/n" the display show one small box insted of going to below line
Thank you,
Regards
Praveen
|
|
|
|
|
string line = "This is new \nline";
result:
This is new
line
|
|
|
|
|
It's \r\n, but you should use Environment.NewLine instead.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
you may use '\r' '\n' instead of using \n. This will definitely work
sAqIb
|
|
|
|
|
Iam overriding string to BSTR so /n/r and Environment.NewLine gives again Boxes and no new line.
|
|
|
|
|
isn't newline cairrage return something like 0A 0D or something? You could try adding '/0A', '/0D' to your character array.
It's a wild guess though...
|
|
|
|
|
Hi,
try to use
'\r\n'
Hope this works.
Nitin...
|
|
|
|
|
Hy,
How to use ParseExact with date in this format 20060918T084735Z or 20060918T104723+0200.
Thx
|
|
|
|
|
|
Hi Dear Respected Programmers
kindly help me, i am working in Form2 and i want to use Combobox1 from Form1.
please let me know, How do I work?
|
|
|
|
|
set combobox (in form1) as public (look at combobox property default it is private adn us set it public)
|
|
|
|
|
just change the property of the combobox from private to public, it will be accessible in form2.
sAqIb
|
|
|
|
|
Hi everybody.
as we all know C#, like java, is a reference based language.
so my question is how can I build an array that all of its cells are one after another in the memory? for instace, if I write a B-Tree in c# (or java for that matter), how can one do that?
Thanks
|
|
|
|
|
Green Fuze wrote: as we all know C#, like java, is a reference based language.
Except for value types. e.g. DateTime
|
|
|
|
|
Arrays *are* contiguous in C# (or even Java, for that matter). The fact that they are reference types doesn't mean a linked list like implementation.
|
|
|
|
|
I understand it is an array in the memory (although it is reference, and not a linked list), what I wanted to know how can I "disable" this reference, and create 2 objects in the memory, one after another.
|
|
|
|
|
Try working with pointers in unsafe { } blocks. That gives you the functionality as it is implemented in C++
WM.
What about weapons of mass-construction?
|
|
|
|
|
Thanks
|
|
|
|
|
I have come across something that I can only describe as the strangest bug I have ever encountered whilst working with the .NET Framework.
I have the following code:
static void Main(string[] args)
{
string localAppDataPath = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
string rsaSessionPath = @"Microsoft\Crypto\RSA\S-1-5-18\";
string fullPath = Path.Combine(localAppDataPath, rsaSessionPath);
DirectoryInfo di = new DirectoryInfo(fullPath);
FileInfo[] rsaSessionFiles = di.GetFiles();
foreach (FileInfo rsaSessionFile in rsaSessionFiles)
{
if (rsaSessionFile.CreationTime < DateTime.Now.AddDays(-3))
{
rsaSessionFile.Delete();
}
}
}
As you can see this is a very simple piece of code that retrieves all files within a specific directory and then deletes all the files aged 3 days old and over.
Now this application works exactly as I would expect it to, however I have found an interesting side effect of execution.
The server this application runs on, has various user with varying degrees of permissions. One of these user accounts (with admin privs) is used to execute various windows scheduled tasks. When I execute the application, the user on the scheduled task changes to the Administrator account, however the password is left as the password for the original account. Therefore the scheduled task fails.
I have tested this to death and cannot find another reason, everything points to the application code above. However as you can see it doesnt go anywhere near scheduled tasks so I am at a loss to explain this.
In a crazy turn of logic I also checked that the scheduler doesnt store any information in the directory the application clears out, and this is the case. Even with the delete directory emtpy, the same problem occurs.
Can anybody shed any light on this?
-- modified at 5:41 Monday 18th September, 2006
Interestingly, I have also created another new administrator account and logged on with this, when I run the application the user on the scheduled task changes to the new account name. So it seems that it changes to whoever is logged on and executes the application
|
|
|
|
|
Good day
I am supposed to run a manifest file on msbuild to create a bootstrapper but i do not know where to access or lauch MsBuild.
Can anyone help me. Thank you in advance
Kulile --- RSA
|
|
|
|
|
Good day
I am supposed to run a manifest file on msbuild to create a bootstrapper but i do not know where to access or lauch MsBuild.
Can anyone help me. Thank you in advance
Kulile --- RSA
|
|
|
|
|
I have been reading several articles on the web about datagrids in Visual Studio 2003. Everything seems to be quoting web applications, not windows applications.
The following is for a Windows Application NOT Web App
I have 7 text boxes as a header, on exit of the 6th or 7th box, if the record exists I wish to copy the information from the text boxes to the grid below. I have worked out how to build the grid but am now struggling to accomplish the remaining task
Can anyone please help me using C#, how to copy the info from a text box to a datagrid.
Someone suggested using a container but this meant nothing to me, any assistance would be much appreciated
|
|
|
|
|
if the data source of the grid is dataset , then add any row to the
associated datatable
Tamimi - Code
|
|
|
|
|
How do you add a row to the datagrid, this is what we are struggling with
|
|
|
|