where is dotnet.framework.windowsforms.design?
It was here yesterday now its gone from the web interface.
Is it ever comming back? Is it still a managed workgroup?
Nick Tag: Loop through MDI chlids Tag: 60620
Splitter max move to right
Hello,
is there a method to limit "splitter's" ability to move right or left
based on the size of the free space (panel) left on the appropriate side?
Ondra. Tag: Loop through MDI chlids Tag: 60616
BUG: HScroll has 2 diff behaviours on scroll events
Hi,
When I process a HScroll scroll event I get one event fired for a increase
value using the > button.
When I make a User control with a HScroll on it and catch the message and
forward my own, I get two events fired yet I send one. I get a
SmallIncrement and then a EndScroll e.Type.
Why the difference in events, its confusing. Tag: Loop through MDI chlids Tag: 60615
Panel (container) added after member controls
Hello,
I would like to add now (after some controls already added) new "panel".
When I add the panel to the form, I want to move previously added controls
to be managed (anchored, padded) to the panel, but they are still related to
the base form, where they were created at first. How to move them to the
panel?
Ondra. Tag: Loop through MDI chlids Tag: 60614
Bug in PrinterSetting ???
Hi
Using the PrinterSettings class I want to get the No. Of copies of the
document to be printed. But it is always giving 1 as the copies to be
printed. I am using following code
dgPrintDialog.PrinterSettings.Copies = 2
dgPrintDialog.ShowDialog()
NoOfCopies= dgPrintDialog.PrinterSettings.Copies
What is wrong with this code. Most of the people have raised the same issue
and told that this is bug. If it is a bug is there any way to get the NoOf
copies?
Need Help
Nanda Tag: Loop through MDI chlids Tag: 60613
Problem with UITypeEditor
Hello to everybody.I make a class that inherits from
UITypeEditor to customizing the view of the value of an
image in a PropertyGrid.I have a problem when I want to
cancel the image selected (hitting the Canc button).In
fact when I hit Canc button the application throws an
error. Anyone know how to intercept the pression of a
button directly in my custom UITypeEditor class. Tag: Loop through MDI chlids Tag: 60608
showdesktop
Hi all,
I want to minimise all other windows (like show desktop) and show only
my applcation.How do i go about
Regards,
... Tag: Loop through MDI chlids Tag: 60605
Urgent~~ Datagrid Error
This is a multi-part message in MIME format.
------=_NextPart_000_16BD_01C3A48D.CAF677C0
Content-Type: text/plain;
charset="big5"
Content-Transfer-Encoding: quoted-printable
HI ALL,
Here I have a question on the datagrid... I would like to change the =
column header so i have written the following code to change column =
header text when current cell has been changed. But I found a situation =
will cause the grid error when the focus is on the last (add new) row =
and then click on any other controls will raise an error. A BIG RED =
CROSS will then be shown on the datagrid instead of all block of cells.
Does anyone know why the following code will cause the error??... Notes =
that if the .Refresh() statement is remarked.. the error never happens.. =
but the column header text will not update unless the last (add new) row =
is selected. It will make the column header text changed base on the =
last selected row before the last (add new) row is selected.
With CType(objDataGrid, DataGrid)
If =
objTable.Rows(.CurrentCell.RowNumber).Item("SizeType") <> "" Then
objRow =3D =
objTable.Rows.Find(.Item(.CurrentCell.RowNumber, 0))
objCaption =3D =
objSizeTable.Items(objRow.Item("SizeType"))
For Index =3D 1 To 17
=
.TableStyles(strTableName).GridColumnStyles(Index).HeaderText =3D =
objCaption.Items(Index).Description
Next Index
' .Refresh()
End If
End With
I have been suffering in this error for a few weeks but I still have no =
one can answer my question. Please give me a hand. Thanks.............
Ivan
------=_NextPart_000_16BD_01C3A48D.CAF677C0
Content-Type: text/html;
charset="big5"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 6.00.2800.1264" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>HI ALL,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Here I have a question on the =
datagrid... I would=20
like to change the column header so i have written the following code to =
change=20
column header text when current cell has been changed. But I found a =
situation=20
will cause the grid error when the focus is on the last (add new) row =
and then=20
click on any other controls will raise an error. A BIG RED CROSS =
will then=20
be shown on the datagrid instead of all block of cells.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Does anyone know why the following code =
will cause=20
the error??... Notes that if the .Refresh() statement is remarked.. the =
error=20
never happens.. but the column header text will not update unless the =
last (add=20
new) row is selected. It will make the column header text changed =
base on=20
the last selected row before the last (add new) row is =
selected.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> =20
With =
CType(objDataGrid,=20
DataGrid)</FONT></DIV>
<DIV><FONT face=3DArial=20
size=3D2> &nbs=
p;  =
;=20
If objTable.Rows(.CurrentCell.RowNumber).Item("SizeType") <> ""=20
Then<BR>  =
; =
=20
objRow =3D objTable.Rows.Find(.Item(.CurrentCell.RowNumber,=20
0))<BR> =
&=
nbsp; =20
objCaption =3D=20
objSizeTable.Items(objRow.Item("SizeType"))<BR> &n=
bsp; &nb=
sp; =20
For Index =3D 1 To=20
17<BR> &=
nbsp; &n=
bsp; =20
.TableStyles(strTableName).GridColumnStyles(Index).HeaderText=20
=3D objCaption.Items(Index).Description<BR> &=
nbsp; &n=
bsp; =20
Next=20
Index<BR>' &nb=
sp; &nbs=
p; .Refresh()<BR> &nb=
sp; &nbs=
p; =20
End If</FONT></DIV>
<DIV><FONT face=3DArial size=3D2> =20
End =
With</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I have been suffering in this error for =
a few weeks=20
but I still have no one can answer my question. Please give =
me a=20
hand. Thanks.............</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Ivan</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2> </DIV>
<DIV><BR></DIV></FONT><FONT face=3DArial size=3D2>
<DIV><BR> </DIV>
<DIV></FONT> </DIV></BODY></HTML>
------=_NextPart_000_16BD_01C3A48D.CAF677C0-- Tag: Loop through MDI chlids Tag: 60604
Holding a form in memory
Hi All,
I have a module level form variable as I want to react to custom events that
form raises:
Dim WithEvents m_frmSearchForm As frmPartSearch_Alt
When the user clicks the search button, I carry out this code:
If m_frmSearchForm Is Nothing Then
m_frmSearchForm = New frmPartSearch_Alt
With m_frmSearchForm
m_frmSearchForm.KeepOpen = False
m_frmSearchForm.MdiParent = MyBase.ParentForm
m_frmSearchForm.CaptionText = "Component Search"
m_frmSearchForm.SearchOption =
frmPartSearch_Alt.eSearchOptions.AllowSelect
m_frmSearchForm.Show()
End With
Else
m_frmSearchForm.Show()
End If
Which basically just loads the form and shows it.
The KeepOpen property allows the form to remain open.
The searchoption property tells to allow selection.
Both of these don't affect the problem.
Now, when the user closes the form using the x button, and then clicks the
search button again to execute this code then m_frmSearchForm isn't nothing
and the m_frmSearchForm.Show() is called, however nothing appears.
Can anybody help me with this????
When the x button is used to close a form, how can I ensure that the global
variable is emptied?
I don't want to open the form using showdialog.
Thanks
Alex Stevens Tag: Loop through MDI chlids Tag: 60603
PropertyGrid editor: DateTime numericUpDown
Do you know how can I change the default editor of DateTime in a
propertyGrid in order to control date/time value ( like the ShowUpDown
using DateTimePicker control), i.e. without Calendar, that only controls
date information.
Is it possible ? Do you have some idea ?
Where can I find information about that ?
I really appreciate your answer...
Monica Tag: Loop through MDI chlids Tag: 60601
Configuration file
Hello all,
I've an assembly a.exe which has a configuration file
a.exe.config. Now this assemblly loads a class from
another assembly b.dll. Can I've a configuration file for
this assembly, that is something like b.dll.config? This
way I'll be able to separate configuration for different
files.
I tried this, but this newer class tries to find its
appsettings from a.exe.config, and gives error if it is
not found.
Thanx in advance.
Meghansh. Tag: Loop through MDI chlids Tag: 60600
Resizing an Image to fit in a PictureBox
I have a question about how to format the display of a JPEG image in a
PictureBox control. My current code is the fullowing....
Image image = Image.FromFile( strFileName );
pictureBox.SizeMode = PictureBoxSizeMode.StretchImage;
pictureBox.Image = image;
The images are loaded dynamically, and I do not have control of the size and
aspect ratio of the images. With the StretchImage mode selected, I get
some strange stretching (either vertically or horizontally, when the aspect
ratio of the image is noticably different from the aspect ratio of the
PictureBox.)
What mechanism can I use to effectively resize the image myself before
displaying it in the PictureBox? As yet I'm unable to find either a method
on the Image class or on the PictureBox class to resize the image before
display. I'd like to be able to adjust it to either fit snug vertically or
horizontally depending on respective aspect ratios.
Thanks,
and Cheers,
-- Bruce Tag: Loop through MDI chlids Tag: 60599
asynchronous programming question
Hello,
With asynchronous programming :
Why does the callback-function (running in a worker thread) may not update
the state of a control on the main-form ?
The docs say that you must use a MethodInvoker instead as in following
example :
Private Sub CallBtn_Click(ByVal sender ...) Handles CallBtn.Click
webServiceObj = New MyDatabaseWSClass()|
Dim delCB As New AsyncCallback(AddressOf MyCallBack)
aResult = webServiceObj.BeginConnectToDB(CInt(txtSeconds.Text), delCB,
Now)
End Sub
Private Sub UpdateUI()
OutputLabel.Text = "Async: Web service call complete."
End If
Private Sub MyCallBack(ByVal result As IAsyncResult)
If webServiceObj.EndConnectToDB(result) = True Then
DisplayMessage(result)
End If
' following is NOT allowed although it works fine ?????
OutputLabel.Text = "Async: Web service call complete."
Dim mi As New MethodInvoker(AddressOf Me.UpdateUI)
Me.BeginInvoke(mi)
End Sub
Any ideas ?
Thank you
Chris Tag: Loop through MDI chlids Tag: 60597
Problem in printing multiple copies
Hi,
I want to get the print data from the PrintDialog box and pass it to
the crystal reports. But using the following code I am not able to get
data.
Private dgPrintDialog As New PrintDialog()
dgPrintDialog.Document = Nothing
dgPrintDialog.AllowSelection = False
dgPrintDialog.AllowSomePages = True
dgPrintDialog.AllowPrintToFile = False
dgPrintDialog.ShowNetwork = True
dgPrintDialog.ShowDialog()
NoOfCopies= dgPrintDialog.PrinterSettings.Copies
It is showing NoOfCopies as 1 though I have given 2 in the print dialog box.
How I can retrive the data from PrintDialog box.
Or Is there any other alternative for this problem
Need Help
Nanda Tag: Loop through MDI chlids Tag: 60596
lisf of win app
How can i get the list of applications that appears on
the "New" option when i right-click in Windows.
I mean, first u right click, then select the option "New"
and u can see a list of items that u can create, for
example a winzip or a word file.
My question is how can i get that list?
Thanks. Tag: Loop through MDI chlids Tag: 60594
Clipboard
In the moment when a user right click a file and select=20
the option cut or copy, the file is sent to the clipboard
(portapapeles).The question is:
-=BFHow can i know wich of the options(cut or copy) has=20
select the user?
Thanks Tag: Loop through MDI chlids Tag: 60592
MenuItem.OwnerDraw problem
I all.
I have an application in an MDI structure. Both, MDIParent and MDIChilds
have Menus and all those menus are OwnerDraw, ie, MenuItem.OwnerDrawn =
true; The problem is when I have more than 1 child windows opened and close
them all, When i close the last one, the menus in the MDI Parent desapeared.
Can any one help me?
Sorry my English (I'm Portuguese).
Thanks Tag: Loop through MDI chlids Tag: 60585
Helpprovider-control ????
Hi,
I dragged a Helpprovider-control on the form
namespace-property is set to a help-file : "myhelp.htm"
(I have set an anchor in this file <a name="Form">)
then, setting the help-properties for a button on the form :
HelpKeyword : "Form"
HelpNavigator : KeywordIndex
Pressing help opens the help-file all right but does not jump to the anchor
????
what am I doing wrong ?
thank you
chris Tag: Loop through MDI chlids Tag: 60582
Form created or not?
Hi
I am getting my form using; frm = New frmMyForm.
How can I check if this statement has been executed? I have tried If frm Is
Nothing Then, but it does not work.
Thanks
Regards Tag: Loop through MDI chlids Tag: 60579
DataGrid/ComboBox custom column problems
Hello,
I know this has been discussed a lot already because I've been searching
around for information the last few weeks.
I'm trying to implement a DataGridComboBoxColumn class. I've found
several examples on the web. They all seem to have problems, though
that I've been unable to resolve.
The most promising example I have found is at:
http://msdn.microsoft.com/msdnmag/issues/03/08/DataGrids/default.aspx
However, it has the following problems:
1) combobox selection works fine but then when you leave the cell
whatever you just selected goes away.
2) moving up and down in the data grid w/ arrow keys causes the
following exception to be thrown:
System.ArgumentException: The ListManager's position must be equal to rowNum.
Parameter name: rowNum
I've seen some comments about adding an event handler for
SelectionChangeCommited so I added the following:
private void comboBox_SelectionChangeCommitted(object sender, EventArgs e)
{
DataRowView rowView = (DataRowView) this.comboBox.SelectedItem;
string s = (string) rowView.Row[this.comboBox.ValueMember];
this.ColumnStartedEditing(this.comboBox);
this.SetColumnValueAtRow(this.cm, this.iCurrentRow, s);
}
This fixes problem #1 above but now it has a problem where the first
time you select something from the ComboBox it always selects the first
thing in the ComboBox list even if you clicked on the 2nd, 3rd or whatever.
Also, the arrow key problems are still there.
Does anybody know if there are more complete examples out there? Is
there a third party class that anybody is selling?
Also, I'm somewhat of a novice at this so if anybody could point to
some good books that have discussions of the relevant topics for
figuring this out, I'd really appreciate it.
thanks,
Bill Tag: Loop through MDI chlids Tag: 60575
What is the Best way to release memory
I have an MDI application with only one top level menu. All the menu
options called child forms and are no merge menus on these child forms.
They are simple forms with various controls and other things.
Now if I create various objects in this form class, do I really need to
dispose them and set them to null before closing the form? When I close
the form and set the form to null, I assume that all the variables or
objects or events created within that form should become unreachable
anyway and should be available for GC to collect. But then when I check
using scitech memory profiler and take a snapshot before calling the
form and compare it with a snapshot after closing and setting the form
to null, I see hundreds of strings and other objects generated and never
released. If I do the same thing second time, I see the same thing again
but lot less new objects and so on......
Can someone explain me what is wrong here and what is the best practice.
My application is 24/7 kind of business app and it runs out of memory
after every 3-4 hours of continuous use.
Thanks in advance
Manj Misran
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! Tag: Loop through MDI chlids Tag: 60563
Shift + Space DataGrid Problem, I'm really close to fixing it. Any other ideas?
OK.
As many already know, there's a problem with the datagrid when you're
typing text in a column and you accidentally type space and shift
together.
Like if I type Sam Baker, and have the shift pressed when I type the
space inbetween my two names, when the shift is really for the B.
Here's what I got so far, but there's still a weird problem. Thought
if I posted this, it might get others thinking.
I inherit the datagrid. If the user gets a shift/space then I don't
do anything and set a counter of the number of spaces needed. Then
the next time, it should tack on spaces to the next character passed.
This works if the shift is not pressed for the B, but if it is it
prints
SamB Baker. Not sure how that initial B is getting in there. Can
anyone figure it out???
The other problem, is getting the character from keyData. Below I'm
using J, but is there a way to see if there's a character in keyData.
When I do keyData.ToString I may get "G, SHIFT". Is there a way to
just get the "G" out?
In my inherited datagrid...
Private m_intSpacesNeeded As Integer = 0
Protected Overrides Function ProcessCmdKey( _
ByRef msg As System.Windows.Forms.Message, _
ByVal keyData As System.Windows.Forms.Keys) As Boolean
Dim ShiftSpace As Keys = Keys.Shift Or Keys.Space
Dim SendString As String
If (ShiftSpace.Equals(keyData)) Then
m_intSpacesNeeded += 1
Return True
End If
If (m_intSpacesNeeded > 0) Then
m_intSpacesNeeded = 0
SendString = " J"
SendKeys.Send(SendString)
Return True
End If
Return MyBase.ProcessCmdKey(msg, keyData)
End Function Tag: Loop through MDI chlids Tag: 60561
Set focus after clicking a button
Hi everybody,
We have a surely common problem : I want to set focus on a TextBox control
after a user click on a button. If I put code like :
Private sub MyButton_Click(...) handle Mybutton.click
...Some stuff
MyTextBox.focus()
End Sub
The focus stay on the button. Same behavior in C#... A hint ? Tag: Loop through MDI chlids Tag: 60559
Attributes and Inheritance
Firstly, if anyone can recommend a truly excellent resource for Attribute
information I'd be much obliged. For some reason the MSDN reference on this
matter leaves me confused.
Secondly, here's my scenario:
I'm inheriting from another control. I'd like to change both the default
value for a property and the DefaultValue attribute for a property defined
in the base control. I don't want to explicitly re-declare the property just
to use the DefaultValue attribute. (The original property is not declared as
virtual and I'd rather not shadow the property). Is there another way I can
declare this DefaultValue attribute?
To rephrase the question: Is there a way to specify attributes for methods
signatures defined ONLY in parent classes? Can I override an method's
attribute without having to override the method itself?
Thanks,
Greg Tag: Loop through MDI chlids Tag: 60556
Future of PropertyGrid
Hi,
I'd like to know if there's any plan to improve the PropertyGrid in Whidbey
and/or Longhorn.
- UITypeEditor could provide more customization. At this time you can only
provide a dropdown or dialog. That should be nice to replace the TextBox by
for example MaskedEditBox, NumericUpDown...
- Being able to drag&drop over griditems.
- ...
Sebastien Tag: Loop through MDI chlids Tag: 60554