Hi,
I am developing a Table PC application using C# and VS.NET that is executed in portrait mode with a resolution of 768 X 1024. When I set the size of the form to 768 x 1024 in VS.NET it immediately sets the size to 768 x 780. I can programmatically position text boxes and buttons so they...
Hi,
I have a method to render HTML from XSLT. Here is the method:
/// <summary>
/// Method that renders HTML from XSLT document
/// </summary>
/// <param name="writer"></param>
protected override void Render(HtmlTextWriter writer)
{
XPathDocument xdoc = new...
Hi,
I have a method to render HTML from XSLT. Here is the method:
/// <summary>
/// Method that renders HTML from XSLT document
/// </summary>
/// <param name="writer"></param>
protected override void Render(HtmlTextWriter writer)
{
XPathDocument xdoc = new...
I have a User table with:
UserID
UserName
I have a Manage table with:
UserID
FirmNumber
and I have a Firm table with:
FirmID
FirmName
If I know the user's ID, what query would I use to return a table with two columns, UserName and FirmName for only the rows that the UserID in the User...
I have two tables, one with
EmployeeKey
EmployeeName
and the other with
EmployeeKey
CompanyName
Managed(Y/N)
Table 1:
1 Bob
2 Bill
Table 2:
1 Company1 Y
1 Company2 Y
2 Company1 Y
2 Company2 N
I need to query the two tables and return the employee name and company name for...
I have two tables that have been joined into a single table. The first table contains primary key Customer Number and Customer Name. The second table contains a foreign key Customer Number and Location Number. There can be multiple locations for each customer. When I join these two tables with...
I am creating a custom control that inherits the ComboBox class. I would like to use the ISite.DesignMode indicator to determine if the control is being viewed in design mode but the property always comes up false. MSDN documentation says the design mode indicator is stored in the ISite...
After creating a new class that inherits the System.Windows.Forms.TextBox, in the new class I would like to set the value of the default Name for the TextBox (other defaults as well) when a new instance is created by dragging the control from the Toolbox and dropping it on a Form. Any idea how...
I'm looking for information about parsing a RichText file for printing with C#. Can anyone help with some information or a lead to finding more about this process?
Thanks,
Kyle
Can anyone tell me how to center selected text in a RichTextBox. I loaded a rtf formatted document from Word that was centered in Word and it displayed centered in the RichTextBox so I think it can be done. I would apprectiate any help. Thanks,
Kyle
Anyone have the code worked out to scan every file in every directory on a hard drive to locate a single file possibly using DirectoryInfo and FileInfo?
Kyle
Hey Jack, this was really just an excuse to say hello and of course it's always possible that you will have the answer to my question...
Anyone have the code worked out to scan every file in every directory on a hard drive to locate a single file possibly using DirectoryInfo and FileInfo?
Kyle
Hey Jack,
I know I'm always straying from the ASP.NET world but hope the programming concepts are valid enough that you don't mind. In a Windows Form when a cell inside a datagrid has the focus and the up or down arrow key is pressed the focus moves to the previous or next cell. How can I...
When a cell inside a datagrid has the focus and the up or down arrow key is pressed the focus moves to the previous or next cell. How can I intercept this event and execute code based on the pressing of the up or down arrow key? The OnKeyUp, OnKeyPress and OnKeyDown are not working as normal...
Hey guys,
If you left click on a line item in a listbox it selects the item. Clicking the right mouse button is detectable in the listbox but does not select the item. Is there a way to override this listbox behaviour and select an item with the right mouse button?
Kyle
If you left click on a line item in a listbox it selects the item. Clicking the right mouse button is detectable in the listbox but does not select the item. Is there a way to override this listbox behaviour and select an item with the right mouse button?
Kyle
After setting MdiList property to true for a main menu selection and opening several MdiChild forms, a list of child forms with the active form checked is displayed when I click on the main menu selection. How can I detect (capture) when one of the MdiChild menu selections is clicked or...
Hey Jack and guys,
Do you know the code to make a program press the F1 key without touching the keyboard? In other words when I click a button I want the computer to respond as if I had pressed the F1 key.
Kyle
Anyone know the code to make a program press the F1 key without touching the keyboard? In other words when I click a button I want the computer to respond as if I had pressed the F1 key. Any help would be appreciated.
Kyle
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.