how to have two controls resize equally?
Say I have two panels (or any control for that matter) on a form. When the form is resized, I want the panels to resize equally, so that they always each occupy 50% of the available area of the form.
I've messed around with docking and anchoring but can't seem to find a combination that works.
Andrew Tag: sorting by 2/3 columns in datagrid Tag: 74818
VB.NET Error with DLL
We are using a DLL which opens a small window fpr processing.
This DLL works fine in VB 6.0
When wqe use this DLL in VB.NEt, it throws the error as follows:
"An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in EXE"
"Additional information: Non-modal forms cannot be displayed in this host application from an ActiveX DLL, ActiveX Control, or Property Page." Tag: sorting by 2/3 columns in datagrid Tag: 74814
How to cancel Ctr+Tab on TabControl?
I'm building an Wizard style Win Form application. And am using TabControl
to design and run the subsequent pages (actually 6 pages to finish the
Wizard).
Because it's an Wizard application, it shouldn't allow user to go next page
while required text boxes are blank. To accomplish this, I timidly examine
such required fields and then control the NextButton.Enabled property in
each pages. I know it may not be a smart way but is the only way known by me
now. My wizard works fine excepting one point.
TabControl itself has built-in Short Cut Key feature which changes the
current TabPage by CTR+Tab key. I want to cancel this short cut event but
don't know how.
How can I cancel such key event?
Please help me.
TK Tag: sorting by 2/3 columns in datagrid Tag: 74809
HELP WANTED HELP WANTED HELP WANTED
Do you like code?
Do you love hack out code?
Where is your future going?
Do you have a plan for tomorrow?
Join an international organization that cares for code too, but more an
international organization that cares for you too.
Life is a risk, if you don't take chances you shall never win.
ENTER IOYX
www.ioyx.com Tag: sorting by 2/3 columns in datagrid Tag: 74807
Using MSDE with OLEDB
Hi,
I am using OLEDB Connection object to connect to MSDE database through a
DSN. I would like the know the provider to use for MSDE which has to be
specified in the connection string.
And also can I connect my MSDE database from a remote machine.
Thanks in advance,
Sateesh. Tag: sorting by 2/3 columns in datagrid Tag: 74804
obtaining icon from application exe/dll
what I am doing is writing a simple app with a tree view. I am adding images
to an imagelist and using this to populate the seperate nodes of the tree.
However one thing I am not entirely sure how to do is obtain images (default
icons or select from a library) from dlls (eg. the moreicons.dll) or an exe
file (eg. mshearts.exe).
If anyone knows of a quick way Id appreciate it.
Cheers. Tag: sorting by 2/3 columns in datagrid Tag: 74799
Problem with f.ShowDialog()
Hi all
When a child form is shown with ShowDialog, User can not click to ParentForm Until Child form is closed.
It's normal. The problem occurs when My Child form has the following code:
Private Sub Button1_Click(...) Handles Button1.Click
If Me.Owner.Opacity = 1 Then
Me.Owner.Opacity = 0
Else
Me.Owner.Opacity = 1
End If
End Sub
When User Click Button1 twice, it hide/unhide Parent Form.
After this, user can focus on Parent form and ca work with it.
Does anybody know how to prevent this ?
I really get stuck with this.
Thank you in advance.
Tai Le Tag: sorting by 2/3 columns in datagrid Tag: 74798
Problem with f.ShowDialog()
Hi all
When a child form is shown with ShowDialog, User can not click to ParentForm Until Child form is closed.
It's normal. The problem occurs when My Child form has the following code:
Private Sub Button1_Click(...) Handles Button1.Click
If Me.Owner.Opacity = 1 Then
Me.Owner.Opacity = 0
Else
Me.Owner.Opacity = 1
End If
End Sub
When User Click Button1 twice, it hide/unhide Parent Form.
After this, user can focus on Parent form and ca work with it.
Does anybody know how to prevent this ?
I really get stuck with this.
Thank you in advance.
Tai Le Tag: sorting by 2/3 columns in datagrid Tag: 74797
TreeView CheckBox
I want to implement checkboxes in all child in a treeview EXCEPT all top
most root nodes.
TreeView control's CheckBoxes property implement this functionality to all
nodes or to none.
So is there some way to implement CheckBox to some specific node?
Thanks Tag: sorting by 2/3 columns in datagrid Tag: 74795
using DesignSurface in the 2.0 framework.
Is there any documentation on how to use the new DesignSurface that is available in the 2.0 beta? I'm having problems figuring out how it works. I can add controls to it, and I can retrieve an ISelectionService for the controls, but it doesn't fire any events if I hook up to the SelectionChanged event and click on my added controls. Tag: sorting by 2/3 columns in datagrid Tag: 74794
Wrapping and grouping headers in DataGrid
1. Can it be possible to wrap a text in DataGrid header
(win forms). If not, any work around solution?
ex: _______________________
|Main | Main header2|
| header1 | |
|_________|_____________|
| 22 | 44 |
| 22 | 44 |
|_________|_____________|
2. Can it be possible to Group columns in DataGrid header
(win forms). If not, any work around solution?
ex: ___________________________
|Main header1 | Main header2|
|_____________|_____________|
|Sub1 | Sub2 | Sub header2 |
|_____|_______|_____________|
| 22 | 33 | 44 |
| 22 | 33 | 44 |
|___________________________|
3. Can it be possible to Give space between tabs in tab
control (win forms). If not, any work around solution? Tag: sorting by 2/3 columns in datagrid Tag: 74793
MSVDM messing up dynamic TabControl?
I have a TabControl (named Tabs) that shows search results. When the
result set changes, I do Tabs.Controls.Remove() to remove all but the
first TabPage, then I (maybe) create new TabPage-s. Works fine -
except when I switch desktops with MSVDM and then come back: Then,
next time I delete / recreate, I only get the tab buttons for the new
pages. Clicking the button hides the first tab, but then the new tab
never comes up. (I can bring up the first (non-dynamic) tab, but not
any of the others.)
I've tried various things, like setting EVERY property that the form
designer sets and/or explicitly disposing of the tab pages (and their
controls) instead of just Remove()ing them. Haven't found the ticket,
yet, and Google turns up nothing.
Are there known issues with the TabControl (or z-order in general) and
MSVDM? Work-arounds?
--
programmer, author http://www.midnightbeach.com
and father http://www.midnightbeach.com/hs Tag: sorting by 2/3 columns in datagrid Tag: 74791
basic main form --> child form question
Hi,
I have an application with a main form
(public __gc class MDIParent:public
FormsAndHelpers::SelfPositioningForm).
I have a menu item on that form that creates another child form
(called CarrierRegionSwitchExplorer).
I remember a pointer to the child form I create, in the Main form,
like this:
System::Void MDIParent::ShowCarrierRegionSwitchExplorer()
{
if (NULL == m_pCarrierRegionSwitchExplorer)
{
m_pCarrierRegionSwitchExplorer=new CarrierRegionSwitchExplorer;
m_pCarrierRegionSwitchExplorer->ShowDialog();
}
}
m_pCarrierRegionSwitchExplorer is a static member of MDIParent,
declared like this:
static CarrierRegionSwitchExplorer *m_pCarrierRegionSwitchExplorer;
When I close the CarrierRegionSwitchExplorer dialog, do I have to get
rid of the child form object I created on the heap? If yes, then where
I create an event handler to do it?
I can't delete m_pCarrierRegionSwitchExplorer on an event handler for
the "Closed" event for the CarrierRegionSwitchExplorer form, it
sounds very wrong to me.
Am I going about stuff the wrong way? Am I completed missing the
"automatic" way .NET can do this for me?
Any pointers are appreciated.
Thanks,
Vishnu Tag: sorting by 2/3 columns in datagrid Tag: 74789
MVP please help - List box horizontal scroll bar
I have a list box that uses the horizontal scroll bar. I would like to be
able to "scroll" my headings at the top of the list box when the list box is
scrolled.
Spy reveals that this is not a real scroll bar (hwnd always null), so I
can't see how to find out when, and how much, the list box is scrolled.
If I create my own scroll bar, I have trouble keeping the display smooth.
The best I can seem to do is to intercept and ignore the WM_ERASEBGND
message, but the effect is still not nearly as smooth as using the
ListBox.HorizontalScrollBar property. In addition, when I create a
HScrollBar object and try to anchor it to the bottom of the list box, it
moves when I vertically scroll the list box. I am reduced to repositioning
it every time I receive a vertical scroll message.
Obviously I would prefer to use HorizontalScrollBar, but I would settle for
a decent looking scroll effect using HScrollBar.
Can anyone help?
Thanks in advance,
Valerie Hough Tag: sorting by 2/3 columns in datagrid Tag: 74786
Can not get dialog's ParentForm??
Hello, everyone:
I have a dialog form need to initial some data from its ParentForm, but I can not get its ParentForm. what I have done is:
when I click one button1 on Form1, it does:
{
dialog d=new dialog();
d.ShowDialog();
}
in the Dialog form, after initialize the components, even I check its ParentForm
if(this.ParentForm==null)
{
MessageBox.Show("no parent form");
}
I always get "no parent form".
Could anyone tell me what's wrong I have done?
Sincerely,
Haiwen Tag: sorting by 2/3 columns in datagrid Tag: 74780
Forms within one form
I am trying to take a form and based on a selection from a list, it will
open a form and bind it to the main form so it looks like one form.
In VB6 you could do this using a few different 3rd Party controls, one was
the Sheridan/Infragistics splitter control. You could bind a form to a
specific pane of the splitter control.
Does anyone know of a way to do this using .NET.
Loren Tag: sorting by 2/3 columns in datagrid Tag: 74778
DataGrid Question on copying to clipboard
I have a program that requires the function to copy selected rows from the
datagrid to the clipboard. That is easy since it does it for you but what I
need to do is also copy the datagrid column headers with the data from the
datagrid. Is there a way to acheive this functionality?? I dont have a
problem with overriding a datagrid since I rolled my own inherited datagrid.
But I cant seem to locate the method to do this
Gary Tag: sorting by 2/3 columns in datagrid Tag: 74775
label right alignment bug - LabelRightAlignBug.zip [0/1]
Hello,
I put several labels on a form, set all their left positions in the same
spot, set textalignment to middleright, and set their text values ending
with a :
I noticed that the colons did not line up on the right and found that
the number of characters in the text property of the label is the
determining factor.
I have attached a sample.
Thanks
Randy Tag: sorting by 2/3 columns in datagrid Tag: 74771
ContextMenu - MVP please help
Is there any reason why a ContextMenu object cannot be created (and
populated with menu items) in the constructor of the control for which it
will be used?
If not, then why don't my mnemonics show up if I do it this way? (they work
but don't show as umderlined)
If I create the ContextMenu in my form and use the ShowMenu() function from
my form, the mnemonics will appear properly.
If I do have to do it from my form, then I also have to process MouseUp() in
my control, then notify the parent form so that it can display the
ContextMenu (obviously not what I want to do, nor would it seem that this
would be Microsoft's intended behavior)
Please help!
Thanks in advance,
Valerie Hough Tag: sorting by 2/3 columns in datagrid Tag: 74768
Validating the form
Hi,
When Validating event is raising on forms?
I know that Validating event is raising when focus is leaving the
control, but it seems that it is not the same in the case of forms.
For example, I can close the form or click on the other form in desktop
but nothing is happening.
Thanx, Cheya Tag: sorting by 2/3 columns in datagrid Tag: 74764
How to see if another application/Window is minimized?
Hi,
How can you see with a VB.NET-application if the Window of another
Application (for exemple an opened Word-Document) is Mimized?
Is there also a way to see if it is Maximized?
Thanks a lot,
Pieter Tag: sorting by 2/3 columns in datagrid Tag: 74755
How to embed Excel spreadsheet in Windows forms application
Hi
I would like to know how to go about embedding an Excel spreadsheet into a
c# Windows forms application. Any tips or pointers to some articles to get
me started would be much appreciated.
John Tag: sorting by 2/3 columns in datagrid Tag: 74754
about Printing forms
Hi;
i want to print some controls on a form. I capture controls then draw them
on print page. This is how i do it:
http://www.dotnet247.com/247reference/msgs/5/26236.aspx
now the problem is when i open a printpreview form, "generating previews"
dialog box is shown first and if it is in front of a control to be printed,
it is captured too.
how can i avoid it?
secondly, sometimes even if print page seems ok on the preview, images of
the controls are distorted when i print them.
what would be the reason?
and another question, how can i print multiple pages?
eg: i wanna put some controls on second page. There is HasMorePages
property. i do not figured how to use it
last question:
what is the usual way when i want to print texts of many textboxes to
prepare a report?
thank you very much. Tag: sorting by 2/3 columns in datagrid Tag: 74745
Default Form Button Focus
Hello,
This is a very trivial problem, however it is vexing me. Any help would be
gratefully received.
I have a form, with a textfield and a few buttons, the functionality I want
to give the user is once they have finished
typing their query in the text box, when the press return enter a default
button (say submit) is pressed.
However I can't get the button into focus so what they have to do currently
is physically click on the button.
Is there a way I can set focus on the button to automatically to accept the
user pressing the enter key?
Thanks Tag: sorting by 2/3 columns in datagrid Tag: 74742
remote browsing
Hi!
How can i browse (ie with an OpenFileDialog) a remote system?
Has someone done it?
Thanks! Tag: sorting by 2/3 columns in datagrid Tag: 74739
Windows .exe exit code
Hi,
I have a .Net .exe that a third party is going to use. I
have been asked to provide an exit code from the .net .exe
that specifes success/failure. The .net exe is going to
be called from a VB6 .exe. Does anyone have any idea how
to do this?
liam Tag: sorting by 2/3 columns in datagrid Tag: 74736
DockPanel Suite and DockManager Control
Hi,
I want to use the "DockPanel Suite" or "DockManager Control" from Weifen Luo
(http://www.freewebs.com/weifenluo/DockManager.htm).
Did anybody here used them once? And did they work fine? And what about the
DockPanel Suite? It is indicated as the new version of the dockManager, but
it's also a Beta: Is it reliable? Would you recommend the DockPanel suite or
the DockManager control?
Your input will be really helpfull to me!
Thanks a lot in advance,
Pieter Tag: sorting by 2/3 columns in datagrid Tag: 74734
2 different kinds of Maximize?
When I have a standard windows forms Form, and I maximize it, it behaves
just like you'd expect.
It fills the screen, except for my taskbar down at the bottom of the screen
(which has standard settings. The taskbar is locked, marked as keep on top
of other windows, and set to not auto-hide.)
When I have a windows form without a title bar though, and I maximize it, it
fills the ENTIRE screen and the taskbar is not visible.
I want to have a windows form without a title bar that maximizes but leaves
the taskbar visible. Is this possible? How?
Thanks,
Steve Tag: sorting by 2/3 columns in datagrid Tag: 74733
Detect when datagrid is modified
Hi .NET gurus,
How can I detect when user has just edited any cell in my datagrid so that I can set a dirty flag in my application ?
Any help is very much appreciated.
Thanks.
Kinh Luan Tag: sorting by 2/3 columns in datagrid Tag: 74731
Windows Forms have layout problem with large fonts
This problem started from the very beginning - when .NET Framework 1.0
is released.
I have forms designed and tested on a Windows 2000 Pro system with large
fonts (125%). They all look good until I run the exactly the same
assembly on another system with normal fonts. The layout is messed up,
especially those controls with the Anchor property set (other than the
default values).
I had expected Framework 2.0 would have solved this problem. But it had
not - at least with the beta 1 release it had not do it.
I am not sure if I am making my problem clear. Hope one of Microsoft
guys can hear me and understand my problem. Tag: sorting by 2/3 columns in datagrid Tag: 74730
ListBox, SelectedIndex, DataBind Issue
This seems like it would be a common problem, so hopefully I am just doing
something wrong. The attached demo code will help explain the problem.
I simply want to have a text box in which I can type a value that will
result in a ListBox being searched, and have the found item be selected in
the ListBox.
In the demo, I populate one listbox using DataBinding with a DataTable. In
the other, I populate manually via the Items collection. When data binding
is used, the SelectedIndex is manipulated in string ways. To see what I
mean, do the following:
1. start the app (click ok on the messagebox).
2. enter "2001" in the databinding related field.
3. now hit the backspace key to delete the "1" in "2001". notice the
SelectedIndexChanged event is fired twice.
This does not happen in the non-databound scenario. If you set some
breakpoints, and watch the call stack (with non-user code enabled), you'll
see what is happening (but I don't know why). I've also used Reflector to
review the ListBox code.
I know the CurrencyManager comes into place when using DataBinding, but I'm
still not sure what is happening.
Any insight would be greatly appreciated.
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace WindowsApplication4
{
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.ListBox listBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.ListBox listBox2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.ComponentModel.Container components = null;
public Form1()
{
InitializeComponent();
LoadListBox1();
LoadListBox2();
}
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
private void InitializeComponent()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.listBox1 = new System.Windows.Forms.ListBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.listBox2 = new System.Windows.Forms.ListBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(24, 40);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(96, 20);
this.textBox1.TabIndex = 0;
this.textBox1.Text = "";
this.textBox1.TextChanged += new
System.EventHandler(this.textBox1_TextChanged);
//
// listBox1
//
this.listBox1.Location = new System.Drawing.Point(24, 64);
this.listBox1.Name = "listBox1";
this.listBox1.Size = new System.Drawing.Size(96, 173);
this.listBox1.TabIndex = 1;
this.listBox1.SelectedIndexChanged += new
System.EventHandler(this.listBox1_SelectedIndexChanged);
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(168, 40);
this.textBox2.Name = "textBox2";
this.textBox2.TabIndex = 4;
this.textBox2.Text = "";
this.textBox2.TextChanged += new
System.EventHandler(this.textBox2_TextChanged);
//
// listBox2
//
this.listBox2.Location = new System.Drawing.Point(168, 64);
this.listBox2.Name = "listBox2";
this.listBox2.Size = new System.Drawing.Size(104, 173);
this.listBox2.TabIndex = 5;
this.listBox2.SelectedIndexChanged += new
System.EventHandler(this.listBox2_SelectedIndexChanged);
//
// label1
//
this.label1.Location = new System.Drawing.Point(24, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(96, 16);
this.label1.TabIndex = 6;
this.label1.Text = "DataBind";
//
// label2
//
this.label2.Location = new System.Drawing.Point(168, 8);
this.label2.Name = "label2";
this.label2.TabIndex = 7;
this.label2.Text = "Items Add";
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
this.ClientSize = new System.Drawing.Size(292, 245);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.listBox2);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.listBox1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
private void LoadListBox1()
{
DataTable dt = new DataTable();
dt.Columns.Add("year");
for(int i=2000; i<=2004; i++)
{
dt.Rows.Add(new object[] {i});
}
listBox1.DataSource = dt.DefaultView;
listBox1.DisplayMember = "year";
}
private void textBox1_TextChanged(object sender, System.EventArgs e)
{
FindIt(listBox1, textBox1.Text);
}
private void LoadListBox2()
{
for(int i=2000; i<=2004; i++)
{
listBox2.Items.Add(i.ToString());
}
}
private void textBox2_TextChanged(object sender, System.EventArgs e)
{
FindIt(listBox2, textBox2.Text);
}
private void FindIt(ListBox b, string s)
{
int index = b.FindStringExact(s);
if (index != -1)
b.SetSelected(index, true);
else
b.ClearSelected();
}
private void listBox1_SelectedIndexChanged(object sender, System.EventArgs
e)
{
MessageBox.Show("ListBox1 SelectedIndex Changed");
}
private void listBox2_SelectedIndexChanged(object sender, System.EventArgs
e)
{
MessageBox.Show("ListBox2 SelectedIndex Changed");
}
}
} Tag: sorting by 2/3 columns in datagrid Tag: 74726
How to add a custom control to a standalone .exe file (no extra .dll)
Hi,
I have created a custom control inherited from the combobox, and would like
to use it on my windows application. It is written in C#.
The problem is that I want to have my app on a single .exe file without
having to attach the control's additional dll file (it is a simple tool that
will be deployed as a standalone .exe application with no installation
pack).
I tried to add my customcontrol.cs code file to the project, then
programmatically add the custom control instance to my form, but it will not
show it in the GUI (even though I can see it is there in my properties
window on the VS).
Is it possible to add the control to my form without having to have an
additional dll?
Please advise.
Best Regards,
Uriel. Tag: sorting by 2/3 columns in datagrid Tag: 74725
ContextMenu question
Is there any reason that a ContextMenu object should not be created in the
constructor of the control for which it will be used?
I have a list box on my form, and the context menu is specific to the list
box. However, if I create the menu from within the list box, the mnemonic
keys do not work,
although everything else does.
Please help! Tag: sorting by 2/3 columns in datagrid Tag: 74724
WinForm control will not display with TreeView control
I am developing a WinForm control that is embedded in an HTML page as a smart client. If I build the control without the TreeView control - it embeds and displays just fine. If I build the control with the TreeView control - it will not embed/display. Any help would be appreciated. Thanks! Tag: sorting by 2/3 columns in datagrid Tag: 74723
Japanese Win98SE + winform = Red X
I have a WinForm that works wonderfully in Western versions of Windows, but
is having trouble with Win98SE Japanese, and I'm loading other Far East
character versions to see if it is consistent.
Controls appear with a red X and an exception is thrown with the English
text below. Any suggestions?
System.OverflowException: Overflow error.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush,
RectangleF layoutRectangle, StringFormat format)
at System.Windows.Forms.ControlPaint.DrawStringDisabled(Graphics
graphics, String s, Font font, Color color, RectangleF layoutRectangle,
StringFormat format)
at System.Windows.Forms.GroupBox.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.GroupBox.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
====================================================
Walter Williams
Software Engineer
Sawtooth Software, Inc.
http://www.sawtoothsoftware.com
----------------------------------------------------
"Do, or do not. There is no try." Tag: sorting by 2/3 columns in datagrid Tag: 74719
winforms data exchange style question
I'm making the jump from MFC to C# and I have a style question.
I have a form which modifies an object. At some point a change is made to
the object which requires refreshing all the fields of the form.
In MFC you would put this code in DoDataExchange(). You invoke this code by
calling UpdateData(false).
What is the equivalent convention in winforms?
Regards,
Bob Rundle Tag: sorting by 2/3 columns in datagrid Tag: 74718
OSD Example
Hello,
I'd like to use an onscreen display with my application, but I have no idea
how to implement this...
Do you know any sources / tips how I could this can be done ? Tag: sorting by 2/3 columns in datagrid Tag: 74716
Drag & Drop like Explorer in ListView
How can I make Drag&Drop in a ListView like the Explorer?
I want to be able to drag files from my ListView into any other explorer
window.
Is this even possible in .NET without heavy use of p/invoke?
--
cody
[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk Tag: sorting by 2/3 columns in datagrid Tag: 74715
Winforms - NewBee Question
In the past, you could load an ActiveX control containing UI in IE. Can the
same be done with WinForms? That is, can WinForms be hosted by IE thus
keeping the richer UI then WebForms provides?
Thanks
Al Tag: sorting by 2/3 columns in datagrid Tag: 74712
Overflow or underflow in the arithmetic operation
hi all !!!
a winforms .NET application that runs fine in many boxes is returning a very
strange error when run on a Windows 98 box (running 1.1 framework):
Overflow or underflow in the arithmetic operation
although the problem is reported at
http://support.microsoft.com/default.aspx?scid=KB;EN-US;q326219 the proposed
solution didn't work for me.
anyone out there had the same problem ? any help will be appreciated.
thanks in advance,
ant Tag: sorting by 2/3 columns in datagrid Tag: 74711
Hey, MS guys, advice is need for HelpProvider
I want to display unicode characters in a HelpProvider's HelpString.
I'm eagerly anticipating someone's oppinion about if this is possible,
and if it is, how can i do it, because the cyrrilic characters that i
enter as a value for the HelpString property get messed up when they
are displayed. However, there's no such problem with tooltips, even
though they seem to be using a similar mechanism.
I had the idea of deriving from HelpProvider and overriding some of
the functionality but as long as HelpProvider is from the
Windows.Forms namespace it's source is not included in the SSCLI
implementation of the framework, so i cannot taste it's inner
workings.
And guys, please skip answers such as "Don't multipost". Yes, i have
posted about this before but as i'm posting again as long as no one
paid attention to my previous post i go shooting the same question
again becuase someone definetly has to know if there is a reasonable
workaround for my problem or i have to manually implement some popping
up rectangles with helpstrings.
Thanks for the attention Tag: sorting by 2/3 columns in datagrid Tag: 74707
TypeDescriptor GetProperties Attributes[] filter
In the help, Msdn states
<<<
The attributes parameter array is used to filter the array. The attributes
parameter can have a mix of Type and Attribute objects. Filtering is defined
by the following rules:
a.. A Type object is treated as a wildcard; it matches any property that
has the Type in its set of attributes.
>>>
Anyone know how do a I pass a mix of Type and Attribute objects in an
'Attribute[]' ?
Thanks in advance
Regards
Tom Tag: sorting by 2/3 columns in datagrid Tag: 74706
Making a form a child of a control
In Delphi it's possible to make a form appear inside a panel control as a
child subform by setting the form's Parent property to the instance of the
control. When I try to do the same in .NET I get the error "Cannot make a
top-level control a child of another control". It would really be a huge
disappointment to find out that Windows Forms doesn't allow nesting of forms
inside panel controls, so I hope I'm just not doing it right.
Any suggestions? Tag: sorting by 2/3 columns in datagrid Tag: 74703
reading a xml file
hi iam getting 1kb xml file like this
<Transfer><rec>1</rec><Message>sds</Message><From>testingnet</From></Transfer>
i want to read only between<from> in the xml
the result should result me only testingnet
i have searched a lot of stuff, i could not find out the easy way to read in windows, vb.net
any body help me, to find the result in between the tags. Tag: sorting by 2/3 columns in datagrid Tag: 74688
Menu's on MDI Child Forms
Is it possible to create Main Menus on MDI Child forms as opposed having them displayed via the MDI parent form. And if it is possible how is this achieved? Tag: sorting by 2/3 columns in datagrid Tag: 74685
Proces-name in Task Manager
Hi,
I want to change the name of my application in the list of Processes in the
Taks Manager. But whatever I change, it stays the same. I changed the
AssemblyTitle, the Solution-name, the Project-name, the Root Namespace, the
Project File, but none of these changes had any effect...
Does anybody where I can find it?
Thanks a lot in advance!
Pieter Tag: sorting by 2/3 columns in datagrid Tag: 74680
About WinForm/WebForm control naming conventions
Hi,
Is there any naming conventions MS prefered about WinForm/WebForm controls?
For example,
1. lblCustName, txtCustName, btnOK
2. CustNameLabel, CustNameTextBox, OKButton
3. LabelCustName, TextBoxCustName, ButtonOK
4. CustName, OK
Which one is prefered? Tag: sorting by 2/3 columns in datagrid Tag: 74679
About WinForm/WebForm control naming conventions
Hi,
Is there any naming conventions MS prefered about WinForm/WebForm controls?
For example,
1. lblCustName, txtCustName, btnOK
2. CustNameLabel, CustNameTextBox, OKButton
3. LabelCustName, TextBoxCustName, ButtonOK
4. CustName, OK
Which one is prefered? Tag: sorting by 2/3 columns in datagrid Tag: 74678
sort to top
Depending on a column value , i want to display the rows .
That is if the col1 has val1 i want it in the beginning rows of the
grid(sorting to top)
Is there a way to do?
thanks. Tag: sorting by 2/3 columns in datagrid Tag: 74673
creating .eps image with C#
Hi everyone! Can anyone show me or point me in the right direction on how to
create an EPS image file in C#?
I've tried creating bitmaps and jpeg files but I need to create an image
file in an EPS file format for printing graphs.
I'm converting a C++ chart generating program to .NET and in the C++
program, I used postscript printer driver in order
to print the graph to file.
Thanks
phong Tag: sorting by 2/3 columns in datagrid Tag: 74669
sorting is available by default n datagrid,
but i wanted to sort by 2/3 columns together, how to do ?