|
Hello!
I would like to create a windows explorer toolbar in .NET Framework.
I read an article about it, but it is a little difficult.
Maybe there is a simple way of creating a toolbar that will be able to do
some simple functions?
Thanks in advance!
Have a nice day!
|
|
|
|
|
what is diff b/w after trigger and instead of triggers
raja
|
|
|
|
|
1. Wrong forum
2. Use Google
|
|
|
|
|
Wrong forum. Try the SQL Forum and google
"I guess it's what separates the professionals from the drag and drop, girly wirly, namby pamby, wishy washy, can't code for crap types." - Pete O'Hanlon
|
|
|
|
|
Hello,
I check for the existence of a file using File.Exists(path). The file does exist, but the method returns false when running on Vista.
Can anyone help?
modified on Thursday, February 07, 2008 4:32:07 PM
|
|
|
|
|
I haven't ever had a problem with File.Exists in Vista. Are you sure the path actually exists and you aren't using an older format path, for instance trying to access 'Documents and Settings' instead of 'Users' (that is assuming Vista doesn't automatically handle this sort of thing.)
Also, I would point you in the direction of the MSDN documentation, specifically:
If the caller does not have sufficient permissions to read the specified file, no exception is thrown and the method returns false regardless of the existence of path.
Are you sure the user the program is running under has the correct permissions? Try running the IDE as an administrator and see if you get the same problem.
Finally, if you're entering the path as a hard coded string, make sure the slashes are correctly escaped, e.g:
"c:\\path\\file.ext" or @"c:\path\file.ext" not "c:\path\file.ext"
Normally the compiler will pick up this sort of problem. These examples work in C#, I can't say with confidence whether the same applies to VB .NET or Managed C++.
|
|
|
|
|
Thanks for the reply, all sorted now. I can't believe I missed the security statement in the documentation. Oh well, it was a late night.
|
|
|
|
|
Hi All,
I am writing a 64 bit class library hence I assume I need to use 64 bit compiler ( csc.exe )
I would like to know how can I configure Visual Studio 2005 so that csc.exe present in C:\WINDOWS\Microsoft.NET\Framework64\ is used instead of the csc.exe present in C:\WINDOWS\Microsoft.NET\Framework\ which i assume is the 32 bit compiler
- Rakesh
|
|
|
|
|
I believe you can use the build configuration manager to change whether to compile as a 32-bit program, a 64-bit one, or as one that can go both ways.
www.socoder.net
|
|
|
|
|
The output MSIL code is identical whether you select MSIL (AnyCpu), x86 or x64 output. The only difference is a flag in the header stating which platform it was compiled for. EXE files (I'm not sure about DLLs) carry a PE64 header indicating it can only be run on the 64-bit OS.
The actual processor-specific code is compiled at runtime by the JIT compiler.
A class library marked MSIL (AnyCpu) can be loaded into a 32-bit or a 64-bit process. The only reason to mark it as one of the others is if you've written any code which assumes the size of a pointer, or uses any APIs that are different between the two platforms.
The only difference between the two versions of csc.exe is that the version in Framework64 is itself a 64-bit executable. Either version can produce code marked with any of the three platform types.
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
Hi All,
I implemented a C# class library and registered it to be visible for COM objects, then i used it from VB6 application and it works fine. Now the problem is that i want to raise an event in the .NET COM and pass it as an event in VB6. i.e. when the .NET COM catched an exception i want it to raise event in the VB6 application to log the event (because the logger works there). Any ideas?
Thanks,
Mayy
modified on Wednesday, February 06, 2008 5:45:48 PM
|
|
|
|
|
MayyMagdy wrote: Any ideas?
You need to implement a COM event.
led mike
|
|
|
|
|
Thank you. But this doesn't help how to implement it?
|
|
|
|
|
Hi i developed a tool which allows you to download whole the source code from microsoft at once.
You don't need VS2008 to download and debug the source code. You can use VS2005 to debug the source code also.
Just grab your copy of MassDownloader From NetMassDownloader.
You can contact me via keremskusmezer@gmail.com for any questions.
|
|
|
|
|
I feel I must 5 vote you to counterbalance the 1s.
|
|
|
|
|
There are so many '1' votes that the message has accumulated that our '5s' seem to be daunted.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Hi,
I've the following code that runs in a timer function every second. OnTimedEvent() is a timer delegate that is invoked by Windows timer every second. It uses MFC/Windows SDK. It sets the processor priority for the thread that is running this code.
void CPci1553::OnTimedEvent( Object^ source, ElapsedEventArgs^ e )
{
//set the timer thread affinity to second process and set it to higher priority
SYSTEM_INFO info;
//get the configuration information of computer
GetSystemInfo(&info);
//if the system has more than one processor, use the last processor for TOD thread
//set the thread affinity to second processor
if(info.dwNumberOfProcessors > 1)
SetThreadIdealProcessor(GetCurrentThread(),info.dwNumberOfProcessors-1);
}
I need to upgrage this code for .NET using C++/CLI. I tried to use .NET functions like "System::Environment::ProcessorCount" to processor count in on the system, "System.Diagnostics.ProcessThread.IdealProcessor" to set the processory priority for the thread, "System.Threading.Thread.CurrentThread" to get the current running thread for this code. But the problem is "System.Diagnostics.ProcessThread" is unmanaged thread and "System.Threading.Thread" is managed thread. I don't know how to mix these two. Pls. help me with this code.
Thanks
Ram
|
|
|
|
|
I'm using System.Net.NetworkInformation.NetworkInterface to get the information about network connections to my PC. But this class seems to be 'Read only', i.e., I can view the information about network connection. For example System.Net.NetworkInformation.NetworkInterface.OperationalStatus tells us whether network connection is Up or Down. Is there any away that I can change that status programatically? i.e, can we enable/disable the network connection programatically?
Thanks
Ram
|
|
|
|
|
well. i guess there is no "managed" way to perform this task.
but if you´re willing to use some native winapi functions you
probably want to check out the following function defined in setupapi.h
SetupDiChangeState
SetupDiChangeState is the default handler for the DIF_PROPERTYCHANGE installation request. This function changes the state of an installed device.
WINSETUPAPI BOOL WINAPI<br />
SetupDiChangeState(<br />
IN HDEVINFO DeviceInfoSet,
IN OUT PSP_DEVINFO_DATA DeviceInfoData <br />
);
returns true if successful, false otherwise. if false, use GetLastError() to get more information.
a c# wrapper would look something like this:
[DllImport("setupapi.dll")]
public static extern WINSETUPAPI SetupDiChangeState(IntPtr DeviceInfoSet,
PSP_DEVINFO_DATA DeviceInfoData); //define PSP_DEVINFO_DATA as defined in setupapi.h
|
|
|
|
|
|
I am designing a project which requires that users can create their own plugins, by inheriting a class.
The class they inherit from inherits Form, and I am wanting to make it a bit more simple for the users to find the pertinent properties/methods of my class, and not have to dig through all the Form members.
The only way to do this is by shadowing all the members of Form and using EditorBrowsable/Browsable attribute right?
Has anyone ever done anything like this in a different way?
www.wickedorange.com
www.andrewvos.com
|
|
|
|
|
Hi Folks
Is there any way to implement a Pagination section (i.e. Page Count, Current page, and Page Navigation) inside the DataGridView, or will it have to be handled externaly?
I haven't found anything on it but i'm hoping there might be.
Cheers
Tris
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Tristan Rhodes wrote: Is there any way to implement a Pagination section
Not sure what you mean but perhaps you are looking for DataGridView.VirtualMode property?
led mike
|
|
|
|
|
I looked at that, and it didn't do what i wanted.
I'm basicaly looking for a way to get the same paging bar on a DataGrid as you get in the ASP.Net version:
<< < 1 2 3 4 5 > >>
I take it that's not possible then?
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
Tristan Rhodes wrote: I take it that's not possible then?
Of course it is. I guess what you mean is it may not be possible by dropping a control on a form and setting some properties, you might have to actually develop some software yourself for it to be possible. You would do so by using the VirtualMode setting of the DataGridView. If you Google around you will find some articles where people have implemented paging. I don't know if they used the same << < 1 2 3 > >> control or not, it's irrelevant, paging the data in the control is a completely separate issue from how you implement capturing the users input to control the paging.
led mike
|
|
|
|