Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Does the user you are logging on the local machine as have permissions to the database or if this is an ASP.NET application have you given permissions to the ASPNET account? What is the code for the select statement and it is a view or a table?
  2. What type of database are you connecting to and what connection string are you using to connect to it?
  3. Fonts are never compiled into the program - they need to be distributed and installed correctly by your application for them to work. You may want to look at creating a setup project within the IDE as this will allow you to deploy and install fonts.
  4. Not bad at all. You could simplyfy the resetGame routine though Sub resetGame() userTurn = 0 Dim i As Integer For i = 0 To 8 clicked(i) = False clickedx(i) = False clickedO(i) = False Next Dim pb As Control For Each pb In Me.Controls If TypeOf pb Is PictureBox Then clearimage(pb) End If Next Me.lblPlayerInTurn.Text = 1 End Sub also could you remove the binaries (executables) from the archive - if you don't one of the admins will.
  5. Is your derived class using a XSD file or have you already loaded a schema? If so do the DataTable names match up with the ones in the XML file?
  6. http://www.xtremedotnettalk.com/showthread.php?s=&threadid=79920
  7. Could you show us a bit of code? How is the overriden method declared and how are you calling it?
  8. Microsoft seemed to have a habit of just sticking 'X' on everything. ActiveX, DirectX, OCX (OLE Control), VBX (VB3 and earlier controls), X-Box - not sure it means anything at all.
  9. As mutant said don't set them to the same instance. Dim i As Int16, lbl As Label, x As Int16, y As Int16 For i = 1 To 5 lbl = New Label lbl.Location = New Point(x, y) Panel1.Controls.Add(lbl) x += 10 y += 10 lbl.Text= i Next Console.Write(Panel1.Controls.Count)
  10. If you step through the code does it throw an exception anywhere?
  11. http://www.xtremedotnettalk.com/showthread.php?threadid=78270 It's a known problem at the moment.
  12. The finally block will get executed if the code in the try block suceeds or fails, if it fails one of the tranOleDB.Rollback() statements will get executed and then it will try to call tranOleDb.Commit() in the finally block. You may want to move the commit part to just before the line Return oDataSetOleDb in the try block.
  13. If it is a windows application why are you creating webforms?
  14. sp_changeobjectowner object, new owner
  15. File Menu, Add Project, New Project. Select Setup and Deployment Projects on the left. Options are on the right - the wizard is probably the easiest.
  16. Does this class get used later on in the book, if so this could be planning ahead. If so variables marked as internal can be accessed by any code in the same assembly (project) but not outside the assembly. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vclrfinternalpg.asp
  17. If you install VS.Net 2003 it will leave you current install alone, you will have both versions running side by side.
  18. When you say it doesn't work - what error does it give? Is there more than one customer in the table and what is it's primary key as it looks like you are trying to set all the customer id values to 111.
  19. http://www.w3schools.com/ has plenty of good web tutorials. http://www.w3schools.com/js/default.asp is the JavaScript one.
  20. Firstly you would be much better catching the specific exception rather than relying on the error message to identify the problem. Also it would be better if you only put the line that causes the exception in the try block. . i.e. Try gdsData.Tables("MyTable").NewRow() Catch oException As NullReferenceException giCurrentDocID = 1 funLoadDocData() Resume? catch ex as Exception 'Something else happened so deal with it here End Try gdsData.BeginEdit() ....
  21. I think he meant use a repeater instead of a data grid.
  22. If you are using CSS then you could define an entry for a:hover similar to a:hover { background-color: Lime; } although probably not the colour I'd choose ;)
  23. Session variables are identified by a cookie, that could be the problem. Also Forms authentication uses cookies to track which sessions are authenticated - not sure if this will work without cookies though. However if you look in web.config there is an option for cookieless sessions - try turning that on. This can cause other problems though as it will rewrit ethe URL to contain the session ID - try it and you will see what I mean.
  24. label1.ForeColor.ToArgb() will return an integer - should do the trick. to get a colour back from this integer you could do label1.ForeColor= System.Drawing.Color.FromArgb(integer here)
  25. You're probably correct on the member function bit - this is pushing my C++ knowledge a bit, only ever dabbled with it. You could declare the class as extern "C" though, does that have any effect?
×
×
  • Create New...