divil
*Gurus*-
Posts
3026 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by divil
-
I installed Windows XP on my main machine at home in late 2001 when it came out, and haven't had to format since. This is the first time that's ever happened to me with any version of Windows - before, I'd be looking at six months max before things would get slow/clogged up/corrupted and I'd need a reinstall. I used to be fairly partition happy, too. I have three on that machine - OS, Development and Games/Music/Graphics. However since then I've regretted it, and I'm now firmly of the opinion that setting up elaborate partition systems is pointless (although strangely fun) and I'm going with one big one next time.
-
You get send CDs (or DVDs) once a month, if there are any to send. This includes betas of all technical software. You get pretty much everything Microsoft produces that conceivably has development use (i.e. not games). A subscription lasts one year, so if it expires the day before a new version of VS comes out, you won't get it. However the licenses for the software included are perpetual, so you can go on using the software after your subscription ends. The main restriction is that you have to use the software for development/testing purposes - for instance, you can't use the Exchange license for running your company's email system, or SQL Server for running your production website database.
-
All modern programming languages borrow from each other. It's impossible to do otherwise - good techniques and best practices extend beyond the syntax of the language you're using to whatever OO framework you use with it. Similarities are inevitable.
-
ISelectionService selectionService = (ISelectionService)GetService(typeof(ISelectionService)); selectionService.SetSelectedComponents(new object[] { myPanel });
-
In VB6, labels were windowless, allowing it to paint them on top of whatever was behind them. Windows Forms does not support windowless controls, but has a far better framework for doing your own drawing. I suggest you write a simple library that you can plug in to your form that will draw text when it needs to, and raises any mouse events that you need. As long as you're storing rectangles for where to paint your text, you can do hit testing in your container's MouseMove etc events.
-
http://www.remotesoft.com/salamander/protector.html This product will completely stop any automated decompilation or disassembly of your .net assemblies back to IL or source code. The most anyone would be able to do is get a machine code disassembly, which you can do for any windows program.
-
Use the LockBits method. You may think you have an Image object, but really you have a Bitmap object. You never have an Image in .net - even if you use Image.FromFile, you end up with a Bitmap. So just cast it.
-
Might as well post your code here so we can see what's wrong.
-
Passing them should work, but you'll have to make a copy - you can't just have the same set of nodes in one treeview as another.
-
I'm going to buy Doom 3 to play on the big screen with the lights out. I want it because I think it's going to frighten me. I'm going to buy Half Life 2 because I expect it to push the limits of interactivity and be replayable for a long time, like the original was.
-
That sucks, what a kick in the teeth.
-
Just to add to what PlausiblyDamp said, based on my own experience with writing custom controls and components. Your OnEventName protected method should accept one parameter, an instance of the EventArgs which will then be passed on to the event. Also, the definition of your delegate (for custom event signatures) should be namespace-scoped instead of class-scoped. If you scope it to a class, some Visual Studio designers will have problems serializing code for it.
-
Haha, I love it! At the moment I'm torn between the nerd and party animal status - I struggle to get as much programming work as I can done (besides my day job - also programming) between going out every night to have fun.
-
It was a joke. Note the smiley. Seriously though, you're not having any speed problems with the site. Nor are a lot of other people. That's great, and you're very fortunate. However a lot of people are not so fortunate and that's something we're going to look at addressing - even if we can make simple changes like moving CSS in to its own file so it gets cached, every little helps. As alp0001 noted, one can go to the preferences and disable certain features which may help in some areas. The navigation template of the site will still be pretty heavy though, for the time being. Personally I enjoy seeing people's avatars but am less of a fan of gradients, popup menus and other widgets everywhere. To throw my opinion in to the other issue, and second what a few staff have already said - if anyone reading this _ever_ feels any reluctance to make a post here based on expected responses from other members, please send me or another mod/admin a private message so we can discuss it. We want to make this the #1 site for .net questions, both in friendliness and in technical knowledge of regulars. If anyone ever feels antagonised or put down, make sure you report it. Us moderators usually notice these things but like anything, sometimes things fall through the cracks.
-
The latter. C# has great refactoring tools in VS 2005. VB gets Edit & Continue. Joe Mamma: Interestingly, although I prefer C# to VB, the whole "End If" thing is one area where VB syntax wins. If you're looking at some code and all you can see is lines and lines of collapsing curly braces, that doesn't tell you very much about what exactly they're the close of. Especially when whatever it is, is offscreen. In VB you always know what your closing statement is the close of.
-
Caching has never worked quite right on either forum. Though it's difficult to notice now I have broadband, when I was on 56k it would be downloading all images on every visit to every page. Senility? :P
-
Internet connection speed aside, the design of both forums is pretty graphics-intensive. Not everybody wants a ton of graphics and every conceivable option listed in the pages they view. Nor do they want popup menus, inline CSS or gradients. Some would rather simply read the forum :)
-
Forms created in event handlers have unresponsive ui?
divil replied to Socks's topic in Windows Forms
Is your event being fired on a different thread to the rest of your UI? All UI objects must be created on the same thread. To marshal between threads, see Control.Invoke. -
50% of internet users are still on dialup. It requires a lot of patience to bother to navigate this place with a 56k modem.
-
Need help breaking out of standard window forms and buttons
divil replied to FalconDEW's topic in Windows Forms
The current version of the .NET framework does not contain classes to give you that kind of user interface. The next version will, to a limited extent. For the moment you will have to find a third-party control suite if you need this look and feel. Reproducing it manually is no small amount of work. -
If you implement IDesignerSerializationManager you can use the existing code serialization build in to the framework to serialize your designed form/document. This is the same stuff VS uses.
-
Not automatically. The best way is to create your control, build your project, put a normal radio button on your form and then edit the designer-generated code so it declares and instantiates your own type. Switching back to the design view will then show your control.
-
How can I preview the fonts inside a combobox?
divil replied to AlexMesquita's topic in Windows Forms
You'll need to respond to the DrawItem and MeasureItem events the combobox raises. Look in to owner drawing. -
What is programmation?
-
Heres a random thought: "How would Longhorn facilitate .Net programs?"
divil replied to Denaes's topic in Water Cooler
There won't be any significant performance increase with running a .net application on Longhorn, aside from the fact that .net will always be loaded so your application will open faster.