Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. It might be easier if you could attach the actual code, or failing that a cut down versin of the relevant classes and methods that exhibit the problem / demonstrate the expected behaviour.
  2. If you just want to turn an xml document into a byte array you could just use a stream writer and a memorystream.
  3. Does this occur with a specific browser or with any browser?
  4. The indexes are the offsets defined by the id3v1 specification http://www.xtremedotnettalk.com/showpost.php?p=457397&postcount=8 above lists them for you.
  5. If you open the assembly in ildasm and look at the manifest do you see some lines that begin with .mresource public if the resource is being embedded at least one instance should be present.
  6. Masterpages, Navigation API, profiles, web parts, XHTML compliance, better support for non-MS browsers, improved security model for starters. Add to that a much more organised infrastructure with large parts of it implemented as a provider based system giving far more flexability.
  7. It looks as though the individual buttons are not implemented as individual windows (which does make sense in terms of performance / resource usage) , controls that need to receive their own messages (TextBox etc.) are however treated as a window. It would appear that internally the toolstrip control decides which button was clicked etc. by checking the mouse co-ordinates. This, unfortunately, doesn't really give an easy way of detecting (or really any form of interaction with) individual buttons. There may be an alternate solution to your problem, could you give some more details about what you are trying to do and the reasons why?
  8. Try Dim s As String = "" If vDataTable.Rows.Count > 0 Then For Each vRow In vDataTable.Rows s = s & " " Next lblCompany.Text = s End If
  9. NDoc still has issues with some of the .Net 2 constructs (generics being one of them), although development is still happening and apparently a new version is in the works. There are other documentation tools out there but none that are free (or I haven't seen any so far).
  10. You need to instantiate the array before you can use it, effectively that means you know how many elements it will hold when you create it. Otherwise you could use the RedDim command to resize it, although that can result in poor performance. You might be better of creating a class or structure to hold the 4 values you are storing for each row, and then creating an ArrayList of these. Also if you are using .Net 2 then a List would be even better.
  11. It looks as though the function isn't returning an array hence the null reference. Could you post the relevant code from the method in question?
  12. It looks like a permissions problem. Does the ASPNET account have permission to write to the folder in question?
  13. IIRC you need to call the GetManifestResourceStream on an instance of an assembly. Try GetExecutingAssembly() to return the current assembly.
  14. Private Sub HideAllPanels(ByVal ThePanel As Panel) For Each ControlObj As Control In ThePanel.Controls If TypeOf ControlObj Is Panel Then ControlObj.Visible = False If ControlObj.Controls.Count > 0 Then HideAllPanels(DirectCast(ControlObj, Panel)) End If End If Next End Sub
  15. If you are in control of the packet format then converting any format to a byte array and sending that is a fairly easy thing to do. Are you looking for a sample on how to generate the byte array, the udp packet or how to actually communicate via sockets / udp?
  16. Not sure if it works in C++ (don't have it installed on the PC to test either) but in C# if you prefix the string with an @ symbol then it doesn't escape anything.
  17. Try Private Sub HideAllPanels(ByVal ThePanel As Panel) For Each ControlObj As Control In ThePanel.Controls If TypeOf ControlObj Is Panel Then ControlObj.Visible = False If ControlObj.Controls.Count > 0 Then HideAllPanels(ControlObj) End If End If Next End Sub Because the panel can contain other controls as well as panels you need to use as Control in the for ... each loop.
  18. There wasn't a great deal of difference between myself and Nerseus joining, both towards the end of 2002. As far as I'm aware (and from some digging in older posts) most of the original mods and admins carried over from the sister forum, as a bit of trivia Divil was the first mod exclusive to this forum (way back in November 2002). The founding member itself was Bob who originally owned the original EVB forum and then this one before selling them to iNet. As to when the split occured I'm guessing around the release of .Net (early to mid 2002). Other than the initial set of Admins / Mods all badged members have been promoted from the community (other than the iNet group), and as far as I'm aware that was how it was originally done on the EVB forum.
  19. It's that long ago I honestly can't remember, so in the name of preventing too much duplication I'm going with as it seems the most likely answer.
  20. You could always try handling the Move event and just reseting the position back, not sure how that would look though. If it doesn't look too good the nyou might need to handle the WM_MOVE or similar messages yourself and just ignore them.
  21. try Dim dirArr() As String = System.IO.Directory.GetDirectories("C:\Visual Studio 2005\Projects\AddressBook\") For Each itm As String In dirArr tsCombo1.Items.Add(System.IO.Path.GetFileName(itm)) Next
  22. Without seeing any code it is pretty difficult to pinpoint the problem. Be aware that writing correct multi-threaded code is not a trivial task as you often need to co-ordinate the multiple threads to prevent deadlocks and race conditions occuring. Any multi-cpu machine is more likely to reveal any potential issues as it is then actually running multiple threads concurrently.
  23. They both equate to the same thing anyway. System.String is the internal CLR name for a string and can be used in any .Net language, String however is VB specific and may not work in other languages, e.g. in C# it is string (c# being case sensitive).
  24. It depends on the data type used, doubles and singles are floating point numbers and as such suffer from rounding errors. It is never a good idea to compare floating poin numbers for exactly this reason. Decimal (under .Net) doesn't exhibit this problem as it uses a fixed point storage. The following will demonstrate both types... double d1 = 79.8, d2 = 84,d3; d3 = d1 - d2; decimal c1 = 79.8m, c2 = 84,c3; c3 = c1 - c2;
  25. In case you're interested I use the following snippet Class with IDispose disp Class that implements the IDispossable pattern. Expansion classname Class name DisposableClass <![CDATA[class $classname$ : IDisposable { private bool _disposed; #region "Finalisation and Dispose support" ~$classname$() { Dispose(false); } public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } protected void Dispose(bool disposing) { if (!_disposed) { if (disposing) { //Release non-managed stuff } //Other cleanup _disposed = true; } } #endregion }]]> to do the same under c#
×
×
  • Create New...