Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. What class are you inheriting from? It looks like a form but that code should be fine... Also what version of VS are you using?
  2. You could add a literal control to the HTML of the page and set it's value to the string you desire at runtime. However isn't the charset attribute autogenerated based on the characterset of the page? If so I would recomend changing it via the Page object rather than just faking the HTML source.
  3. The main problem you will have is if you are displaying text with a variable width font - the number of characters is dependant on which characters are entered. You may get some mileage out of the MeasureString method...
  4. http://www.xtremedotnettalk.com/showthread.php?t=91261
  5. For point 5 you could have a single listener that would spawn a new thread for each incomming request and destroy the thread when the client disconnects / timesout. This could get resource hungry but that depends on how many clients you need to support. Looking over the code though it does seem to have some oddities - assigning a value to i (the number of bytes read) and never using it, not sure about the byte array of 2 bytes either. Using a 1K byte array is probably so the data can be snt / received in chunks over the network. If you search these forums (have a look in the code library) I'm sure somebody has posted an example of a basic network app.
  6. cmd.Parameters.Add("@FullCount", SqlDbType.Int) cmd.Parameters("@FullCount").Direction = ParameterDirection.Output Dim adapter As New SqlDataAdapter(cmd) Dim ds As New DataSet() adapter.Fill(ds) Dim i as integer = cmd.Parameters("@FullCount").Value should do it.
  7. http://www.xtremedotnettalk.com/showthread.php?t=83092
  8. sbpTime.Text.Text = DateTime.Now.ToString("dd/MM/yy") 'or use their preference sbpTime.Text.Text = DateTime.Now.ToShortDateString
  9. Just out of interest why would you want to change the colour of the MessageBox? If a user has chosen a colour scheme from windows control panel then your message box should follow that; otherwise you could end up with severe colour clashes, hard to read displays and would also be causing problems for the visual impaired who happen to have selected a high contrast scheme.
  10. If you are using asp.net then you should not be using the windows textbox - you should be importing the System.Web.UI.WebControls namespace.
  11. It looks like you are trying to override the Dispose method but not getting it quite right. Post the relevant code and perhaps we may be able to give you a hand.
  12. Sub Main () installerIntro.Show() Application.Run(installerIntro) End Sub
  13. http://www.xtremedotnettalk.com/showthread.php?t=91197
  14. IIRC asp.net is disabled by default on Win2k3, however the fact you are getting the web page up is a good sign it has been enabled. When you say the missing dll is different everytime is it only a couple of dll names that are being displayed? Also if you could post the name(s) of the dlls in question and give a bit of detail about them (if known).
  15. Any chance you could post the relevant code? By the sound of it you are refering to the property name from inside the property e.g. Public ReadOnly Property Test as Integer Get return test end get end property what you would need to do is use some other way to store an internal value for the property e.g. private _test as integer Public ReadOnly Property Test as Integer Get return _test end get end property (sorry if the code is not exact, don't have VS on this PC) Also you may want to look at clicky for more information on using forms under .Net.
  16. If a resource might be needed rather than always needed during a program execution you may want to look at a more established pattern (Singleton, Proxy etc) to hide the logic of exactly when it gets created. This can be especially useful if the resource is memory intensive as well.
  17. Could you not just display the form as a modal form with the .ShowDialog method?
  18. The other computer would need the .Net framework installed before your app will run. If you are using VS.Net then you can create a setup project to deploy your app. If you want to include the framework then read the sticky thread at the top of the deployment forum for more information.
  19. would the following not work? if((x>z && y < z) || (y >z && x{ }
  20. I think it would be a good idea - like you say a central place to both store the links to 3rd party items and have a decent (hopefully) review or two. If nothing else it would qualify what the product does well and who would find it useful; Or if it doesn't have any merits the chance to say so and provide links to valid alternatives.
  21. You would need to use some other method - either a java applet to perform the work or possibly implement the file upload as a web service and provide a wndows based client to do the work.
  22. Any chance you could attach a small test project that exhibits this behaviour? Failing that is this problem occurring between runs of you app or when you try to serialize / de-serialize within a single run? If the latter you may want to check you are closing down all the files when you have finished with them.
  23. Not that I am aware of, the concept of a data relation is really just between 2 tables within the same DataSet.
  24. If you are using ASP.Net the client is still only recieving HTML, and as such is limited to the standard HTML controls. Failing that you would need to investigate some other client side technology such as Java and provide your own custom UI. It may help if you gave more details about why you need to do this as there could be an alternate solution to your problem.
  25. Don't suppose there is any chance of giving us a bit more information is there? Details like the rest of the message, the type it is failing to load, where that type is declared, the associated code that causes the error. It is very, very hard for people to diagnose a problem without any information other than the error message (or half an error message even).
×
×
  • Create New...