I've been looking around for a book or a site that does a good job explaining how to create a custom control. I would like that it cover issues like efficiency and usage of current .Net technologies. I haven't been able to find any information out there except for a book that was written while .NET was in beta. Anybody have suggestions?
Mr Rogers
Posts
-
Windows Forms Custom Control Reference -
Graphic ProccessHave you thought about using a DataGridView?
-
Quick Threading QuestionYeah, a separate thread yes. I've known how to start different threads and whatnot, just didn't ever know how to wait for one to finish without some kind of event. Thanks.
-
Quick Threading QuestionCool, thanks. I'll take a look at it.
-
Quick Threading QuestionHow do you spin a process off onto another thread and wait for it to complete? I'm looking for something like when you call ShowDialog and the process stops until the dialog has been closed.
-
MeasureString and HTMLI've found so far that Firefox and IE are fairly similar when using gdi to determine the size of fonts. I'll have to check out my margin and whatnot to see if that's where I'm getting my problem from.
-
MeasureString and HTMLIf I specify the font size using css the user is unable to change the font size and I'm not so sure about Macs not having Arial but that's besides the point. Also, I don't care how big the user has their browser because I just want to know the dimentions of a given set of text. I will be the one locking in the size of the text area using HTML. I simply can't believe that there is no way of determining that out without using the HTML DOM. Still, thanks for your input.
-
MeasureString and HTMLMaybe I should clarify a bit more then. I want to be able to predict the flow of text that I'm placing into HTML. I'm applying styles to the text using CSS. For example, I know that it's going to be Arial 12 px. So why shouldn't I be able to determine the way that say IE or Firefox are going to render it?
-
MeasureString and HTMLI'm trying to determine the dimensions of a string as it will appear in HTML. The closest way I've been able to do this is to use a graphics object and use MeasureString. However, there seems to be a slight difference between GDI and HTML with the dimension of strings. Does anybody know how I can reliably measure the string? Thanks in advance.
-
ToolBar and toolBarButton ProblemSorry man, didn't know that you'd tried that. It appears to be overridden and maybe this was done just so that the toolbar could inherit from Control but not do anything for the backcolor property. You might have to write your own if you're set on changing the color.
-
ToolBar and toolBarButton ProblemYou looking for?
ToolBar.BackColor
Not too sure on the Button -
Advise on displaying HTML documentThere's going to be a .Net control for the IE window in C# 2005? That's sweet. Using the Microsoft Web Browser is great and all, but sometimes it's a pain. I hope that the .Net control will be a little easier to work with. Is there anywhere where I can go to read up on it?
-
AxWebBrowser - create a document on the fly?What you're both going to need to learn to use is MSHTML. Which is basically DHTML. So if you already know DHTML it makes it really easy. If you don't know DHTML but you understand XML, then you shouldn't have too many problems. So what you're going to need to do is get ahold of the Body element of the Document page and insert the HTML that you need by either creating the elements on the fly which is the most correct way, or by doing something like body.InnerHTML = "my html stuff". If this doesn't make any sense I'll try to find you some links that I used to learn it.
-
How to implement a registration key for my application?Hehe, sorry about that.
-
How to implement a registration key for my application?Check this out http://www.codeproject.com/csharp/registry1.asp[^]
-
Limit to one cpuSweet, thanks for the quick replys. Arun My application that uses the third party tool is not multithreaded. Daniel Yeah, I saw that in the task manager, that's what led me to believing that the multi cpu was the problem because when I did set the affinity to just one cpu it works great. parths Sweet, I'll have to try that out and see if I can limit it using that call. UPDATE: I tried that SetProcessAffinityMask method and it worked like a charm. I added what I did to the www.pinvoke.net/[^] collection. Love that site. Thanks for you help.
-
Limit to one cpuIs there anyway to programmatically limit an application to one cpu? I have a third party tool that dies on multiprocessor computers but it works great on one processor. Any ideas? :~
-
PDF ActiveX ControlAnyone know where I can get my hands on some documentation for the PDF ActiveX Control?
-
Viewing Exported Functions and Parameters in a DLLHeath Stewart wrote: If you're talking about native DLLs (which you most likely are since you're viewing the EAT with DUMPBIN), this is not even possible. That's really good to know. Thanks a ton Heath. Looks like you're answering everybody's questions today.
-
Viewing Exported Functions and Parameters in a DLLLately I've been getting pretty excited with Interop stuff, but I have one problem, I have no idea what the parameters for a particular .dll method are. I know how to view all the exported functions in a method using DUMPBIN or LINK (if anyone knows a better way, I'm all ears) but it doesn't tell me anything about the parameters. Any ideas?