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
T

Thomas Wells

@Thomas Wells
About
Posts
18
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • DARPA wants you to play video games
    T Thomas Wells

    I can hear Centauri’s voice in those words and something about buying a trombone.

    The Insider News com game-dev testing beta-testing announcement

  • Source file won't download
    T Thomas Wells

    I removed both of the files, made my changes to the article, added the file back, clicked the insert link icon according to the FAQ and still when previewing I get "No download file was specified.". Here's the HTML of the link:

    <ul class="download">
    <li><a href="CompleteReadOnlyComboBox.zip">Download source and test project</a></li></ul>

    Article Writing html com question

  • Source file won't download
    T Thomas Wells

    I went back to the submission editor and refreshed the page. My changes to the article are lost and I'm back to two files, both from today. I'll try again after looking at the FAQ.

    Article Writing html com question

  • Source file won't download
    T Thomas Wells

    I just updated my article and after submission the source code download would not work. Clicking the link would display a blank page. I opened the submission wizard again and there were two copies of my zip file. I deleted them both and hand deleted the HTML relating to the link. I added the file back, uploaded the file, and added the file to my article. Now in preview mode clicking the link displays a page that says No download file was specified. Will it be there after submission? A Complete Read Only ComboBox[^]

    Article Writing html com question

  • Search Don't Work
    T Thomas Wells

    From the main page at www.codeproject.com in the Search Articles box I typed "sql statement generator". I clicked the Go! button and got no results. I tried it several times before I posted. I tried this just a couple of minutes ago and got nothing. I tried it one more time just now and it works. So I guess, never mind. Something wasn't working and now it is. Thanks for the replies.

    Site Bugs / Suggestions database algorithms learning

  • Search Don't Work
    T Thomas Wells

    I tried searching for this topic but of course, it didn't work. I searched for "sql statement generator" and got nothing. I put the same thing in Google and got the article I was looking for as the second result.

    Thomas

    Site Bugs / Suggestions database algorithms learning

  • How to Capture the Back Button
    T Thomas Wells

    I've gotten a bit closer. It looks like what I want is a virtual key, VK_BROWSER_BACK. It is also recognized as a key modifier, Keys.BrowserBack. These don't seem to come through in the OnKeyDown override. I've seen code samples that implement IMessageFilter.

    Public Class Form2
    Implements IMessageFilter

    Public Function PreFilterMessage(ByRef m As System.Windows.Forms.Message) As Boolean \_
          Implements System.Windows.Forms.IMessageFilter.PreFilterMessage
        Dim keyCode As Keys = CType(m.WParam.ToInt32(), Keys) And Keys.KeyCode
        If keyCode = Keys.BrowserBack Then
            Console.WriteLine("I found it")
        End If
    End Function
    

    End Class

    Of course this doesn't work either. It never finds Keys.BrowserBack. I've seen m.WParam have values 65568(10020h) & 65536(10000h) when I press my browser back key (xButton on the mouse). Any ideas?

    modified on Monday, March 9, 2009 2:25 PM

    Visual Basic tutorial question

  • How to Capture the Back Button
    T Thomas Wells

    I had considered intercepting the xbutton messages but the value of a button is programmable on most mice isn't it? Doesn't that mean that some other message is being sent which means "Back". Coding a specific mouse button would not use a mouse's programmed setting.

    Visual Basic tutorial question

  • How to Capture the Back Button
    T Thomas Wells

    Many mice have a back button. Many applications implement a goback kind of function, mostly browsers. I'd like to capture a mouse back button so I can offer a similar functionality. Any idea how to tell if the mouse "back" button has been pressed?

    Visual Basic tutorial question

  • Reflection Doesn't Enumerate Everything
    T Thomas Wells

    I was staying away from userControl.Controls so I would not have to recursively loop through container controls (a group box will appear in the .Controls but you have to walk through it's controls to get all the textboxes and such). I did try FlattenHierarchy and it didn't make any difference. What I didn't try was looking a the fields of .BaseType. Thanks for the reply, Tom

    .NET (Core and Framework) question

  • Reflecting form controls in inherited user controls
    T Thomas Wells

    I want to enumerate all form controls on a user control that inherits from another user control (which also has controls on it). Here's some sample code. UserC in this sample is the user control which inherits from the base class user control.

    int BindingFlags = Reflection.BindingFlags.Instance | Reflection.BindingFlags.Public | Reflection.BindingFlags.NonPublic;
    foreach (System.Reflection.FieldInfo fi in UserC.GetType.GetFields(BindingFlags)) {
    object obj = fi.GetValue(UserC);
    if (obj != null)
    {
    try {
    obj.Name();
    }
    catch (Exception ex) {
    }
    }
    }

    This will list all the form controls on the UserC class designer but not the base class it inherits from. You can see them all when debugging. What gives?

    C# winforms question

  • Reflection Doesn't Enumerate Everything
    T Thomas Wells

    Reflection is cool, but geez it can be hard to get it to do some things. I want to enumerate all form controls on a user control that inherits from another user control which also has controls on it. Here's some sample code. UserC in this sample is the user control which inherits from another user control.

    Dim BindingFlags As Integer = Reflection.BindingFlags.Instance _
    Or Reflection.BindingFlags.Public Or _
    Reflection.BindingFlags.NonPublic
    For Each fi As System.Reflection.FieldInfo In UserC.GetType.GetFields(BindingFlags)
    Dim obj As Object = fi.GetValue(UserC)
    If obj IsNot Nothing Then
    Try
    obj.Name()
    Catch ex As Exception
    End Try
    End If
    Next

    This will list all the form controls on the UserC class designer but not the class it inherits from. You can see them all when debugging. What gives?

    .NET (Core and Framework) question

  • Business Object Properties in Random Order
    T Thomas Wells

    That was just the lead that I needed. I'm inheriting from a bindingsource and it implements ITypedList which has the GetItemProperties function. I overrode that function and simply added .Sort to base.GetItemProperties(listAccessors) Thanks

    C# question wpf wcf business tutorial

  • Business Object Properties in Random Order
    T Thomas Wells

    How can I control the order that my properties appear in the DataBindings BindingSource selection dialog? Sorted alphabetic would be nice. I have a business object that inherits from a bindingsource. Its properties appear to be in an apparent random order in the binding source selection dialog. For example when I'm selecting a property to bind to a text box text property.

    C# question wpf wcf business tutorial

  • MSDN Documentation...
    T Thomas Wells

    I did remove MDSN from my machine. I too find it, most all the time, useless. They may cover all the pieces but not from the point of view I'm coming from. I want to answer a question and they want to write documentation. They are writing a reference manual not sure of what questions people will be asking. A Google search of microsoft.public news groups or the web in general will usually find you the answer right away. Often you could click "I'm Feeling Lucky".

    The Lounge question database

  • Custom Control Datasource
    T Thomas Wells

    This seems to be the answer: _ Public Property DataSource() As Object ... End Property I earlier had it coded AttributeProvider("IListSource")

    Visual Basic question

  • Custom Control Datasource
    T Thomas Wells

    How do I create a custom control with a datasource that populates its dropdown with the list of available datasources? There is no dropdown.

    Visual Basic question

  • Select * From [Orders] IN '' [ODBC;Driver= ...
    T Thomas Wells

    I have seen this syntax in several news group posts: Dim AccessCommand As New System.Data.OleDb.OleDbCommand("INSERT INTO Orders SELECT * FROM [Orders] IN '' [ODBC;Driver={SQL Server};Server=(local);Database=Northwind;Trusted_Connection=yes];", AccessConn) but of course it does not work and of course I cannot find any reference to anything like it at Microsoft. Does anybody know where to find the documentation to this kind of syntax? Tom

    Database database sql-server sysadmin question announcement
  • Login

  • Don't have an account? Register

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