Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

Dallas Matthews

@Dallas Matthews
About
Posts
10
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Do you know your roadsigns
    D Dallas Matthews

    Got a 4 - but I'm Canadian... I was just trying to think which would be logical for each sign, which either means that I'm not that observant, or that the signs are not terribly intuitive. Judging from most scores, I would believe the latter. - Dallas

    The Lounge com hosting question announcement

  • ASCII website
    D Dallas Matthews

    Interesting design. Doing a mouse-over on the navigation "folder" captions is really cool. - Dallas

    The Lounge php database

  • MQOTD [ no GOOG please ]
    D Dallas Matthews

    megaadam wrote: We have a winner. But were outa free T-shirts. Sorry. Crap, and here I sit, shirtless...

    The Lounge question

  • MQOTD [ no GOOG please ]
    D Dallas Matthews

    Actually, the first Ghostbusters. Occurred during their first encounter (the ghost librarian).

    The Lounge question

  • StreamReader constructor fails in FileWatcher event handler
    D Dallas Matthews

    Perhaps explicitly opening the files as readonly will help. Dim sr As New IO.StreamReader(IO.File.OpenRead(e.FullPath)) message = sr.ReadToEnd() sr.Close() I colleague of mine was having problems with trying to read, then upload, image files to a database. In the end, both the uploaded files and even the source files were getting hammered somehow, even though the code looked good. Opening the source files as readonly fixed the issue. -- Dallas

    Visual Basic question

  • Restore a database
    D Dallas Matthews

    All Tasks -> Restore Database... -> Restore from Device (radiobutton option) -> Select Devices... -> Add (supply a filename) After all this, you should be able to do all your "Oks" and restore as normal. Dallas

    Database database tutorial

  • Cannot create Enum Type from Type.GetType("EnumName")
    D Dallas Matthews

    My bad.... Turns out the enum I was working with was declared within a class (I guess I had to leave for the weekend to figure it out). Once I moved it so it was no longer nested, it worked.

    Visual Basic question

  • Cannot create Enum Type from Type.GetType("EnumName")
    D Dallas Matthews

    I am not refering to the GetType operator, but to the GetType method of the Type class in the System namespace. Just type in System.Type.GetType(...) and intellisense will show you the shared method I am trying to use.

    Visual Basic question

  • Cannot create Enum Type from Type.GetType("EnumName")
    D Dallas Matthews

    Type.GetType(typeName As String) expects a string variable. Besides, I do not know what enum will be thrown to the function so I cannot give it a specific enum declaration.

    Visual Basic question

  • Cannot create Enum Type from Type.GetType("EnumName")
    D Dallas Matthews

    I need to create an instance of an enum at runtime, so I had thought the Type.GetType(typeName As String) would be sufficient. However, this seems to be not the case. Public Function GetEnumNames(ByVal enumName As String) As String() Dim t As Type = Type.GetType(enumName) ' returns nothing ' if it worked, then I could do something like this... Dim names() As String = [Enum].GetNames(t) Return names End Function
    Is there something I am missing? Or does it not work with Enums? Thanks in advance, Dallas

    Visual Basic question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups