MSDN Magazine April 2006
View Complete Post
MSDN Magazine July 2002
MSDN Magazine August 2001
On the first click nothing happens but on the second click the browser window is opening up.
How is it possible to make it open up on the first click ?
<asp:ImageButton ID="ImageButton3" runat="server" Height="84px"
protected void ImageButton3_Click(object sender, ImageClickEventArgs e)
ImageButton3.OnClientClick = openURL;
I am new to ASP.Net and I'm having trouble figuring out what needs to be where in my code. I have a webform with 2 listboxes and 2 checkboxes... When I check checkbox1 I want listbox1 to be disabled and checkbox2 to be disabled. Similarly, when I check checkbox2 I want listbox2 to be disabled and checkbox1 to be disabled. The code does not show any errors; however, when I run the Page everything appears as it is supposed to but when I check the boxes, nothing happens. What am I missing that will link the code on the .aspx.vb page to the objects on the .aspx page and make them work together?
Here is my code for Page1.aspx.vb:
Public Class LCPage1 Inherits System.Web.UI.Page
Protected Sub AllClients_Click(ByVal sender As Object, ByVal e click a button to print current window form how can i click a button to print current window form? i don't know how to set and define something? anyone give me example for my reference
I have a form, which contains 2 textboxes. When i click on the first textbox, i have to open a child window (tool), that contains a gridview control with 2 columns (corresponding to the 2 textboxes). When the user clicks on any row in the gridview, it should send back the 2 column values back to the parent window to the corresponding 2 textboxes. Can anyone help me on how do i achieve this?
I can open the child window and get back the values using window.opener method in JS.
But can anyone help on how to bind the JS code to the onClick of every row in the gridview. How can i activate the OnClick event of every row/alternating row item of the gridview and bind the JS code and pass each column value to that JS method? The no of columns in the gridview can vary depending upon the data? So in that case, i have to have a collection to be passed to JS code that can contain n number of column values.
I have seen this question asked and answered several times but it doesn't seem to be the question. I have.
I have just created a new project I renamed form1 to FrmMain and then I created a new form by clicking add new form and I named it Report
I then went to my FrmMain and dropped a button on there from the toobox. I now need to open Report.cs when I click the button.
I have tried Report Form2 = new Report();
But all that does it open a new FORM and its not my Report Form. It also just keeps opening new forms every time I click the button. My thought is that the user will enter a ID then click the button then the report form will open and I will then create a
query to populate a data gride or view using the ID form the text box on FrmMain.
Please help.... I am new to this so shoot it straight as if this was your first forms application that you created.
I am developing an IDE-like WPF application. The application's main window from the Microsoft has a number of child tool windows and tabbed document windows.
The layout system for the main window's child controls has been implemented using the Composite Application Library.
Recently, a problem arose in which two particular elements of the main application window did not minimize with the rest of the window. Instead, these two child elements stay up on the screen. However, I cannot actually click on the unminimized
region. In fact, I can drag items from desktop through the unminimized regions. The only thing that I can think of that may be causing this is that the content that doesn't minimize is executing within a separate AppDomain. The two UIElements
from the different AppDomain are remoted from an Add-In (System.AddIn).
Has anyone else experienced a similar windowing problem?
I have an application where all windows have a very custom look/feel. When the user has their theme set to Classic, or even set to certain default themes, the colors clash with my main app colors.
Seems like it should be easy to set a brush on the Frame portion of a Window in WPF but this appears to be missing from WPF.
I have searched around, but the only solutions have found involve making the main window transparent and manually creating the border and drawing the frame yourself and handling all the sizing/move options yourself. I got this to work just fine, however
I have a window on which I need to use INTEROP to show an HwndHost on a canvas.
HwndHost doesn't appear when being used on a Transparent window, so I simply cannot make the window Transparent without making my app useless.
I have tried setting the WindowStyle="None" and that gets me close, but shows an ugly thin frame around whatever I put on the window. I wish "None" really meant none.. Unfortunately, it doesn't.
Does anybody have any way to override the color of the main window frame without making it Transparent or setting the WindowStyle="None" ?
Please help me out with a code sample if you have a good solution for this?
Thanks a bunch,
I've tried the MouseClick and MouseDown events, but the clicks arg in MouseClick is always 1 and in MouseDown is always 1 or 2.
How can I process a Triple-click?
I have a problem : I have main windows with bind to sql combo box.
I want to display at the start of second windows selected value from main win combo box in combo box which located in second windows.
I have code that does this but I'm having trouble when I bind combo box from second windows to sql.
More than I have this code that displays the selected value from main windows but everytime first row in sql table because a code is selectedIndwx = 0 ;
How can I change the code to display the selected value from the main window and bind combo box
at the same time.
there is a code.
void button3_Click(object sender,