I have looked on the web for a solution to print scrollable panel larger than can be fitted on the screen but couldn't find any solution and it looks like that many people has this problem! PrintForm (printform powerpack component) can not do this because it only capture that part of the panel that is fitted on the screen. And if you want to do this with the PrintDocument component and print all the visible parts of the form grids,tablelayoutpanels etc and to formate it correctly then you can become really frustrated! Here is my solution to print scrollable panels …

Member Avatar
Member Avatar
+0 forum 3

Here is a small extention of the Panel class that allows you to 'collapse' it. So far, the user can place a control on the parent form and perform a collapse/expantion by: 'Where cpNew is a Collapsible Panel If Not cpNew.PanelCollapsed Then cpNew.Collapse() 'or If cpNew.PanelCollapsed Then cpNew.Expand() I will be changing/improving the control as much as possible. If anyone has any suggestions/tips they would greatly be appreciated!

Member Avatar
Member Avatar
+0 forum 1

Hi eveyone, I have a few labels in a panel and found this bit of code... Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click Dim RndGen As New Random For Each ctrl As Control In Panel1.Controls Dim lbl As Label = TryCast(ctrl, Label) If lbl IsNot Nothing Then lbl.Text = RndGen.Next(1, 45).ToString End If Next End Sub what i would like to do is , put the text values into an array. So that i can evaluate them to see if any are equal to each other. if 2 are both the same, then lose both . The …

Member Avatar
Member Avatar
+0 forum 1

Hi, I'm having SlimPDF which used to read PDF & I want to open SlimPDF inside of split panel but it is opening as new window. I tried to open notepad in split panel using my code, works fine but this SlimPDF is not opening inside the panel. Pls help me to solve this issue.

Member Avatar
Member Avatar
+0 forum 1

I'm wondering how impossible it can be to connect a touch panel (with USB controller) to a PC for it to send X,Y coordinates when an event happens (the panel is touched). After searching the web for an entire day I couldn't find more then pieces of information that don't tell the whole story. Most of what I understood so for is that I can buy some touch panel development kit ([ebay](http://www.ebay.com/itm/5-6-4-Wire-Resistive-Touch-Screen-Panel-Digitizer-126-5x100mm-USB-controller-/271523635500?pt=LH_DefaultDomain_0&hash=item3f3811e12c)), create some basic C code that acts like a driver and then use those C functions to handle input on the device in other applications. Question is, is …

Member Avatar
Member Avatar
+0 forum 3

hello good people, i have created atab control and added a gridview in it. When i run it this is how it shows: ![42e98ae1ab28208a1d5964503f00cecd](/attachments/large/4/42e98ae1ab28208a1d5964503f00cecd.png "42e98ae1ab28208a1d5964503f00cecd") i have tried adjusting the heights and widths of both but tono avail. here is my code: <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" Height="421px" style="z-index: 1; left: 212px; top: 271px; position: absolute" Width="933px"> <ajaxToolkit:TabPanel ID="TabPanel1" runat="server" HeaderText="Neurology"> <ContentTemplate> <asp:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False" DataSourceID="Neuro" style="z-index: 1; left: 242px; top: 367px; position: absolute; height: 309px; width: 870px"> <Columns> <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" /> <asp:BoundField DataField="Designation" HeaderText="Designation" SortExpression="Designation" /> <asp:BoundField DataField="Qualification" HeaderText="Qualification" SortExpression="Qualification" /> <asp:BoundField DataField="Shift" HeaderText="Shift" SortExpression="Shift" /> …

Member Avatar
Member Avatar
+0 forum 2

I have this code: If e.Delta <> 0 Then If e.Delta <= 0 Then If PictureBox1.Width < 500 Then Exit Sub 'minimum 500? Else If PictureBox1.Width > 2000 Then Exit Sub 'maximum 2000? End If PictureBox1.Size = New System.Drawing.Size(PictureBox1.Width + e.Delta / 1, PictureBox1.Height + e.Delta / 1) PictureBox1.Location = New Point(Control.MousePosition.X - PictureBox1.Width / 2, Control.MousePosition.Y - PictureBox1.Height / 2) End If which zooms the PictureBox to the center of the cursor location, but when I insert the picturebox to a panel, the image does not properly zoom in to the center of the image, instead to the edge …

