Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Through Visual Studio it isn't directly possible. You could compile the C# class into a classlibrary and then reference this from you VB app though. Alternatively if you are building things from the command line you could compile the C# file to a module and then link this to your VB app. details here Out of interest what does this class do? It may be easy to convert to VB either manually or through a service like this one
  2. Have you set a reference to the Excel Object library?
  3. could you not just do the following for the else part? Else MyBase.OnDoubleClick(EventArgs.Empty) 'Here I want to call the normal doubleclick event... End If it worked fine when I tried it here.
  4. Any chance you could give a bit more information? When you say it doesn't work what actually happens? If you step through the code (server and client client) is ther ea particular line it fails or hangs on? What code does the client application use to connect to the server? Are you using the correct address / port?
  5. The sender argument will be the button that was clicked the folowing code will just display hte name of the button clicked - you could use this in a select case statement if you needed to make a decision based on this. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click, Button1.Click, Button3.Click Dim b As Button b = DirectCast(sender, Button) MessageBox.Show(b.Name) End Sub
  6. http://www.xtremedotnettalk.com/showthread.php?t=83092
  7. You could call the Dispose method of the form to free up memory quicker. However memory management under .Net uses garbage collection - this means memory isn't freed up immediately, but rather when the system deems it necessary. Search these forums for 'Garbage Collection' and you will find several threads that discuss this issue.
  8. How about just plain Graphing?
  9. When you say it doesn't work what actually happens (or doesn't happen as the case may be). Does the file not get written out correctly? If you step through the code in the debugger does it execute the 3 ini.Write statements? Again you may be better off replacing the string "settings.txt" with Application.StartupPath & "\settings.txt" just to make sure it is always looking in the same place for the file.
  10. try changing the saving code to Dim ofDialog As New OpenFileDialog With ofDialog .InitialDirectory = "C:\Program Files\Programming\list.txt" .Filter = "textfiles|*.txt" If .ShowDialog = DialogResult.OK Then End If End With TextBox2.Text = ofDialog.FileName Dim SW As New IO.StreamWriter(Application.StartupPath & "\location.txt") SW.WriteLine(ofDialog.FileName) SW.Close() and the load code to Dim str As String Dim sr As System.IO.StreamReader Dim prog As System.IO.File sr = prog.OpenText(Application.StartupPath & "\location.txt") str = sr.ReadLine TextBox2.Text = str sr.Close
  11. Post you favourite resources for regular expressions or any expressions you find useful here. to start the ball rolling http://www.regexlib.com ps. Please try to keep posts on topic, if you have a question or problem with a particular expression request help in a new thread to stop the value of this one becoming too diluted.
  12. You may want to have a search for terms like UML or 'Use Cases'.
  13. In your form_load try adding a sr.close() at the end.
  14. I personally tend to use CVS (it's free for starters). Newer versions integrate well with windows (http://www.cvsnt.org) and are fairly easy to setup if you follow the instructions. Requiring only 1 port for access it also works through a firewall quite easily. As for a client then http://www.tortoisecvs.org is a very nice windows shell extension (they also do a VS.Net plugin) that makes checking in/out, diffing, merging changes etc only a few mouse clicks.
  15. You are probably better looking at the DataList control, it will allow you to define an item template which contains the controls you want in each row and then databind it.
  16. Does Response.Redirect("login.aspx") work
  17. Quick search on google only brought back one hit - may be worth having a look at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office10032002.asp Out of interest does the server have the same version of word as your development box?
  18. The only thing I can think of is a dcom permission - if you have allowed the aspnet account launch permissions to word it should work.
  19. By refering to the table property you are looking at the original unsorted table. If you databind to the dataview that will display sorted data, IIRC programatically you should be looking at the DataView's Item property.
  20. That's how web apps work. If you don't want to have to requery the database every time then you may want to look at using Application or Session variables - search in MSDN you will find lots of samples. Alternatively you may want to investigate the Cache object - can be very useful in this kind of scenario.
  21. If you step through the code what happens? Does it execute the code you are using to write the file? Also textboxes have a passwordchar property - set that to whatever you want displayed instead of the real text.
  22. Could you post your code. The sample I did happily populated the listbox and would write the changes back. If you step through the code in the debugger do the values look like what you would expect?
  23. quick search on google got a fair few hits. Here are a couple of the first page http://www.aha-soft.com/iconlibs.htm http://dir.yahoo.com/Arts/Design_Arts/Graphic_Design/Web_Page_Design_and_Layout/Graphics/Icons/ http://www.webcom.com/html/icons.shtml
  24. try objRs.Open "Customers",objConn,,adLock,adCmdTable
  25. You should find that if it runs 24/7 it will reach it's own level of memory consumption. I would still carry on setting variables to nothing when I've finished, implement IDisposable if my class encapsulates a limited resource - but if it can run happily without crashing then I'd let the GC get on with it.
×
×
  • Create New...