|
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
|
|
|
|
|
Sorry, my question was whether one existed that was integrated with the DGV or whether i would have to make my own.
I did the manual route anyway, but thanks for the feedback.
-------------------------------
Carrier Bags - 21st Century Tumbleweed.
|
|
|
|
|
I'm new for networking programing and i wanna know that how to write a java program for mesure to ping delay for particular site
Ex-: If we ping in command promt www.googe.com how to write a program for mesure ping delay??
CheeN
|
|
|
|
|
sacr83 wrote: how to write a java program
And you thought posting the question on a forum for .NET development was the best way to get that answered?
|
|
|
|
|
when we use the abstract class nad when we use the interface int applictions
raja
|
|
|
|
|
Google not working for you? There are many many results available: Google[^]
|
|
|
|
|
I'm assuming your question is more of a design question (where Google might not help much), as opposed to a simple question of what each is...
Personally, I tend to favor interfaces over abstract classes. I tend to use an abstract class only when I want to implement something like the template design pattern. I've been steadily moving towards keeping my objects more loosely-coupled, which interfaces help to do quite nicely. With an abstract class, however, that's not really true.
Hope that helps a bit.
BW
|
|
|
|
|
An interface is more of a service contract, whereas an abstract class is a base set of functionality which is useless by itself.
|
|
|
|
|
Yep, exactly. It took me a year to really get that.
|
|
|
|
|
how to handle the error handle in sqlserver 2000?
raja
|
|
|
|
|
Check the value of the global @@ERROR variable.
Paul Marfleet
"No, his mind is not for rent
To any God or government"
Tom Sawyer - Rush
|
|
|
|
|
I'm trying to move from programmatic configuration of remoting to using a config file, but I can't seem to get the config file to work.
Here's the relevant programmatic code (server side)...
<br />
BinaryServerFormatterSinkProvider serverProv = new BinaryServerFormatterSinkProvider();<br />
serverProv.TypeFilterLevel =System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;<br />
BinaryClientFormatterSinkProvider clientProv = new BinaryClientFormatterSinkProvider();<br />
IDictionary props = new Hashtable();<br />
props["port"] = 8000;<br />
TcpChannel serviceChannel = new TcpChannel(props, clientProv, serverProv);<br />
ChannelServices.RegisterChannel(serviceChannel, true);<br />
AccountConnectionService service = new AccountConnectionService();<br />
RemotingServices.Marshal(service, "myService", typeof(IAccountConnectionService));<br />
This works just fine.
Here's my .config file...
<br />
configuration<br />
system.runtime.remoting<br />
application<br />
service<br />
wellknown type="Common.AccountConnectionService,Common"<br />
mode="Singleton" objectUri="myService"<br />
wellknown<br />
service<br />
channels<br />
channel ref="tcp" port="8000"<br />
channels<br />
serverproviders<br />
formatter ref="binary" typefilterlevel="Full" <br />
serverproviders<br />
clientprovider<br />
formatter ref="binary" typefilterlevel="Full"<br />
clientprovider<br />
application<br />
system.runtime.remoting<br />
configuration<br />
This doesn't work. It throws an "Authentication Exception" because the transport connection was closed. I'm not sure what the difference is or what I'm missing. I checked out the MSDN documentation, but tbh I couldn't make heads or tails of it. (I've cobbled this config together from various tutorials.) I don't think this should matter, but I'm still using programmatic configuration on the client side, I can post that code also if it helps. Any help is much appreciated.
BW
p.s. I apologize for the config looking ugly. The xml was getting messed up in the post, and I couldn't figure out how to make it look right.
|
|
|
|
|
Well, no replies so far...maybe a different question...
Does anyone know where to find a *thorough* tutorial/article on using a .config file for remoting?
And please don't say "just do a search, there are plenty out there," because every one I've seen so far is most certainly NOT thorough. Even the articles I've found on MSDN generally only touch on a few of the possible configuration features. The doc on the schema of configuring for remoting is also noticeably out of date. If someone could point me to one they already know of, though, that would be very much appreciated.
That said, if I don't get an answer here or elsewhere...I've got Rammer's book on the way, so hopefully I'll find what I need in there (but an earlier answer would be nice ).
Thanks for any help.
BW
|
|
|
|
|
Hey
Just wondering if there is a built in control that offers functionality similar to the slide out panels in Visual Studio? I have considered either creating my own or modifying the split panel control. But if there is built in functionality I would much rather use that.
Thanks
Dan
At university studying Software Engineering - if i say this line to girls i find they won't talk to me
Dan
|
|
|
|
|
There are lots of commercial packages: here[^], here[^], here[^], here[^], here[^], etc.
There are a couple open source ones also: here[^], here[^], here[^], etc.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Cheers - that's helped me out loads
At university studying Software Engineering - if i say this line to girls i find they won't talk to me
Dan
|
|
|
|
|
Sir/Madam,
Our departmenatal packages have been written in vb.net 1.1 version and runs on Windows operating system.Is it possible to run this package in SUSE Linus Operating System (version 10) by converting vb.net code to Java enabled.
J R D Solomon
|
|
|
|
|
Take a look at Mono[^] and see if you can use it, then you don't need to convert the code at all.
Experience is the sum of all the mistakes you have done.
|
|
|
|
|
I've used a number of Microsoft IDE's over the years, and (in general) I've managed to get used to the changes that they make, for better or worse.
I do not, however, understand why the property grid in the WPF designer is so featureless compared to what it was like in Visual Studio 2005.
Let's see here:
1. No events
2. No alphabetizing (yes, it has the search instead of the sort, so I guess it's just -1/2 point on that one)
3. No color chooser or font chooser or any other convenient pop-up.
4. No combo-box for choosing components out of the diagram by name.
5. No direct support for data binding of control properties.
I fail to see what Microsoft is trying to accomplish with this gimpy property grid. Does anyone else have any idea?
|
|
|
|