Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Importing a namespace doesn't automatically import all the contained namespaces - each one needs to be done individually. the 3rd one imports Microsoft.DirectX.Direct3d and aliases it to Direct3D. You could use the namespace Direct3D instead of the fully qualified namespace of Microsoft.DirectX.Direct3D
  2. Trying to remember back to the days I did a bit of C++.... IIRC you will need to mark the public function as using a C style name i think the syntax is extern "C" void test:Printhello() { x++; printf("hello %d\n",x); } if that isn't correct have a search for extern, it stops the C++ compile decorating the generated function names.
  3. You will need to use either the KeyUp or KeyDown events to catch arrow keys.
  4. Could you post the C++ declaration as well as the actual C# DllImport statement.
  5. Seen that before, IIS seems to treat aspx pages as if they were html. If you view the page source all the
  6. The reason it allows you to add a web form is that there really is no difference between a Web Application and a Web Service, they are both hosted by the same runtime on top of IIS. It simply means you could have a single project that contained both a UI for the browser to display and also a web service to allow integration with external programs all from the same web application.
  7. You may need to re-register aspnet with iis from a command prompt run aspnet_regiis.exe /i
  8. try changing Call OpeningScreen.LoadItems(strTitle, OpeningScreen) to Call OpeningScreen.LoadItems(strTitle, Me) and removing the line Dim OpeningScreen As New frmOpening_Screen()
  9. You can only cast a derived to a base not the other way round. In your example _tDerived IS a _tBase and therefore can be cast into a variable of that type. _tBase isn't however a _tDerived. Could you give a bit more detail on what you are trying to acheive? There may be an alternate way.
  10. How and where is this function being called? If it is being called from frmOpening_Screen then you will need to pass an instance of the form to this function rather than create a new instance within it. i.e. Public Sub LoadItems(ByVal strTitle As Array, ByVal frm as frmOpening_Screen) Dim i As Long frm.Owner = Me frm.cmbTitle.Items.Clear() For i = 0 To UBound(strTitle, 2) frm.cmbTitle.Items.Add(strTitle.GetValue(0, i)) Next i End Sub
  11. dim frm1 as new form1() 'Should be your form name here frm1.show
  12. shouldn't it be "\n" rather than "/n"? - you've got both in your code ;)
  13. Templates in what way? Design time or runtime? Asp.net or winforms?
  14. You will need to add it as a reference and ship both dlls.
  15. So those functions are in the code behind page then? If so they will only execute server side (after the postback has occured). Client side validation needs to be in a script language supported by the browser - javascript being the most widely supported. Unfortunately I don't have IIS installed on this PC so I can't test out a working example at the moment.
  16. How is the script block those functions in declared? (could you post the bit here?)
  17. By design the only validator that checks for the presence of data is the required field validator. Is there any reason why you couldn't use the required field validator alongside your custom validator?
  18. That looks like server side ASP.Net code inside a script block. The ClientValidationFunction needs to be written in a client side scripting language like JavaScript or VB Script.
  19. Project menu bottom option ( properties). On the left select common properties and then general. on the right find Output Type and what does it say?
  20. The client validation function should be a client side script (javascript, vbscript etc.). For the code in the OnServerValidation to fire then all the client side validators must approve the data - otherwise they block the post back.
  21. The GetFiles method can take a 2nd parameter to specifiy the file extension. dim htmlfiles as string = IO.Directory.GetFiles("C:\","*.html")
  22. You may be better off looking at creating a user control rather than an include file under asp.net. User controls allow you a bit more control over things like caching.
  23. Are the forms in the same project or is the base form in a seperate DLL? Also if you rebuild the application it often updates the designer properly then.
  24. Unless you are dealing with multiple threads or asyncronous methods (are you?) then there is no need to set and unset the syncing variable. It may help if you provided more code or details on what you are trying to acheive.
  25. Folders don't have an extension - they are just folders. Explorer is what displays folders.
×
×
  • Create New...