Question on Clearing a multi-line text box
Hi
I got a problem. I have just moved over for a bit from BCB
to VC++.NET 2003 and am struggling with just one function,
namely the TextBox->Lines->Clear().
It says it takes an array as the first argument, the index
to start at for the next and finally the total number of
items to clear. So I try this:
tbOutput->Lines->Clear(tbOutput->Lines,0,tbOutput->Lines-
>Count);
as I Suspected this does not work. How do I clear a Text
Box (Using multi-line property == true, so its like a
memo).
Thanks for any help
-CT- Tag: Stretched background image in MDI parent form Tag: 63015
CheckedListBox
Setting SelectionMode Property to "MultiSimple" causes:
Invalid Property Value
Multi selection not supported on CheckedListBox.
The documentation that I have read says it should work.
Any Ideas
Thanks Tag: Stretched background image in MDI parent form Tag: 63013
Office 2003 / ASP.net web matrix Toolbar Icons
Hello
I am looking for a set of toolbar icons that have the high color look of the
Office 2003 products to include use my project. Does anyone have an idea
where I might find them ? You can't resource hack any of the Microsoft
office executables to find them either, not to mention it isn't entirely
legal to do that.
Thanks
john Tag: Stretched background image in MDI parent form Tag: 63012
Listview control background image
Hi,
I am using a System.Windows.Forms.ListView control and
would like to put an image in the background. Although the
BackgroundImage property is not exposed in the IDE
Properties window for the control, I figured that the
Listview, being descended from the Control class, should
implement the property, so I used the following code in my
form's constructor (after InitializeComponent(), of
course):
listView1.BackgroundImage = Image.FromFile
(@"C:\test2.bmp");
But nothing happens. I also tried this:
listView1.BackgroundImage = new Bitmap(@"C:\test2.bmp");
But the background is still blank. Any ideas?
Thanks, MP Tag: Stretched background image in MDI parent form Tag: 63011
Running DTS packages
I have some code that I stole from MSKB article 321525 that I'm using in a
windows forms app (framework 1.1, VS 2003) that I'm having some problems
with.
Basically, if I try using it on a machine that only has the framework
installed, then it fails intermittently. If I use the code on a machine
that has had SQL installed onto it, then it works perfectly. Running a file
monitor over the machine that works shows that it is actually using the dts
files (e.g. dtspump.dll) installed under c:\program files\microsoft sql
server instead of just using framework files.
I'm thinking that next week I need to contact MS to say "What's wrong with
321525?" but, in the meantime....
Could someone confirm that I really shouldn't need the locally installed dts
files
and
Has anyone else had the same kind of problem with 321525? Any solution?
--
Rob Oldfield
www.realuk.co.uk Tag: Stretched background image in MDI parent form Tag: 63010
Change application entry point
I'm trying to change the file where the application starts. I moved the
main method to the code that I want to start the app and I removed the main
method where it use to be. But now I get an error saying the previous file
does not have a a 'suitable main method'. How do I get VS.Net to recognize
my new file as the starting point? Tag: Stretched background image in MDI parent form Tag: 63009
Find and Replace window
Hi,
I need to develop a form window similar to the Find and=20
Replace window of Visual Studio, i.e., I have a main form=20
and I will have to open a new window that will be on top=20
of my application's main window, but not on top of all=20
opened applications (TopMost =3D false). I can still access=20
the information of the main window (a modeless window) =20
but I cannot move the new window.
Can someone help me on this?
Thanks,
Ma=EDra Tag: Stretched background image in MDI parent form Tag: 63006
Drag\Drop to Explorer
I would like to drag\drop items from a ListView to Windows
Explorer\Desktop and return the drop location's full path
(for use as the destination for a file transfer). I'm
having no problems with the process when dropping to the
ListView, only with external windows. Can anyone point me
in the right direction? Thanks...Dan Tag: Stretched background image in MDI parent form Tag: 63003
DataGrid Summary Row
I wish to create summary rows for my Windows Form
DataGrid. I found an article on MSDN that explains how to
do this for ASP .NET DataGrids, but I can't seem to find
anything about Windows Forms DataGrid. Heres the article
and its the last screen shot that I'm interested in
reproducing.
http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dndive/html/data01102002.asp
Regards
Mark Tag: Stretched background image in MDI parent form Tag: 62999
TabPage issue
I have a custom TabPage class the I add to a standard TabControl. I have a
NumericUpDown control on the TabPage whose Validating event is tied to a
method in the TabPage class. If the user types in a value, does not use the
up/down arrows to change the value, I validate the Text property in the
Validating event. If it is not valid I display a MessageBox then set the
cancel property of the CancelEventArgs to true, then call the NumericUpDown
control Focus method, then select the text of the NumericUpDown control.
This all works great if the user uses the Tab key to move to the next
control, or clicks another control on the current TabPage.
The problem arises when the user after typing in what is an invalid value
into the NumericUpDown control then clicks another Tab in the TabControl.
Here is what happens.
1. Enter invalid data on the current TabPage
2. Click another TabPage on the TabControl
3. The MessageBox is displayed twice with the originating TabPage visible.
4. The TabControl switches to the TabPage that was clicked
5. The MessageBox is displayed again. (Third time)
6. Anything after this causes the MessageBox to display and I can not leave
the TabPage that was clicked.
Can any one provide any ideas as to what is happening?
Thank You
Ken Tag: Stretched background image in MDI parent form Tag: 62998
How to refresh in a loop?
Hi,
I've written a progress window in C#. While looping through a list of files
I want to display the current file and the updated progress bar. However, no
visual update is performed during the loop. Can someone please enlighten me
on how to easily return control to the message pump during the loop?
TIA,
Axel Dahmen Tag: Stretched background image in MDI parent form Tag: 62995
Forms that won't Dispose
Hi MS & All others,
I've been investigating a memory leak in my application which is proving
particularly hard to fix, and I came across something very unusual.
I've determined that the leak is caused by a particular form that won't
"dispose". I'm using a program called ".NET Memory Profiler" to check to
see whether there's still an instance of my form even after it has been
closed & disposed.
After doing some testing, I've now come across a very unusual situation: In
a simple little app, I can load Form2 from within Form1, display it using
ShowDialog, close it (and then call Dispose on it from within Form1) and the
memory profiler reports that there are 0 instances of Form2 currently
running, just as it should be.
However, if I have a context menu on Form2 and I display it (handling
Form2's click event and showing the menu from code), and then close &
dispose it, it remains in the list of instantiated classes. I have tried
this several times, and was able to end up with a list of over a dozen
instances of Form2 despite the fact they had been closed and disposed of.
This ONLY ever happened if I'd clicked to show the Context-Menu, if I didn't
do that then Form2 would happily Dispose.
Is there some quirk where extra code is needed to dispose of a Form after a
Context Menu has been shown? I tested this with a MainMenu instead and it
Disposed just fine. Could this be a memory leak in the Framework? I'll be
happy to post a sample project demonstrating it, but in order to see the
problem you will require some sort of profiling tool capable of examining
the Heap. I'm using VS.NET 2003, Framework 1.1, WinXP Pro.
Many thanks,
Alex Clark Tag: Stretched background image in MDI parent form Tag: 62993
PreProcessMessage
Does anyone know how to use this method on a Form or a Control? I've tried
overriding it and it never seems to get called. Am I missing something?
I want to intercept mouse messages to stop them being sent to sub-controls -
similar to design time controls in VS. Tag: Stretched background image in MDI parent form Tag: 62992
Cannot Open Inherited Forms KB 814732?
I create a base form then I created an inherited form.
This works fine. I do some work in both of the forms.
This works fine. Suddenly, there comes a time when I
cannot display a design view of the inherited form. This
is independent of the code that I write. I believe this
is the same issue that is described in KB 814732 except
that the error that I get is "Object Reference is not set
to an instance of the object". What does the KB article
mean when it says "Copy the assembly in the directory
where WinRes.exe is located." What assembly? Where is
WinRes.exe located?
I'm buried in jargon.
Thanks in advance for your help.
Glen Tag: Stretched background image in MDI parent form Tag: 62991
ANN: 9Rays.Net announces XMas discounts, sales dropped up to 50%
9Rays.Net (SOFTWARE FOR DEVELOPERS) announces HUGE CHRISTMAS SALE!
DISCOUNTS up to 50% and more! Don?t miss it! Offer Ends SOON! Get the BEST
PRICES at http://9rays.net!
--
Best regards,
Al Ponomarev
9Rays.Net Tag: Stretched background image in MDI parent form Tag: 62984
JOB: Houston, TX >> Web / .NET Developers (6 months+ contracts) - Local Candidates ONLY
JOB: Houston, TX >> Web / .NET Developers (6 months+ contracts)
infoTEAM, inc. is currently staffing the following contract positions for
our client, located in Houston, Texas.
DESCRIPTION:
The Web / .NET Developers will rewrite large gas transportation and
gathering web-based applications into .NET technologies.
REQUIREMENTS
Hardware: Microsoft W2000, Compaq Servers, IIS Servers
Language/Software: The perfect candidate should have the technical skills
set below.
* 3-5 years designing, programming and implementing web-based applications
using JAVA based development tools in an object oriented programming
environment
* 3-5 years of development experience in SQL Server database technologies
including TransactSQL and stored procedures and/or triggers using MS SQL
Server 7.0 or 2000
* 3-5 years of development experience in C++ or Java JDK in a batch and/or
GUI environment
* 1-3 years experience in the following technologies:
.NET Products: Visual Studio .NET or Visual Basic .NET, Visual C#, .NET,
Framework, Common Language Runtime (CLR) and Type libraries, XML Web
Services, Windows Forms, Web Forms, ASP.NET, ADO .NET, .NET Framework SDK,
.NET Unified Programming Model and Class Libraries, Web Protocols and data
formats, XML, HTTP, Simple Object Access Protocol
(SOAP)
For consideration, email your resume to smichaels@infoteam-inc.com in a Word
or Text Only format as an attachment. Please let us know a good
time/date/number for us to contact you.
In the event you are not available, but know others who may be, we will
greatly appreciate you forwarding this email to them. Our client is looking
for several Web / .NET Developers with the aforementioned experience.
We hope to hear from you soon.
Best Regards,
Steve Michaels, CIR / CPC
Principal Recruiter
infoTEAM, inc.
smichaels@infoteam-inc.com Tag: Stretched background image in MDI parent form Tag: 62973
Forms application memory usage in Taskmanager
Can someone explain to me the memory usage patterns I see when observing an
Forms application in Taskmanager?
what I see:
Start the program and the TaskManager says it is 11 MBs or so.
Minimize the program and the task manager says it is about 300KB or so.
Maximize the program and the task manager says it is about 3.5MB give or
take a few.
So why the great differences in size? Tag: Stretched background image in MDI parent form Tag: 62972
Is there any such 3rd party dotnet control available..
Hello,
This is to enquire about the availability of any dotnet control which
can provide the following functionality:
- Looks and works like a tab control with multiple tabs like tabA, tabB,
tabC etc
- Should have a feature which allows dragging and dropping tabB on tabC
facilitating viewing more than one tab at the same time.
Thanking you and looking forward to a quick reply ..
dev
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! Tag: Stretched background image in MDI parent form Tag: 62971
Is there any such 3rd party dotnet control available..
Hello,
This is to enquire about the availability of any dotnet control which
can provide the following functionality:
- Looks and works like a tab control with multiple tabs like tabA,
tabB, tabC etc
- Should have a feature which allows dragging and dropping tabB on
tabC facilitating viewing more than one tab at the same time.
Thanking you and looking forward to a quick reply ..
dev Tag: Stretched background image in MDI parent form Tag: 62968
DotNetMagic problem - need to hide docked window after I select something inside.
I have 1.7.4, latest free version, and have a docked window on the
left side that is collapsed. When I have a docked window in the
collapsed mode and then swing it out and select something, is there an
event or something that will make the docked window collapse again
without having to select an external control elsewhere?
Right now I have to have some sort of control in the main form and
then select it in order for the docked window to collapse again.
Thanks! Tag: Stretched background image in MDI parent form Tag: 62967
NullReference on ShowDialog
This is a bit strange and I can't figure it out. The exception below is
only thrown once, after the computer is booted and the program is launched.
But after the exception is thrown, it is not thrown again until I reboot and
start the program again, but again, only that one time.
private void grid1_DoubleClick(object sender, System.EventArgs e)
{
DataGridCell myCell = grid1.CurrentCell;
System.Int64 SelectedID = Convert.ToInt64(grid1[myCell.RowNumber,0]);
NewClass NewForm = new NewClass(SelectedID);
NewForm.ShowDialog(this); <<<<<<<< Exception thrown here
}
I've tried doing a try catch, but I cannot seem to handle this exception.
Any ideas? Tag: Stretched background image in MDI parent form Tag: 62965
Notified when child control gets focus
Is there a simple way other than looping through each child control of a
panel and subscribing to the GotFocus event for each child control?
What I want is if any control gets focus inside a panel, I then raise a
custom event.
Thanks,
-Jim Tag: Stretched background image in MDI parent form Tag: 62963
[ANN] XML-based Windows Forms Development...
Xamlon v0.6 (beta 2) has been released and can be downloaded from:
http://www.xamlon.com/
Xamlon allows for XML-based Windows.Forms development and follows
the syntax of "Longhorn's" new "Avalon" Markup Language, XAML. Xamlon
also provides "compatibility wrapper" objects around Windows.Forms controls
that mirror the naming convention used in Avalon's XAML.
There are several key benefits of using Xamlon today:
a.. Application development becomes much more simple and efficient. Xalmon
provides a very clean separation between presentation and application logic.
b.. Xamlon application run on all of today's .NET Framework 1.1 Windows
operating systems: Windows 98, ME, NT, 2000, XP, and Server 2003.
c.. Xamlon provides a much simpler migration path to Microsoft's
next-generation presentation layer in "Longhorn", XAML.
We hope you enjoy trying this beta.
Regards,
Paul Colton Tag: Stretched background image in MDI parent form Tag: 62962
KeyDown Event
I'm am currently working with a datagrid. I have noticed that if a cell has
focus and you hit the left or right arrow key the grids KeyDown event
doesn't fire. I also noticed that neither does the KeyDown event on the
textbox. Where is this mystery being that captures the left and right arrow
key. How can I find out if it was the last key stroke pressed. I need to
know if someone just moved left or right so I can keep them from going to
the next or previous line just by hitting left or right. Unfortunatly
watching for the change in the currenctcell doesn't supply enough
information. Any help that can be given is much appreciated.
Thanks in advance,
Brandon Tag: Stretched background image in MDI parent form Tag: 62960
Bug with ComboBox in usercontrol
My problem is: I have comboboxes which resides in a usercontrol.
Always when the usercontrol changes its visible status (the dialog is shown
or you switch to the tabpage where the usercontrol is), all text is selected
in the textfield of the combobox.
Is this a Bug? If yes, is there a workaround?
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk Tag: Stretched background image in MDI parent form Tag: 62958
AxHost'ed WebBrowser Control Win Forms hosting problems! (or bugs?)
Hi All!
When developing financial app I have just encountered problem in using
AxHost WebControl created from SHDocVw.dll.
In my app it is included in MDIChild Windows Form control - BrowserForm.
After or without any customization and inclusion into Windows.Form app as a
MDIChild I have problems with changing focus to BrowserForm windows with
mouse clicks and surprisingly everything works fine with Infragistic
UltraTabbedMDIManager when in tabbed view.
Next problem arisies when switching between tabbed and MDI layout at
run-time programatically. Focus change between child Browser windows in MDI
view is not handled properly, moreover, problem propagates to other MDIChild
Forms which work perfectly when no BrowserForm is present.
Most serious problem I have seen so far arises when switching back to tabbed
view from MDI at run-time. Browser seems to lose control of client window
size and draws itself either at previous size (when tab is deselected and
selected again - than it is again OK) or at some undetermined situations (i
can not find any particular conditions at which to repeat that behaviour) it
draws itself outside application area (even MDIParent) it seems that instead
of window rather at desktop coordinates.
I do assume that browser loses somehow handle to window in which it should
draw and catches handle to desktop (?) but I have no idea how to overcome
that problem! Obviosly the problem with focus change is mysterious for me as
well!
Waiting for any syggestions.
Jacek
PS
VS.NET does not allow for change between tabbed and mdi view at run-time -
you have to start next session - is it runtime switch problem? But in this
same VS.NET multiple browser forms coexist without any focus problems!
I have posted this news to interop newsgroup as well Tag: Stretched background image in MDI parent form Tag: 62956
DragDrop registration failed exception
I have a .NET (C#) application which crashes upon exiting
its main form with a "DragDrop registration failed"
exception.
All references I have so far been able to find to this
exception suggest that the fix is to place a [STAThread]
attribute on the Main() function of the app. I have
already done this and it does not fix my problem.
Any other ideas? What other things can cause this
exception? Tag: Stretched background image in MDI parent form Tag: 62945
Setting Printer Orientation using System.Drawing.Printer.PrinterSettings
Hi All,
I am using Win32 APIs to set the orientation of Printer at runtime. I
get StackOverFlow in SetPrinterInfo method.
I tried to use the the System.Drawing.Printer.PrinterSettings class to
do the same. But could not get this done.
If anyone has tried using System.Drawing.Printer.PrinterSettings
class, can you pls post the some sample code.
Thanks
Nalini Tag: Stretched background image in MDI parent form Tag: 62939
ErrorProvider
Hey does anyone know of an example of using the error provider control using
a datasource/databindings that actually works? I've been trying for days to
get this and just can't seem to get it to work.
any help would be appreciated.
Thanks,
CJ Tag: Stretched background image in MDI parent form Tag: 62935
dotNet community IRC Channel.
Hi all !
A new IRC Channel for the dotNet community has been created
and registred tofay and is totally free. You can access this
IRC channel, using any IRC client software like mIRC,
connecting to irc.voila.fr server, and join the #dotNet channel.
Server : irc.voila.fr
Channel : #dotNet
Hope this will help !!
HELPERS are also wanted for any language or technology.
Each helper will get Operator access and password to
the channel
Best regards,
AX Tag: Stretched background image in MDI parent form Tag: 62934
Salon IRC pour la communauté des utilisateurs et développeurs dotNET
Salon IRC pour la communauté des utilisateurs et développeurs dotNET
Bonjour à tous,
Un nouveau salon IRC pour la communauté des utilisateurs et
développeurs dotNET a été créé et enregistré ce jour. Pour y
accéder, utilisez un client IRC tel que mIRC ou autre,
connectez vous au serveur irc.voila.fr, et rejoingnez le
salon #dotNet.
Serveur : irc.voila.fr
Channel : #dotNet
Des HELPERS sont rechercher pour participer activement à la
vie de ce salon IRC, avec à la clef des droits opérateur sur
le salon pour toutes les bonnes volontés.
Bonne journée et espérant vous voir rapidement sur le salon,
Jean-Michel JACQUEL Tag: Stretched background image in MDI parent form Tag: 62933
IE and XML problem.
I'm having trouble convincing IE to display my XML when I'm using it in my
application.
I'm creating XML using XmlTextWriter, and then Load() it to IE. The problem
is that in the way, a space is inserted after every character (Like this < ?
x m l v e r s i o n = " 1 . 0 " ? >) Which isn't valid XML, of course.
Here is my code:
private void ShowHtml(Item item)
{
ShowHtml(RoarApp.CurrentApp.ItemToXml(item));//Generate VALID XML
}
private void ShowHtml(string Html)
{
IPersistStreamInit Persist;
Persist = RoarBrowser.Document as IPersistStreamInit;
Persist.InitNew();
Persist.Load(Interop.GetStream(Html));
}
//This is the Interop.GetStream method
public static UCOMIStream GetStream(string Data)
{
IntPtr ptr = Marshal.StringToHGlobalAuto(Data);
UCOMIStream retVal=null;
CreateStreamOnHGlobal(ptr,true,ref retVal);
return retVal;
} Tag: Stretched background image in MDI parent form Tag: 62931
CSS in a WinForm
Is there any way to get the functionality of Cascading
Style Sheets (CSS) in a win form application??
I am trying to get consistent look and feel in all of my
forms and have the ability to easily change the "look".
I am coding in c# with Visual Studio 7.1.
Thanks in advance,
Tom Tag: Stretched background image in MDI parent form Tag: 62930
SEHException on ShowDialog
Hi everyone,
I'm getting some strange errors regarding the ShowDialog() method. I have
an MDI application. If I attempt to show a dialog box (ShowDialog) from a
child window, either an SEHException or NullRefernceException may be thrown.
This only seems to happen when I have other, specific child windows open in
the background. I am using databinding, and as far as I can tell, these
exceptions are thrown for windows with listboxes or datagrids that are bound
to tables in a dataset. If I open one child window only, no exceptions are
thrown, but if I open a different child window (one with, say a databound
datagrid and listbox), then flip back to the original window, and attempt to
open a dialog, then the exceptions are thrown.
I've read elsewhere that this can be caused by calling the
Application.EnableVisualStyles - but I'm not doing this. Any help would be
greatly apprecited.
Thanks,
Dave Hagedorn Tag: Stretched background image in MDI parent form Tag: 62929
Communicating With A Service Via A GUI - Need some ideas....
We are trying to write a simple GUI front end to communicate with a service.
We need the GUI to make the service fire certain events if the user needs to
re-perform certain tasks manually, and possibly return a result string with
back to the user from what the service did, records processed, errors, etc.
We are thinking there should be a system tray icon as well that the user
uses to open the GUI as needed.
We tried to keep it simple, and just make a service out of our existing GUI
form, and set it to interact with the desktop. Apparently, right click menus
do not work with system tray service apps, and the icon itself doesn't go
away as expected when the app shuts down. All in all, not a very elegant,
stable or confidence inspiring solution.
We then tried to make a separate GUI app, and keep all UI out of the
service. The process controller I think we can only SEND integer commands,
so it is not really powerful enough.
Should we be looking at remoting? Is there an easier way? We have been
through a half dozen examples on MSDN, various articles, etc. and by the
time we try to put a remoting sample together with a service example with a
system tray icon example, then get all the .dll's created, build an install
program, then try to get it installed on a test machine it all falls apart.
Any ideas on this? We have been doing stuff like this for years with pre-dot
net versions of VC, but just can't get our heads around doing it now with
.NET.
Thanks.... Tag: Stretched background image in MDI parent form Tag: 62928
Developing Deskbars
Hi all.
I'm interested in developing a 'deskbar' (I'm assuming that's the
official term) in .net, something a bit like the Google Deskbar. MSDN
returns no matches for 'deskbar' -- can someone point me to a tutorial
or reference for this?
Cheers,
Ben. Tag: Stretched background image in MDI parent form Tag: 62920
Downloading a DotNet .EXE file, not execute it
Please,
i have a executable DotNet application at my IIS. But when some users goes
to download this file it executes at the server.
What can i do to let it just a downloadable file.
Tks,
Fabiano Tag: Stretched background image in MDI parent form Tag: 62919
kill window
Hi
How to kill some window from the same application
but from other thread having name of this window?
Thanks Konrad Tag: Stretched background image in MDI parent form Tag: 62918
Creating Crystal Reports Dynamically
Hello All,
I am using Crystal reports in my windows application. Currently the method
that I am using to create the report is as follows:
1) Create a SQL Stored Procedure that would return the data for the report.
2) Create a Dataset from the SPcreated in Step 1
3) Create fields on the report mapping them to the fields of the dataset.
4) At run time, fill the dataset so that the report displays the data to
the user
In the above approach, all my report fields are decided at design time. If I
make any changes to my stored procedure or I want to add new fields on the
report, I have to follow the above steps all over again. On changing the
data source, the fields on the report are lost.
I want to create the report fields at run time or in some better way than
the above mentioned method. I need some examples and explanation on how to
go about doing all this.
If any one has other ideas in creating reports efficiently, it would be
highly appreciated.
Thanks in advance
Mithun Tag: Stretched background image in MDI parent form Tag: 62917
Office COM Add-in using C#
Hi,
When I try to use the example of KB Article ID 302901,
I get a problem with commandbars on line:
oStandardBar = oCommandBars["Standard"]
The debugers says: Error: the Object (oCommandbars)
doesn't have an indexer.
I can't find any info on MSDN.
Can anyone help?
Thanks,
Cedric Tag: Stretched background image in MDI parent form Tag: 62916
How to connect Click-Event with a user-control on a form?
I have a previously selfcreated user-control which contains a picturebox and
some additional code, also included is a method that changes the displayed
Image in the Picturebox
on Clicking. This works fine so far. Now I place this user control on a new
form and i want it
to fire a Click-Event on my form when a user clicks it. The Image in the
Pictuebox changes on clicking but the Eventhandler on my form doesnt fire
anything on clicking! I need a possibility for the users of my
user control to write their own code for a click-event on that control.
I read something about user controls being special with events but i dont
get to the point yet...
Thanks in advance for your help,
Jan Tag: Stretched background image in MDI parent form Tag: 62914
Controlbox menu in custom form
I have a custom drawn form with FormWindowBorder.None, and I would like
to be able to show the standard menu when the user clicks the control
box in the upper left corner of the form. Is this possible without
creating the menu by myself? The Move item feels a bit complicated :)
I haven't found a way to get hold of the menu in .NET but I found
GetSystemMenu in User32.dll, but I don't know what to do with the result
of that function.
Thank you all for existing :)
--
http://wailqill.com/ Tag: Stretched background image in MDI parent form Tag: 62911
.Net compact framework
how do i draw a pie chart in .net compact framework using
data from a data table ?? Tag: Stretched background image in MDI parent form Tag: 62904
Problems with shortcuts in OpenFileDialog
I'm having difficulty handling shortcuts (.lnk files) in an
OpenFileDialog control. From all the documentation I can find,
setting DereferenceLinks = True should resolve the target of the
shortcut, but I am always returned the full path to the .lnk file.
I've added code to demand FileIOPermission is Unrestricted, but that
made no difference. Any insight from someone who's solved this, or
just validation that it's a known bug would be appreciated.
Thanks,
Thomas Tag: Stretched background image in MDI parent form Tag: 62903
New Console Window?
Is there a way to display a console window from a windows
form? For example, can I toggle the visibility of a DOS-
Style console to show debugging information?
If there is a way to have more than one console, that
would be even better!
Thanks in advance!
-Eric Tag: Stretched background image in MDI parent form Tag: 62900
control in web page fails if only in GAC
I'm trying to put a DateTimePicker on a web page, using
<OBJECT classid="System.Windows.Forms.dll#
System.Windows.Forms.DateTimePicker" etc.>
(without the line break after #) but it just puts up an
empty box with a scrollbar, indicating some kind of
failure. With some experimenting I've found that, despite
what everyone says, this sort of thing never succeeds in
using an assembly from the client's GAC, but works fine
if the assembly is in the same directory with the web
page. So, I tried copying System.Windows.Forms.dll from
the GAC into the web directory (ugh!), but then I just
got an image icon and it still didn't work. The examples
everyone gives are always of a derived class, never the
standard controls. Am I missing something obvious, or is
this basic functionality broken? Tag: Stretched background image in MDI parent form Tag: 62895
hi.
Does anybody know how to set background image in MDI form without
overwritting OnPaint function?