Member Avatar
Member Avatar
+0 forum 4

Following is my program i need to add scroll to jframe and I have paint method in it package other; import java.awt.BasicStroke; import java.awt.Color; import java.awt.Container; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.ScrollPane; import java.awt.Stroke; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.geom.Line2D; import javax.swing.*; public class MainDrawCycle extends JPanel implements ActionListener { JButton button; JLabel label; JTextField textField; JScrollPane pane; JPanel panel; JFrame frame; Container c; static int val; int xa,ya,xb,yb,x1,y1; int xc,yc,xd,yd,xe,ye,xf,yf; int lsb=0,msb=7; char val1='A',val2='B'; // public MainDrawCycle(JFrame f) // { // pane=new //JScrollPane(f,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); // add(pane); // } public MainDrawCycle() { setLayout(null); //frame=new JFrame(); // panel=new JPanel(); // pane=new //JScrollPane(panel,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); …

Member Avatar
Member Avatar
+0 forum 21

I have a panel where I am drawing images on button click. But on the second button click, the previously drawn image is being replaced by the new Image. void panel_Image_Paint(object sender, PaintEventArgs e) { if (Clipboard.ContainsImage()) { Point p1 = new Point(i, 0); e.Graphics.DrawImage(Clipboard.GetImage(), p1); i += img.Width; } } I want to retain the previously drawn image in the panel, when the new image is being drawn. The clipboard is being refreshed on each button click with the new image. Any help would be highly appreciated!!!! Thanks..

Member Avatar
Member Avatar
+0 forum 3

Dear fellows , The concept is to split the screen to view all windows at a time .It will allow main screen to be split into two or more sections. It will be helpful for the active program’s window to be resized properly to one part of the screen. Using this utility, User will be able to do a split system desktop into two or more areas so that active application would not cover up “Full” physical screen when maximized. This way user can visualize parallel windows in defined area that user has a separate monitor for working (virtually) also …

Member Avatar
+0 forum 0

Hello Community, I would like to know if there is a way to get the corresponding list index of another list like below: Dim panelTitle As New List(Of String) panelTitle.Add("First Panel") panelTitle.Add("Second Panel") panelTitle.Add("Third Panel") Dim panelName As New List(Of Panel) panelName.Add(Panel1) panelName.Add(Panel2) panelName.Add(Panel3) So when I choose "Second Panel" I want the returned panel in this case I want it to be "Panel2".

Member Avatar
Member Avatar
+0 forum 2

Hello good day. I have an idea for my program. I have a Table in my display. I want to add a Component to - let's say - the right of my screen. When I click this component it should display to me buttons and other components that I have added to it. I want this component is activiated I want it to display from one side of my Frame as a layer over the Table that I have in my display; much like a docked panel or overlay panel. I would love to know how I could accomplish this …

Member Avatar
Member Avatar
+0 forum 10

I have a tab panel on form1 and on the 1st tab there's a button and when i click this button it will enable a function. what i want to do is to work on other tabs while the function on the 1st tab is still executing. is there anyway i can do this? or should i use another form? thanks

Member Avatar
Member Avatar
+0 forum 3

I have a listbox with items and a panel. What I want to do is when I click on an item, a label shows up in a panel, which was already there before the item was clicked. I've managed to show the label, but it didn't add to the panel, instead went to the back of the panel. How could I fix this? I've already tried to code the label to bring it to front, but it didn't work. Here is the code I have so far: Dim MyLinkLabel As New Label() With MyLinkLabel .Location = New Point(205, 90) .Visible …

Member Avatar
Member Avatar
+0 forum 2

Hi, I changed my wodrpress URL manually and after then i saved and loged out from admin panel . now i can't login to my wordpress Admin page after changing The URL 's and whenever i want to log in it redirects to other page that i changed in URL . now i can't login to Admin page to correct URL's . what should i do to solve this problem . Thanks so much ,

Member Avatar
Member Avatar
+0 forum 4

Hello everyone, I am making a custom control which inherits the standard windows Panel object. My control has the ability to align all of the controls in the panel to the left by their index in the Controls array. I am trying to add a method which swaps the location of two controls in the collection so that when the controls are aligned again, those two controls switch their locations. The issue is, the Controls array is Readonly and I am unable to override the Control property to allow it to be Read/Write because it is not declared as overridable. …

Member Avatar
Member Avatar
+0 forum 4

Hello, I am making a custom control which will serve as a "timeline". An integrated timer moves a line along the control to display where the time is currently. I am inheriting a Panel control for the timeline. When I draw my line, it constantly appears below the controls in the panel. I would like the line to be visible above all of the controls in the panel. Is this possible? Thanks in advance

Member Avatar
Member Avatar
+0 forum 8

Hello, I want to move a panel smoothly like a form. anybody can help me please? thanks ^_^

Member Avatar
Member Avatar
+0 forum 3

How to get the imgbtnView image button in gridview to display the row of data? i try to use modelpopupextender but the targetid is invalid because the image button is in the gridview. when click on imgbtnView, solistPanel will be display now i cant display the solistPanel. please help <table cellpadding="5" cellspacing="5"> <tr> <td> <asp:GridView ID="outstandingList" runat="server" CellPadding="2" AutoGenerateColumns="False" DataKeyNames="Cust_No" DataSourceID="outstandingList_SqlDataSource" AllowPaging="True" EmptyDataText="No Outstanding Found" PageSize="20"> <Columns> <asp:BoundField DataField="Cust_No" HeaderText="Customer No" SortExpression="Cust_No" /> <asp:BoundField DataField="Cust_Name" HeaderText="Customer Name" SortExpression="Cust_Name" /> <asp:BoundField DataField="Cust_CreditLimit" HeaderText="Credit Limit" SortExpression="Cust_CreditLimit" /> <asp:BoundField DataField="Total Cost" HeaderText="Total Cost" SortExpression="Total Cost" /> <asp:BoundField DataField="Outstanding" HeaderText="Outstanding" SortExpression="Ouststanding" /> <asp:TemplateField> <ItemTemplate> …

Member Avatar
Member Avatar
+0 forum 2

I am using a script on a page due to which the style of dropdown , checkbox and textbox is applied on them, but if i put dropdown or any other tool inside the updatepanel than only when the page gets load script is shown to that tool but whenever one of the tool gets refresh with the other selectchange of tool which is also inside the updatepanel than both of the script gets removed. **For example:** <head runat="server"> <title>script not working</title> <script src="js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script> <link rel="stylesheet" href="jqtransformplugin/jqtransform.css" type="text/css" media="all" /> <script type="text/javascript" src="jqtransformplugin/jquery.jqtransform.js"></script> <script language="javascript"> $(function() { $('form').jqTransform({ imgPath: …

Member Avatar
Member Avatar
+0 forum 3

I'm using netbeans IDE and I created a Jframe with two Jpanels one is for Jbuttons and other one is for load another Jpanels to it when clicks those buttons. I tried to do it from buttonclick action. Jpanel2 j2=new Jpanel2(); JPanel1.add(j2); j2.setVisible(True); but this code is not working. I want to know how can I do this. (I think this is also same as loading JinternelFrames)

Member Avatar
Member Avatar
+0 forum 1

01. I'm working on a school java project using Netbeans IDE. 02. I need to display IReport in a JPanel Placed inside a JFrame with a button Click. 03. To Create the IReport I used ReportView Class downloaded from the Internet & in the button click Event I have following code. HashMap para = new HashMap(); para.put("id", pt); // Passing Paramter to the Report ReportView rv = new ReportView("PATH OF THE .JASPER",para); // using ReportView Class java.awt.Container cont = rv.getContentPane(); JPanel1.add(cont); -- Problem is it displays nothing. but, when parameter is supplied wrong it shows 'The Document has no pages' …

Member Avatar
Member Avatar
+0 forum 1

Hi All, I need to load varying Custome controls to one page with differnt panles,I have to load Custom control page according to selection of Criteria. Thanks

Member Avatar
Member Avatar
+0 forum 3

here's the problem: iam able to make my panel transprent on my main mdi container but when i move my panel to the place where my mdi child form is being shown in my mdi container the panel isnt transparent or i cannot see through the panel. any solution you can gave...

Member Avatar
Member Avatar
+0 forum 3

I bought a 2nd hand motherboard Intel D101GGC with Pentium 4 3.0 Ghz and fit into chassis with AC'97 front panel audio.My motherboard supporting Realtek HD Audio, so that to use front panel i have to check "use AC'97 front panel" in Realtek HD Audio Manager then only front panel headphone icon is enable in HD audio Manager but still i dont get any output or audio and also not detecting that headphone is plugged.If i uncheck option "use AC'97 Audio" then front panel headphone jack icon is disabled.I dont have idea why this happening please help. I am using …

Member Avatar
Member Avatar
+0 forum 3

So the mission here is to have all the user input data to display to the display panel. I was able to achieve this, however instead of the info display after I click the display button the info will display after clicking on any of the radio button options. Im hoping someone out there can point me in the right direction so I can get this program to display correctly. There are two classes used in this application. import java.awt.*; import java.awt.event.*; import java.util.Enumeration; import javax.swing.*; // this class creates an entry screen for a new hourly worker public class …

Member Avatar
Member Avatar
+0 forum 3

In my project, I have two seperate forms and in one of them I can add various panels using a button. After adding let's say 5 panels I click on one of them and I need the code to tell me which panelI clicked on. The reason I need this is to refrence the clicked panel's information on the other form. So if the user clicks on panel 3, the other form shows up and tells me you clicked on panel 3. here's what I have so far. Private Sub Button_Click(ByVal sender As System.Object, ByVal e As ClickEventArgs) Handles Button.Click …

Member Avatar
Member Avatar
+0 forum 3

Method onPaint does not change the color. Does anyone know why? (there are no errors received) # explore the wxChoice widget # a simple ComboBox (dropdown box) that combines a ListBox with an EditBox # can't get the self.onPaint method to work!!!!! import wx ID_CHOICE = 120 ID_PANEL = 130 class MyFrame(wx.Frame): def __init__(self ): wx.Frame.__init__(self, None, -1, 'wxChoice test', size=(250, 200)) self.panel = wx.Panel(self, ID_PANEL) colorList = ['red', 'green', 'blue', 'yellow','white'] # create the dropdown box self.choice = wx.Choice(self.panel, ID_CHOICE, choices=colorList) # select item 1 = 'green' to show self.choice.SetSelection(1) self.bgcolor = self.choice.GetStringSelection() self.panel.SetBackgroundColour(self.bgcolor) # new event handler wxPython …

Member Avatar
Member Avatar
+0 forum 1

Hi, i need some code for slide out panel that will pop out when i scroll down like this one, [Click Here](http://download.cnet.com/RealPlayer/3000-13632_4-10073040.html?tag=main;lsr) It's very cool. please help.

Member Avatar
Member Avatar
+0 forum 3

Hi, Do you have any useful explanation of how to create a draggable window? What I wish to say is when you select your window will have no border ( considering that, it cannot be dragged around screen), how to make it draggable, for example by making a certain area in window "sensible" so after user presses that area and moves cursor, it moves window too? I can't remember best, but I think I saw a tutorial on VB about this problem, and he added a panel writing to it some code and making it "sensible" to dragging. Thank you.

Member Avatar
Member Avatar
+0 forum 1

The End.