Jump to content
Xtreme .Net Talk

divil

*Gurus*
  • Posts

    3026
  • Joined

  • Last visited

Everything posted by divil

  1. I'm not sure if the built-in console class has a way to read a single key, but if it doesn't there is a ConsoleEx class written by a guy at Microsoft which offers far more things than the framework one does. Get it here.
  2. The documentation has samples for creating COM objects, and there are lots of examples and tutorials online too. It's not something which anyone would _want_ to do, but a lot of the time you have to.
  3. I'm on a 56k modem and using WebClient to download data works just fine for me, no timeouts. You can get anything in a response stream, whatever the webserver throws out. This includes binary data.
  4. I don't honestly think there is one. What you can do depends on how the FTP server has the file opened. It might me that you can open the file and check for a length of 0, or you could try opening the file for write and trap an exception, that ought to work. Alternatively, I found this solution which uses the OpenFile to ascertain if a file is opened by another process or not. You'd have to port from VB6 calling API, to VB.NET but it might be an answer.
  5. You can bind a datagrid to a disconnected dataset I think, but I haven't actually done this myself. Searching Google with those keywords will probably help you.
  6. As a side note, the immediate window can handle equations like that I think. [edit]Perhaps not.[/edit]
  7. Regardless of how much PHP sucks, that has nothing to do with presenting a WYSIWYG input on an HTML page :P
  8. I can think of no reason why the event wouldn't fire, if you're using C# are you sure the event is hooked up properly? Have you tried putting a Messagebox.Show in there?
  9. I believe this article does roughly what you need.
  10. It shouldn't, their programmers must suck. I've done quite a few WYSIWYG inputs for site content management, and it needn't take any longer to load than a conventional form, bar a few lines of javascript.
  11. http://www.xtremedotnettalk.com/showthread.php?s=&threadid=49315 I posted this because it covers virtually every angle of distributing .NET applications.
  12. This is not a straightforward topic. For more information on exposing .NET DLLs as COM objects, see the following help topic in the framework SDK: [mshelp]ms-help://MS.NETFrameworkSDK/vblr7net/html/valrfCOMClassAttribute.htm[/mshelp]
  13. It's odd that you can't add the webbrowser control at design time. Assuming, though, that you have it declared withevents as wb, as I did, you can just modify that last sub as follows: Private Sub webbrowser_DownloadBegin(ByVal sender As Object, ByVal e As System.EventArgs) Handles wb.DownloadBegin doc = DirectCast(webbrowser.Document, mshtml.HTMLDocument) AddHandler DirectCast(doc, mshtml.HTMLDocumentEvents_Event).onmouseover, AddressOf onmouseover End Sub
  14. Using any WYSIWYG HTML editor is always going to result in _some_ extra bits added to your code, it's the nature of the beast. That's why I never use them. That said, the VS.NET one is one of the best I've seen, it formats HTML nicely and inserts a minimum of useless stuff.
  15. I'm not sure about DirectX 9, but in previous versions there was no support for alpha blending in DirectDraw. It may have changed for this release, but I'd be surprised.
  16. I think Textboxes have proper clipboard commands: DirectCast(Me.ActiveControl, TextBox).Cut()
  17. INI files haven't been a recommended method of data storage since Windows 3.11.
  18. That last like should translate to: AddHandler DirectCast(doc, mshtml.HTMLDocumentEvents_Event).onmouseover, AddressOf onmouseover) Assuming you have declared the onmouseover sub in your code properly. If you haven't, it will tell you so and how to fix it. I'm sorry if I haven't got it exactly right, I don't have time to look at the example I posted at this instant.
  19. You can't. The only way you could do this is by keeping a hashtable object around to associate text values with treenode objects as you add them. If this would be useful to you, I suggest looking up the Hashtable class in the help.
  20. I would have a picturebox as the background of my form, with its dock mode set to Fill so it takes up the whole form. Then any child controls can be placed on it. You can set the Image property of the picturebox to load your picture in, then the SizeMode of it to StretchImage. That should do what you need.
  21. This topic interests me. I posted an example in this thread of how to catch HTML document events from within a .NET app hosting a webbrowser control. You could make use of this to do exactly what you need. I would be interested to see the results if and when you implement this.
  22. I think the .NET installer does support having a license agreement. You have to add it to the "User Interface" section of the project. It also supports registring COM DLLs.
  23. The best way to add treenodes is to create the TreeNode object first, then add it to the treeview: Dim t As New TreeNode("text") TreeView1.Nodes.Add(t) You can then find out the index of the treenode with the Index property of t.
  24. Assuming you have a picturebox on your form called PictureBox1... Dim wc As New System.Net.WebClient() Dim bdata() As Byte Dim ms As MemoryStream bdata = wc.DownloadData("http://www.xtremedotnettalk.com/images/logo.gif") ms = New MemoryStream(bdata) PictureBox1.Image = Bitmap.FromStream(ms)
  25. Don't worry about it quwiltw, next time you make a spelling error I'll be watching... :P
×
×
  • Create New...