|
get
{
return this.SelectedItem as CalculationModel;
}
Im guessing that if this was called at design time it would return null. I removed this code and still have the same problem.
In the error screen displayed it says
'Retrieve the LoaderExceptions property for more information'
and then a call stack. Do you know how I retrieve the LoaderExceptions property?
Objects in mirror are closer than they appear
|
|
|
|
|
Do you want to mail me the control, and I'll have a look ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
For anyone who is interested the solution to this was to specifically add the exe of the project containing the combo box control to the ToolBox window. The control was then available in the toolbox and I was able to open my form in the designer.
Objects in mirror are closer than they appear
|
|
|
|
|
You probably need a default constructor
|
|
|
|
|
Hi Guys, is there any way to find whether a string coming from SQL is empty ("") or null? I'm getting an empty string even if value in my SQL database is null. Any help will be appreciated.
Thanks
|
|
|
|
|
xoxoxoxoxoxox wrote: I'm getting an empty string even if value in my SQL database is null.
You probably have some code in the middle doing this, the value should be DBNull.Value if it's null in the database.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hello, may be you can help me with this problem. I want to extract the first frame of a quicktime movie. Is it posible to use the library to export the first frame of a quicktime movie using C#? Do you know some code in C# or vb.net or a COM dll to extract the first frame of a mov and save it as bmp or jpg without UI and command line.
Thanks a lot people !!!!
|
|
|
|
|
Search for the QuickTime SDK.
|
|
|
|
|
It was working, but not it's not.
I have a tool strip label that I set the IsLink Property to true, but when I click on it, it no longer opens a browser!
The ToolTipText property is set to the web
address: http://benchmark.jconserv.net
Using VS 2005
Any ideas?
Patrick
-- modified at 16:12 Sunday 13th August, 2006
|
|
|
|
|
Stick^ wrote: ve a tool strip label that I set the IsLi
I don't think link labels launch browsers automatically. Instead, clicking the link will raise a LinkClick event or other. At which point, you can launch a browser using Process.Start("http://...");
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: And in this corner, the Party of Allah
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
Thanks, that fix works.
Patrick
|
|
|
|
|
Hi all,
I need to show the server's folder structure in treeview using asp.net2.0 and c#.
Can any body helps will be thankful.
Thanks in advance
Chinna.
|
|
|
|
|
|
I need a double to do math then output a number like this
1.20
not just 1.2
Thanks for your help.
The only way to speed up a Macintosh computer is at 9.8 m/sec/sec.
|
|
|
|
|
See this[^] link for information on how to format a numeric string.
|
|
|
|
|
I'm populating a DataGridView control using the Add Row method and an object array as the basis for that new row. All the cells work fine except the DataGridViewComboBoxCell which gives me an exception titled "ArgumentException: DataGridViewComboBoxCell value is not valid".
How do I resolve this problem?
thank you,
Martin
|
|
|
|
|
Hi there,
We have a menu system built using the treeview control. All items of the menu are stored in an XML file and populate at runtime.
I need to implement a new feature to this treeview control and its causing me to pull my hair out (not that I have much to pull out)
I need to implement a user rights feature, where each page of the menu can be assigned to a user, if the user has that page, they see the menu structure etc.
For example, if I have the following structure:
Menu
-Sub heading 1
--page 1
--page 2
--sub heading 2
---page 3
---page 4
-sub heading 3
--sub heading 4
---page 5
User 1 has the rights to page1, page 3 and page 5 so his menu would be
-sub heading 1
--page1
--sub heading 2
---page 3
-sub heading 3
--sub heading 4
---page 5
User 2 only has access to page3 and page 5 so their menu should be
-sub heading 1
--sub heading 3
---page 3
-sub heading 3
--sub heading 4
---page 5
Getting the page access and finding user credentials isn’t an issue, but I’m really struggling to figure out some logic to generate the menu, keep the subheadings there if they are needed and not show anything that is blank.
Has anyone done anything like this in the past? Any tips would be great, and code would be fantastic – but I’m really only looking for ideas on how to complete this.
I’m sure I’m making it harder than it needs to, and I’m also sure loads of people have done this without a problem
Thanks in advance
|
|
|
|
|
Look at TreeViewAdv on SourceForge. It has a 'mode' to pull node data on demand, and that appears what you are looking for.
Hope it helps
|
|
|
|
|
|
|
how can print text in position 10' , 20' in the paper
Palestine
|
|
|
|
|
|
Hi,
I have a variable called "toDate" which is a string containing "10/1/2006". I need to pass it to a SELECT statement as follows:
selectTransactions.CommandText = "SELECT * FROM [transactions] WHERE ([Date] > #6/1/2006#) AND ([Date] < #toDate#) ";
It doesn't work of course - how do I get the variable into the statement?
Glen Harvy
|
|
|
|
|
Use parameters:
myCommand.CommandText = "SELECT ColumnNames FROM TableName WHERE DateColumn = ?";
myCommand.Parameters.Add("?", toDate);
NOTE: The parameters must be added in the order they are specified in the SELECT statement. The ? represents the placeholder for the parameter.
|
|
|
|
|