Jump to content
Xtreme .Net Talk

PlausiblyDamp

Administrators
  • Posts

    7016
  • Joined

  • Last visited

Everything posted by PlausiblyDamp

  1. Dim objIdentity As GenericIdentity = New GenericIdentity(myReader("UserName")) dim strRoles() as string = {"sales", "Accounts", "TeaBoy"} Dim objPrincipal As GenericPrincipal = New GenericPrincipal(objIdentity, strRoles)
  2. Probably not. If the control is expecting a VBA.Collection that's what you will have to provide. Would re-writing the control be a valid option?
  3. You could set the form's AcceptButton property to be the button in question.
  4. Where are the files you can't access located?
  5. Try re-writing the code without all the '&' symbols - that could be causing problems. Also rather than using 1 and 0 (or -1 or any other number) to represent a true / false scenario declare Check as a Boolean value - it can then be set to either true or false! Easier to read, more obvious than trying to interpret the 'secret' meaning of a number.
  6. What error do you get? If you step through the code what do x, s and y equal at each step. Does any of them get set to nothing after the call to GetEmployeeInfo ?
  7. Just playing around with some of the Web Services on http://www.xmethods.net I've found very few problems accessing web services written in .Net, Java (not J#), Delphi etc. Best thing I can suggest is have a play with some of the free ones out there.
  8. Have you tried using a dataview on the table and setting it's RowFilter and RowStateFilter properties to try and get the original row's contenents?
  9. You would use a for each loop to iterate over an array or collection. dim s() as string = {"one","two","three"} for each tmp as string in s Messagebox.show (tmp) next not sure what you meant by the every time a string = x statement though...
  10. That's the problem. The array will need to be instantiated somewhere in the form. Good luck in figuring out where though, as VolteFace said earlier the Wizard tend to write out code that is very poor quality and fairly long winded and incomprehensible.
  11. Would probably save a lot of time in the long run to re-write. However if you step through the code when it reaches the line Monthly_Day(i).Reset what is the value for Monthly_Day in the watch window? what is the value for Monthly_Day(i) in the watch window? also does Monthly_Day(1) resturn a valid result?
  12. Only had time to skim the code but, does it fail on starting the loop or when i is a particular value?
  13. Are you refering to ASP and VB Script? If so Session variables can still be used in ASP.Net.
  14. What style is the combobox set to?
  15. Statusbar panels don't have a name property. What are you trying to do, there may be another way round the problem. Also For Each sp As StatusBarPanel In theStatusBar.Panels 'use sp here sp.Text = "Test" Next is probably slightly cleaner code for what you were doing.
  16. If you don't want the ComboBox to process the key then in the KeyPress event set e.Handled = true
  17. change the last line to return (int) nondecimalanswer;
  18. You can launch another program from .Net code - have a look at the Process class (Process.Start is the method itself) However if an application is launched from ASP.Net it will run under the ASPNET user account and the UI will not be visible. What are you trying to acheive? There may be an easier way round the problem.
  19. This is a windows setting and nothing really to do with .Net. If you look under Control Panel, Display, Appearance, Effects it should be the bottom option. Personally I much prefer seeing the underline. I also think it makes it harder for new users to discover what can be done if it's hidden. Many a time I've had new users say things like 'What's that line for?' then you can explain the idea to them. If they never see the line how are they supposed to know about the ALT key?
  20. Not really sure if I understand - why would you want both forms to appear active when only one is. What are you trying to do - there may be a better way.
  21. 1. Yes - no problems 2. Don't think so but why would you. 3. No. Although VS 2003 can target either.
  22. have you tried Dim sr As New StreamReader(New FileStream(filelocation, FileMode.Open, FileAccess.Read, FileShare.Read ))
  23. Notepad opens the file, reads it in and then closes the file straight away - this stops it keeping the file locked.
  24. You could create your own collection class by inheriting something like collection base. http://www.xtremedotnettalk.com/showthread.php?s=&threadid=72855&highlight=collectionbase
  25. A very very good working knowledge of low level TCP/IP.
×
×
  • Create New...