Hi all
following scenario: i have a usercontrol with a search-textbox who
opens a datagrid to show filtered records. unfortunatly this datagrid
is limited to the boundaries of the usercontrol wich limits the height
to some 4 records. (i know i could use a normal dropdowncontrol , but
this is not good enough for some reasons).
right now i've solved it by opening a new borderless form wich is
aligned to the search-textbox. needless to say, this approach is
difficult to handle because this dumy-form is somewhat disconnected to
the searchtextbox.
in general, is it possible to draw a control or usercontrol somewhere
outside it's containers boundaries, somewhere on the screen?
Thank You! 2 3426
On Wed, 19 Nov 2008 00:50:17 -0800, Ty <ty********@gma il.comwrote:
Hi all
following scenario: i have a usercontrol with a search-textbox who
opens a datagrid to show filtered records. unfortunatly this datagrid
is limited to the boundaries of the usercontrol wich limits the height
to some 4 records. (i know i could use a normal dropdowncontrol , but
this is not good enough for some reasons).
right now i've solved it by opening a new borderless form wich is
aligned to the search-textbox. needless to say, this approach is
difficult to handle because this dumy-form is somewhat disconnected to
the searchtextbox.
in general, is it possible to draw a control or usercontrol somewhere
outside it's containers boundaries, somewhere on the screen?
Define "draw". You certainly can place the control in that way. And you
can draw the control in the sense that the display code responsible for
rendering the control can execute normally.
But if you mean "can the control actually be _visible_ outside the parent
container", the answer is generally no. The child control is clipped to
the parent.
One option would be to set the AutoScroll property of the UserControl to
"true", so that at least the user could scroll to see all of the DataGrid.
Another alternative would be to not display the DataGrid inside the
UserControl itself. You could either do it the way you're doing it now,
or just abandon the idea of having the DataGrid physically connected to
the TextBox and show it as a modeless dialog or something like that.
Pete
On 19 Nov., 11:33, "Peter Duniho" <NpOeStPe...@nn owslpianmk.com>
wrote:
On Wed, 19 Nov 2008 00:50:17 -0800, Ty <tylersh...@gma il.comwrote:
Hi all
following scenario: i have a usercontrol with a search-textbox who
opens a datagrid to show filtered records. unfortunatly this datagrid
is limited to the boundaries of the usercontrol wich limits the height
to some 4 records. (i know i could use a normal dropdowncontrol , but
this is not good enough for some reasons).
right now i've solved it by opening a new borderless form wich is
aligned to the search-textbox. needless to say, this approach is
difficult to handle because this dumy-form is somewhat disconnected to
the searchtextbox.
in general, is it possible to draw a control or usercontrol somewhere
outside it's containers boundaries, somewhere on the screen?
Define "draw". *You certainly can place the control in that way. *Andyou *
can draw the control in the sense that the display code responsible for *
rendering the control can execute normally.
But if you mean "can the control actually be _visible_ outside the parent*
container", the answer is generally no. *The child control is clipped to *
the parent.
One option would be to set the AutoScroll property of the UserControl to *
"true", so that at least the user could scroll to see all of the DataGrid..
Another alternative would be to not display the DataGrid inside the *
UserControl itself. *You could either do it the way you're doing it now, *
or just abandon the idea of having the DataGrid physically connected to *
the TextBox and show it as a modeless dialog or something like that.
Pete
Thanks Pete
i wanted to know if there are better options out there, so "no" as an
answer is also good ;). right now im showing it as borderless form.
but there's a lot of event handling that has to go on (if form
resizes, moves, application loses focus etc etc).
the other thing i could do is showing the grid on the parent form of
the usercontrol, easier to handle. disadvantage is that i'm limited to
the form borders, whereas a combobox can show it's list over the
formborders. from a user standpoint it would really be better to have
it as big as neccessary, and i hate to make compromises for technical
reasons...
oh well :)
solutions still welcome
thanks and have a nice day This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ayende Rahien |
last post by:
Excetremely annoying problem, I've an application with a long startup time.
So I created another form with my logo in it to as a splash screen.
The splash screen is run from another thread and is communicated solely
through static method and Invoke()'s
However, when I close my second form, the first one (main window) is hiding
under all the windows on the desktop.
If I don't close the splash screen, then everything is fine.
I tried...
|
by: Dave |
last post by:
How do I check in a Windows Forms app if any controls have changed? I have
a form that collects data, and I want to prompt the user if they try to exit
the app, or load a new file, without saving changes that have been made.
In MFC/Win32, you'd trap the WM_COMMAND/EN_CHANGE notification messages,
etc. But, this doesn't seem to happen in Windows Forms. I tried Spy-ing a
windows forms app, and the WM_COMMAND messages don't even get sent...
|
by: Günther Rühmann |
last post by:
Hi,
I´m not sure if i´m right int this group...
My problem:
I made a vb .net application that reads from AD via
System.Directoryservices.Directoryentry.
The appliocation enumerates group members.
It works fine on W2k - machines. It works on a WinNT 4 - server, too, but it
stops with a runtime error on any Windows 4.0 Workstation. The error is:
System.Runtime.InteropServices.COMException 0x800500F.
at...
|
by: david |
last post by:
I have developed my web service with a domain name of my computer name and
wwwroot directory. I also developed a client of windows form application. It
works locally (i.e. in the same machine).
When I copy my client application to another machine and start it, I got an
error about initialized problem.
Note that I can browser my web service .asmx file from the second machine.
The sample client source code:
|
by: Rod Gill |
last post by:
Hi,
I have a form that when opened in the designer appears of the screen. The
form selector can't be dragged (or resized) and if I scroll right and down
to centralise it the form simply jumps further away, completely leaving the
selector box area.
Any ideas? VS 2003 and VB.Net
This is a simple application at the moment but the form is inherited from a
| |
by: Budhi Saputra Prasetya |
last post by:
Hi,
I managed to create a Windows Form Control and put it on my ASP .NET page. I
have done the suggestion that is provided by modifying the security settings.
From the stack trace, I would assume that the code throws exception when it
is trying to retrieve the processes list that has certain name. Below is the
code that I use to retrieve the processes.
Process processes = Process.GetProcessesByName("xxxx");
|
by: Budhi Saputra Prasetya |
last post by:
Hi,
I still have the same problem with embedding Windows Control. I'll just
requote what I posted last time:
I managed to create a Windows Form Control and put it on my ASP .NET page. I
have done the suggestion that is provided by modifying the security settings.
From the stack trace, I would assume that the code throws exception when it
|
by: Dan Tallent |
last post by:
In my application I have a form (Customer) that I want to be able to open
multiple copies at once. Within this form I have other forms that can be
opened. Example: ZipCode. When the user enters a zipcode that is unknown
this form will open. I don't want users to modify any of this customers
data until they close the zipcode form. Normally this can accomplished
using a modal form, however this prevents me from opening a new copy of...
|
by: shobhitguptait |
last post by:
How to Run C#.NET Windows App on N/W with centralized DB using SQL SERVER 2000
Hello All...i m really grate full to c such a website where developers try to help people like us who face problems in s/w develepment...I am shobhit Gupta...23 years of age prusuing B.Tech in I.T. Engg. Final Year from Kurukshetra University, Kurukshetra. Recently, i have been working on a project which is to be implemented in a hospital for real life use...Its a...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |