I can hear Centauri’s voice in those words and something about buying a trombone.
Thomas Wells
Posts
-
DARPA wants you to play video games -
Source file won't downloadI 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> -
Source file won't downloadI 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.
-
Source file won't downloadI 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[^]
-
Search Don't WorkFrom 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.
-
Search Don't WorkI 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
-
How to Capture the Back ButtonI'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 IMessageFilterPublic 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
-
How to Capture the Back ButtonI 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.
-
How to Capture the Back ButtonMany 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?
-
Reflection Doesn't Enumerate EverythingI 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
-
Reflecting form controls in inherited user controlsI 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?
-
Reflection Doesn't Enumerate EverythingReflection 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
NextThis 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?
-
Business Object Properties in Random OrderThat 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
-
Business Object Properties in Random OrderHow 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.
-
MSDN Documentation...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".
-
Custom Control DatasourceThis seems to be the answer: _ Public Property DataSource() As Object ... End Property I earlier had it coded AttributeProvider("IListSource")
-
Custom Control DatasourceHow do I create a custom control with a datasource that populates its dropdown with the list of available datasources? There is no dropdown.
-
Select * From [Orders] IN '' [ODBC;Driver= ...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