Search:
Type: Posts; User: jmcilhinney
Search:
Search took 0.20 seconds.
-
February 19th, 2008, 01:20 AM
Very much so. Your form's Controls collection cannot possibly contain a Timer or a ToolStripMenuItem because neither of them are controls.
-
February 18th, 2008, 09:45 PM
There isn't really that much to it. Consider boolean logic. You know how to perform an AND, OR or XOR on two boolean values and what the expected results would be, yes? Bitwise logic is exactly...
-
February 18th, 2008, 06:12 PM
If 'cnt' is declared a type Control and you assigned a Timer or ToolStripMenuItem object to the variable then your app would crash before it made it to your Else block anyway.
Where is this...
-
February 18th, 2008, 07:56 AM
-
February 18th, 2008, 07:55 AM
Presumably your 'cnt' variable is declared as type Control. As the error messages state, a variable of type Control can never refer to a Timer or a ToolStripMenuItem because neither are controls. ...
-
February 18th, 2008, 07:53 AM
The code to play a sound is no different with or without a UI. Whether or not the code is placed in the Click event handler of a Button or somewhere else makes no difference. It's still the same...
-
February 15th, 2008, 08:39 AM
http://www.codeproject.com/KB/vb/DockPanelSkin.aspx
-
February 12th, 2008, 10:57 PM
That ampersand is not an address operator. A double ampersand is a logical AND operator while a single ampersand is a bitwise AND operator. A bitwsie AND will create a result where each bit is set...
-
February 12th, 2008, 08:42 AM
The OP keeps telling us that the original data only goes to two decimal places, so the greatest resolution needed will be 10 ms!!! Thus 3.333333 ms will be ample!!! The problem here is that the OP...
-
February 12th, 2008, 07:33 AM
That still tells us nothing useful. Where are you getting the value from in the first place, how are you reading it and how are you adding it to the DataRow?
-
February 12th, 2008, 04:50 AM
That's adding the DataColumn to the DataTable. We don't care about that. We want to know how you're reading the data and adding it to a DataRow that is then added to the DataTable.
-
February 12th, 2008, 03:43 AM
If your original data contains partial seconds and the data in the Datatable doesn't then you're obviously reading the data incorrectly. As you are yet to show us how you are reading the data it...
-
February 11th, 2008, 11:55 PM
You're asking the wrong question. If you're saving a DateTime value to a database then it already "contains" milliseconds, as every DateTime value does. If you aren't seeing the milliseconds then...
-
February 11th, 2008, 11:48 PM
An ODBC driver is not an OLEDB provider. It's an ODBC driver. It would allow you to create an OdbcConnection, not an OleDbConnection.
Also, this was on the first page of results when I Googled...
-
February 10th, 2008, 09:22 PM
It's C# alright. Note the "unsafe" key word in the method declaration.
That said, JP is quite correct in saying that, if you want us to help, you should state clearly what the issue is. That's...
-
February 10th, 2008, 09:19 PM
Yeah, "@" is Microsoft-specific. You should also note that this:
insertCmd.Parameters.AddWithValue("@PickUpDateTime", "2008-09-01 14:00:00")is creating a text parameter containing a string. ...
-
February 9th, 2008, 08:30 PM
Am I being punk'd here? Using the InvokeRequired property and the Invoke method IS using delegation, which is exactly what I said needed to be done. The InvokeRequired property tells you whether...
-
February 9th, 2008, 08:25 PM
I have no idea what you mean.
-
February 9th, 2008, 04:21 AM
The key to this is delegation. This suggestion is useless without it because the event will be raised on the worker thread so accessing any UI elements, i.e. controls, from the event handler will...
-
February 9th, 2008, 04:17 AM
http://www.vbforums.com/showthread.php?t=381405
-
February 3rd, 2008, 05:49 PM
You don't need to ask a question when you can simply test it for yourself. Try referring to the pixel at 0,0 and see what happens.
-
January 31st, 2008, 11:20 PM
Let me guess. The SizeMode is AutoSize and the BorderStyle is Fixed3D, correct? You're making a Bitmap the size of the PictureBox and then displaying it in the PictureBox. The PictureBox has to...
-
January 31st, 2008, 05:18 AM
There is no property for that. Unless you want to use GDI+ you'd have to add a Panel and Dock it in that cell, set its BackColor property, then add your child control to that.
-
January 30th, 2008, 05:33 PM
Doing it that way makes those directives local to that namespace block only. That said, if you more than one namespace block in the one code file then you need style check. I think it's clearer...
-
January 30th, 2008, 04:27 AM
You can use a 'using' directive within a namespace block as long as it's at the top, but it's not valid anywhere inside a type definition.
|
Click Here to Expand Forum to Full Width
|