|
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?
|
|
|
|
|
Keep in my that WPF has alot more features than Windows Forms (and the like).
1. Routed Events make this a little more difficult because now a given event is not fired on a single object.
2. I also use the "sort alphabetical" option when working in WinForms, so I also miss this one.
3. Again, things are complicated by how WPF works. In WinForms, it would/could serialize out C# code to generate the new Font or Color object. In WPF, it would need to add/modify resources (at many levels) which could be used by many different objects.
4. Another good point. I typically use the XAML view to "select" the object I want, but it takes some getting used to.
5. Data Binding is extremely complex, especially when using Relative Sources, Value Converters, etc.
I was equally disappointed when I started using it. But I'm sure they will come up with something better in the future
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
Thanks for the response.
For number 1, I noticed that I can always type the event into the XAML, so it didn't look like much of a stretch to go one step further and put it in the property grid. Maybe in some cases (that I haven't run across yet) the event can't be manually typed into the XAML. In any case, it requires scrolling through loads of text to see which events are being used now.
And for number 4, it would seem like a good idea to give the XAML viewer a combobox to help deal with cases when there are many controls to deal with. I'm sure I can get used to scrolling through the XAML text, too, but it still strikes me as a step backwards in terms of usability.
And for number 5, although there may be technical reasons why Microsoft dropped the property grid databinding support, it's a real drawback to moving to WPF, as some tools that my project team has implemented use that feature a lot.
|
|
|
|