composant windows media en .net
Bonjour,
je souhaite m'écrire une application de type media player. Existe t'il des
composants qui joue de la video, de la musique et des photo en .net
Au début, je pensait intégrer l'activeX de wm9 mais je n'ai pas d'API ... Tag: Free Localization tool? Tag: 63152
Microsoft Money-style interface
Has anyone seen any documentation on how the Microsoft Money interface is
achieved? I assume this is done under winforms, but it has a very
browser-like feel that I wish to replicate in my application.
Thanks in advance for any assistance. Tag: Free Localization tool? Tag: 63151
Splitter Control question
Can any one help ?
I have a splitter control within a Windows form, it works perfect
until the Windows form is smaler where the scroll bar is active there
the splitter control does not work
Any Ideas ? Tag: Free Localization tool? Tag: 63150
Screen Configuration Mechanism ?
Does anyone have any useful links or ideas on allowing end-user screen
configuration in .NET ?
What I am after is a mechanism that allows developers to create rich client
forms in some sppropriate "default" layout, but which then allows a
privileged user to manipulate the screen layout at run-time (to affect all
or selected users), ie. hiding particular panels, controls or grid columns,
changing the display and tab order of panels, controls (within panels) and
grid columns, etc.
I'm not sure how the configuration UI will actually work at present but I'm
open to suggestion.
The mechanism should incur minimal additional effort on the developer. Tag: Free Localization tool? Tag: 63144
Docking a panel to a splitter window
I have a Winform that has a splitter control, set vertically in the middle
of my page.
I have a panel over on the right hand side that has edit controls on it.
What I want to do is either attach the panel to the right hand side of the
splitter or make it so that when I move the splitter to the right, the
expanded left hand side window covers up the panel.
What type of property would I need to set within my panel to get it to dock
or be sizable with the splitter.?
STom Tag: Free Localization tool? Tag: 63142
Datagrid - Datatable synchronisation
Hi,
i bound my DataGrid.DataSource to a DataTable. Now i add a
new row to my datatable. This new row will be displayed in my
datagrid. But it isn´t the active row. How can I select the new row
in the datagrid.
Thanks in advance
Sepp Tag: Free Localization tool? Tag: 63125
Cannot show inherited forms in design mode
It seems that every now and then, totally at random, Inherited forms stop
working in design mode. Once they stop working, I can never get them to work
again. When I try to show the form in design mode it says "An exception
occurred while trying to create an instance of MyClassName. The exception
was "Specified cast is not valid."".
The form compiles just fine and everything works well except for this error
message which leads me to belive that Visual Studio.NET is more to blame
than me. ; p.
I have tried to delete the resx file and have it recreated but that doesn't
get me any closer to a solution.
Is this a known bug? Are there any workarounds or do you have any ideas as
to what I should do to resolve this annoyance?
Thanks,
Magnus Tag: Free Localization tool? Tag: 63116
Tree control focus frustration
Hi;
I've built the guts of an explorer style application in C#. It has a
tree view on the left showing a series of nodes that are relevant to my
user, and as they click on each one, the right-hand side of my window
shows the particular panel that's relevant to the selected node.
I have one minor frustration, however. What I'd like to do is focus on
the first control within the newly chosen panel. I know which control
this is, and I can transfer focus to it by Select()'ing it, but once the
tree control has finished its AfterSelect() event it steals focus back
again.
I've got a dual monitor setup and I can step through my tree control's
AfterSelect() event handler. My new panel is selected, completely drawn
by calling Update(), the first control on the panel is selected and
focused on and the tree loses focus. Finally, when I step off the end of
AfterSelect(), focus magically snaps back to the tree.
I'd really like focus to stay on my newly selected panel rather than the
tree.
(1) Am I fighting a pointless battle here? Should focus stay with the tree?
(2) If it's not extremely rude to move focus to the new panel and leave
it there, how do I do it?
Thanks,
Andrew. Tag: Free Localization tool? Tag: 63108
Is this impossible ?
Can you make a "LongTimeString" tick backwords using VB . NET 2003
Private Sub Timer1_......
Textbox1.Text = Now.ToLongTimeString
"????????Hummm Tick Backwords"??????"
End Sub
End Class
See what you come up with and post a code sample, I think it mght work if
you can Dim TextBox1 as something and use something like IF LongTimeString
= > +1 then TextBox1.Text = -1
I dont know I can't fig it out, can you? Tag: Free Localization tool? Tag: 63105
Control.FromHandle
Hi ,
We are trying to obtain the active window of a given Windows Forms
application . Although most of the win API functions like GetActiveWindow
and
GetForegroundWindow return a valid handle , calling the method
Control.FromHandle using the handle returned from the WIN API evaluates to
null.
All we are interested in is in checking whether a specific winform
application is running or not ( Ofcourse we could have used WSH but we need
to do a bit more than what can be achieved with that) through a monitoring
application
Any sample illustrations or alternative approaches would be highly regarded
Kind Regards
Bijoy Tag: Free Localization tool? Tag: 63103
Using DirectX 9 with .NET
Don't know whether to post this to a DirectX newsgroup, but I'd post it here
:)
I have written a C# MDI app utilising GDI+ to do the drawing. Performance is
terrible. (I have double buffering, but this causes other problems,
especially at high zoom levels - on large documents).
Is it possible to use DirectX9 to paint MDI child windows? I have seen some
samples, and they seem to use a busy loop to continually redraw a window,
calling Application.DoEvents after each iteration.
Why do they need to do this? Would it work to have multiple MDI childs and
update those in the loop? Why not just respond to paint events instead of
replacing the message loop?
Maybe I just don't get it.... :)
Anyone have any ideas? Any advice? Anyone actually done this with any
success?
Thanks -
Paul Wardle Tag: Free Localization tool? Tag: 63101
Press a button programatically
Hi,
Is there a way to push a button programatically (and for
that matter to emulate any other key/mouse event).
For example when a button is pressed by a mouse/key it
caves in and events get fired.
How do I cause this to happen programatically?
Something like:
MyButton.ClickIt()-and the button caves in
The Windows calculator does it nicely-copy some numbers in
the clipboard and paste them in the calculator and its
buttons get clicked.
Thanks Tag: Free Localization tool? Tag: 63095
Char.IsControl bug?
Hi,
I am listening to TextChanged events in a TextBox and checking if a char is
a control char via the Char.IsControl method. This works fine for regular
English input. But when I change the input lang. to be "Greek", certain
characters (like capital "D", delta in greek, I think) are recognised AS
CONTROL CHARS by the Char.IsControl method (whereas they certainly are not
control chars). I have made sure that the Application.CurrentInputLanguage
setting is set to "Greek" at this point.
Am I missing something or is this a bug?
TIA,
-Praveen Tag: Free Localization tool? Tag: 63090
Char.IsControl bug?
Hi,
I am listening to TextChanged events in a TextBox and checking if a char is
a control char via the Char.IsControl method. This works fine for regular
English input. But when I change the input lang. to be "Greek", certain
characters (like capital "D", delta in greek, I think) are recognised AS
CONTROL CHARS by the Char.IsControl method (whereas they certainly are not
control chars). I have made sure that the Application.CurrentInputLanguage
setting is set to "Greek" at this point.
Am I missing something or is this a bug?
TIA,
-Praveen Tag: Free Localization tool? Tag: 63089
What is the exact procedure to show/hide forms?
Hai all,
I've two or more forms on my app.
My requirement is, Have to show the first form asa the user press a button
have to hide the first form and show the second form. If the user press the
escape key on second form, this should be hidded and should show the first
form.... Can some one guide me how to achive this... (MUST USE SHOW & HIDE
FORM PROPERTIES). I tried to achive this using the below code but when i
check the Windows->Task Manager for each and every form changes it's eating
up memory and it's not getting down.
On Form1 :-
Button1_Click()
Dim Form2 as new Form2
Form2.show()
On Form2 :-
Dim Form1 as new Form1
Form1.show()
Thanks in advance.
Ajai Tag: Free Localization tool? Tag: 63087
DockStyle problem
I have a GUI which I design with VS.NET.
basically I have tabs and I put control at the top or bottom by setting
their Dock property to Top or Bottom.
then (after the InitializeComponent()) method I add some other widget in the
tabs, with the aim to fill the remaining space by setting their Dock
property to Fill
unfortunately the new control seems not to take the remaining space, but the
whole space of the Tab page !
(and are partially obscured by previously adde control)
is that really normal ?
how to fix that ? Tag: Free Localization tool? Tag: 63080
Timer Question???
I'm using VB .NET 2003 and I cant figure out how to do this, I have a
windows application with 2 Forms and a Timer the Timer is on Form1, I also
have a Button on Form2, I want to click Button1 located on Form2 an have the
Button1_Click event perform Timer1 functions, for example; Button1_Click
...... Timer1.Enabled = False, sounds simple enough but I cant get Form2 to
inherit Form1's Timer component, I tried it a few different ways but I'm
stuck, I can get Form2 to inherit other components like Labels and Textboxes
but I cant get it to inherit he Timer component.
Anyone know how to???
Do you even have to inherit the Timer to do this??? Tag: Free Localization tool? Tag: 63077
pass a class as argument
The code below gets data from my webservice and load the data into the
array called myarray using a class called DataClass. I would like to
use the same process (LoaData) to bind differrent comboboxes by using
different classes. How can I modify the LoadData so that I can pass in
the class -- private void LoadData(System.Windows.Forms.ComboBox cmbo,
??). Any sample of code would be very helpfull. Thanks.
private void LoadData(System.Windows.Forms.ComboBox cmbo)
{
WebService.GetData mydata = new WS.GetData();
DataSet Ds = mydata.GetInfo();
foreach (DataRow Dr in Ds.Tables["StateList"].Rows)
{
MyArray.Add(new DataClass(Convert.ToInt32(Dr["ID"].ToString()),
Dr["Desc"].ToString()));
}
cmbo.DisplayMember = "Desc";
cmbo.ValueMember = "Id";
cmbo.DataSource = MyArray; Tag: Free Localization tool? Tag: 63076
How to prevent the drawing of multiple lines on form?
Dear colleagues,
I refer to your help with specific graphic problem. It is
necessary to create a viewfinder in graphic application.
It seems that the algorithm is simple: just draw lines
in specific position in according to value of some
controls, track bars, for example. Next read the track
bars value to find the coordinates of lines cross.
It works, but I can not get real cross because the
background image is being deface by lines images.
The drawing procedures looks like the next:
' Picture box picbView and two track bars (trckHoriz,
trckVer) are created on form.
#Region "Form level variables"
Dim hwnd As New IntPtr ' handler of picturebox's
window
Dim g As Graphics ' graphic object for drawing
lines
#End Region 'Form level variables
Sub InitiateFormData()
' call this procedure at Sub New, located at Windows Form
Designer generated code
' maximums of appropriate trackbars are equal to
picture box size
trckHoriz.Maximum = picbView.Width
trckVert.Maximum = picbView.Height
hwnd = picbView.Handle ' assigned
handler
g = Graphics.FromHwnd(hwnd) ' created
graphic object
' get path to image and load it as picture box's
background
Dim strImageFile As String =
Application.ExecutablePath.Substring(0, _
Application.ExecutablePath.LastIndexOf
("\") + 1) & "Viewfinder.jpg"
picbView.BackgroundImage = Image.FromFile
(strImageFile)
End Sub
Sub DrawViewfinder()
' draw viewfinder's lines
' TODO - how to prevent the drawing of multiple
lines ????
Dim p_en As New Pen(Color.Yellow)
g.DrawLine(p_en, 0, trckVert.Value,
picbView.Width, trckVert.Value) ' horizontal line
g.DrawLine(p_en, trckHoriz.Value, 0,
trckHoriz.Value, picbView.Height) ' vertical line
' and we get the images of all lines ever been
drawn :<<<
End Sub
Private Sub trckHoriz_Scroll(ByVal sender As Object,
ByVal e As System.EventArgs) Handles trckHoriz.Scroll
DrawViewfinder()
End Sub
Private Sub trckVert_Scroll(ByVal sender As Object,
ByVal e As System.EventArgs) Handles trckVert.Scroll
DrawViewfinder()
End Sub
I will be highly grateful for advices how to resolve this
problem.
Best regards
George Golubev, Russia Tag: Free Localization tool? Tag: 63073
Fade from one Panel to the other
I am building an application that will fade one panel to another
panel. Both panels will have picture boxes in them (thumbnails).
This is what I have tried:
private void fade(System.Windows.Forms.Panel fP){
for (int i = 255; i >= 0;i--){
System.Threading.Thread.Sleep(10);
fP.BackColor = System.Drawing.Color.FromArgb(i, 255,255,255);
System.Windows.Forms.Application.DoEvents();
}
}
There is another Panel under the one being passed in to the function.
It has two problems. One it flickers like crazy, and two (now this I
don't get at all) it does not become transparent at all. It just fades
the form color. (At the time of testing the top panel had no images in
it, but the bottom one did)
Am I doing something wrong? (Well of course you are idiot) But what?
I don't know much about GDI, but is it possible to take a image of my
control that is fading out and replace the control with that image and
fade the image out? Would that be any better. (Thinking out loud).
If you could, please point me in the right direction. If you had
sample code to do this I would erect a large alter in your name and
sacrifice many chipmunks in for you. (OK, for those of you with no
sense of humor, I'm joking).
keywords: dotnet c# fade panel control Tag: Free Localization tool? Tag: 63070
Adding extra title bar button
I have an extension to the Windows shell I want to write where I need an
extra button by the max/min/close buttons. Does anyone have an idea where I
would start looking to find out how to do this? Tag: Free Localization tool? Tag: 63069
place a Form on a TabPage
hello
I have a tabControl wite several pages I whould like to place a form ontop
of one of it's pages.
how do I do that?
Yoramo Tag: Free Localization tool? Tag: 63051
Enumerating child windows.
If I have a main window for a process (obtained vias
System.Diagnostics.Process.MainWindowHandle) of some process on my system,
is there a way to enumerate the child windows without resorting to the
non-managed Win32 EnumChildWindows function?
Brian McCormick
mccorb@cox.net Tag: Free Localization tool? Tag: 63050
Problems with Send to Back & Bring to Front
Hai all,
Can somebody give me some solution to handle this scenario?
I've a MDI Parent form. It holds a GroupBox along with some labels. I have
one more form which is a child form this parent. When I open the child form
it gets hides behind parent form's GroupBox. I tried Groupbox.sendtoback()
on parent form and Me.BringtoFront() on childform__Activated() area, but NO
JOY...
Thanks in advance.
Ajai Kumar .R Tag: Free Localization tool? Tag: 63048
VS 2002 Bug?
Every now and then, when I'm working with WinForms, VS seems to "lose"
somehow the event handlers (they exist, but the += that ties them are gone,
so they are not activated)
This has happened to me for more than once.
Anyone familiar with this? Tag: Free Localization tool? Tag: 63047
Clearing back history in IE as a hosted control.
I have an IE control that I host in my app, I usually Load() documents to
IE, but the user can navigate using links as well.
I want to clear the history (only the back & forward, actuall) when I Load()
a new document into IE, how can I do this? Tag: Free Localization tool? Tag: 63039
Toolbar Problem
When the toolbar's button in disable state, no image is
displayed. Got any idea how this happened? Tag: Free Localization tool? Tag: 63038
listview
Hi,
Suppose we have 5 textboxes and one commandbutton.as soon
as we click that button the contents should be added to
our listview.So for that what's to be done.
I would appreciate if u could provide me the coding.
Thanking You. Tag: Free Localization tool? Tag: 63037
listbox
Hi,
I wish someone should be kind enough to help me in
answering this for me
1. Suppose we have two listboxes then if we want to
retrieve all the contents from listbox1 to listbox2
say 10 elements what is to be done.
2. How do u connect VB.net to MS ACCESS
Thanking you. Tag: Free Localization tool? Tag: 63036
How to prevent the drawing of multiple lines?
Dear colleagues,
I refer to your help with specific graphic problem. It is
necessary to create a viewfinder in graphic application.
It seems that the algorithm is simple: just draw lines
in specific position in according to value of some
controls, track bars, for example. Next read the track
bars value to find the coordinates of lines cross.
It works, but I can not get real cross because the
background image is being deface by lines images.
The drawing procedure looks like the next:
' graphic object is refering to picturebox
' this picturebox has background image
Sub DrawViewfinder()
' draw viewfinder's lines
' TODO - how to prevent the drawing of multiple
lines ????
Dim p_en As New Pen(Color.Yellow)
g.DrawLine(p_en, 0, trckVert.Value,
picbView.Width, trckVert.Value) ' horizontal line
g.DrawLine(p_en, trckHoriz.Value, 0,
trckHoriz.Value, picbView.Height) ' vertical line
End Sub
Private Sub trckHoriz_Scroll(ByVal sender As Object,
ByVal e As System.EventArgs) Handles trckHoriz.Scroll
DrawViewfinder()
End Sub
Private Sub trckVert_Scroll(ByVal sender As Object,
ByVal e As System.EventArgs) Handles trckVert.Scroll
DrawViewfinder()
End Sub
I will be highly grateful for advices how to resolve this
problem.
Best regards
George Golubev, Russia Tag: Free Localization tool? Tag: 63035
Panel Fill with Nested Controls
Greetings Everyone.
I have been trying to fill a panel control with linear gradient. (Isn't
everyone?) This control contains a number of label controls. I placed code
in the panel's paint event handler. While this does fill my panel as
expected it also performs the fill on each of the label controls resulting
in a rather tacky display of gradient excess.
I have confirmed that, to no surprise, the paint routine is being called
once for the panel and again for each constituent control. It also appears
as though the panel itself is the sender of all the events and each of the
labels' dimensions are being sent in the ClipRectangle property. I am not
sure I understand the reasoning behind this. Can someone explain that? More
importantly, would someone mind sharing their clever solution to getting
only the panel to paint? (I've considered comparing label locations to
ClipRectangle X and Y but that seems clumsy.)
TIA -
Eric Tag: Free Localization tool? Tag: 63027
IE Icons
I'm embedding IE in my app, and I want to display a toolbar with the back,
forward, stop, home, etc icons of IE.
Is it possible? Or is there some (C) problem?
If possible, where do I get them? Tag: Free Localization tool? Tag: 63025
Need Expert Opinion on design issue
Greetings all,
Ok, I've developed a .NET application that integrates into the Windows shell
as a namespace extension (think of Scheduled Tasks and you'll get the
general look of my app). Since I've written it in C# using the 1.1
framework, I decided to support the XP look by calling
Application.EnableVisual Styles(), however here lies the problem:
It appears that calling EnableVisualStyles() works as long as its' called
from an executable. Unfortunately, in my case, I have no starting
executable. Technically the executable is Windows Explorer (explorer.exe)
which calls into my DLL through various interfaces. To make a long story
short, calling EnableVisualStyles within my DLL eventually leads to a crash
of the Windows exlplorer interface, so I'm left with one option to get the
XP style interface, and this is where I need expert opinions:
If I include a manifest named explorer.exe.manifest and install it into the
windows directory, everthing works great. My windows inherit the XP
interface, however so does other programs that are tied to Windows
explorer, such as scheduled tasks. So my question is, should I install a
manfiest that potentially alters other programs interface just to get my app
to have the XP style interface, or should I just leave it alone? The reason
I ask this is that this is going to be a commercial application, and I want
it to look professional (i.e. when run on XP, one would expect it to have an
XP interface), but am I crossing the line by installing a file that could
have affects on other apps that are not mine?
All opinons are welcome!
Neil Axe
Exalien Software Tag: Free Localization tool? Tag: 63024
Stretched background image in MDI parent form
hi.
Does anybody know how to set background image in MDI form without
overwritting OnPaint function?
TIA Tag: Free Localization tool? Tag: 63019
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: Free Localization tool? 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: Free Localization tool? 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: Free Localization tool? 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: Free Localization tool? 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: Free Localization tool? 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: Free Localization tool? 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: Free Localization tool? 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: Free Localization tool? 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: Free Localization tool? 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: Free Localization tool? 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: Free Localization tool? 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: Free Localization tool? 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: Free Localization tool? 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: Free Localization tool? Tag: 62991
* "JezB" <jeremy.bradshaw@blueyonder.co.yk> scripsit:
> Anyone know of any free localization tools ? (Ideally with graphical user
> interface allowing easy configuration of screen layout).
Have a look at "WinRes.exe" which comes with the .NET Framework SDK.