Having Property Grid Display Properties from the Most Derived Class
I would like to use the PropertyGrid control to allow users to edit the
properties of a control, however, I would like only the properties of the
most derived several classes to be visible.
How is this possible?
--
Howard Swope
Software Engineer
Spitz, Inc [http://www.spitzinc.com] Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51928
Possible ToolBar bug
The following Form-derived class illustrates a problem I
am having when a ToolBar is instanced at the bottom of a
Form with a simple Panel at the top. When this form is
minimized and then restored, the layout logic leaves the
Panel not fully occupying the available client area. The
amount of dead space at below the panel depends on the
number of buttons instanced on the ToolBar. If no buttons
are used, the layout is correct.
Any ideas?
==============Form1.cs===================================
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
namespace WindowsApplication2
{
/// <summary>
/// Summary description for Form1.
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.ToolBar
toolBar1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.ToolBarButton
toolBarButton1;
private System.Windows.Forms.ToolBarButton
toolBarButton2;
private System.Windows.Forms.ToolBarButton
toolBarButton3;
private System.Windows.Forms.ToolBarButton
toolBarButton4;
private System.Windows.Forms.ToolBarButton
toolBarButton5;
private System.Windows.Forms.ToolBarButton
toolBarButton6;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container
components = null;
public Form1()
{
//
// Required for Windows Form
Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code
after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool
disposing )
{
if( disposing )
{
if (components != null)
{
components.Dispose
();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated
code
/// <summary>
/// Required method for Designer support -
do not modify
/// the contents of this method with the
code editor.
/// </summary>
private void InitializeComponent()
{
this.toolBar1 = new
System.Windows.Forms.ToolBar();
this.panel1 = new
System.Windows.Forms.Panel();
this.toolBarButton1 = new
System.Windows.Forms.ToolBarButton();
this.toolBarButton2 = new
System.Windows.Forms.ToolBarButton();
this.toolBarButton3 = new
System.Windows.Forms.ToolBarButton();
this.toolBarButton4 = new
System.Windows.Forms.ToolBarButton();
this.toolBarButton5 = new
System.Windows.Forms.ToolBarButton();
this.toolBarButton6 = new
System.Windows.Forms.ToolBarButton();
this.SuspendLayout();
//
// toolBar1
//
this.toolBar1.Buttons.AddRange(new
System.Windows.Forms.ToolBarButton[] {
this.toolBarButton1,
this.toolBarButton2,
this.toolBarButton3,
this.toolBarButton4,
this.toolBarButton5,
this.toolBarButton6});
this.toolBar1.Dock =
System.Windows.Forms.DockStyle.Bottom;
this.toolBar1.DropDownArrows =
true;
this.toolBar1.Location = new
System.Drawing.Point(0, 407);
this.toolBar1.Name = "toolBar1";
this.toolBar1.ShowToolTips = true;
this.toolBar1.Size = new
System.Drawing.Size(696, 28);
this.toolBar1.TabIndex = 0;
//
// panel1
//
this.panel1.BackColor =
System.Drawing.SystemColors.Info;
this.panel1.Dock =
System.Windows.Forms.DockStyle.Fill;
this.panel1.Location = new
System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new
System.Drawing.Size(696, 407);
this.panel1.TabIndex = 1;
//
// Form1
//
this.AutoScaleBaseSize = new
System.Drawing.Size(5, 13);
this.ClientSize = new
System.Drawing.Size(696, 435);
this.Controls.Add(this.panel1);
this.Controls.Add(this.toolBar1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// The main entry point for the
application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
}
} Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51927
Win98: DragDrop registration fails everytime
I'm ripping a thread that I created a few days ago, since I used the
exact same subject line as a previous one.
In addition, I can also say that since I posted this thread, I've come
to the conclusion that this application is hitting some sort of wall
with regards to Window handles. I'm leaning towards this being one of
the primary issues because when a user selects a "tool" from a Form
(it launches the core application, which is quite large), you can
immediately kill the Form, go back to the tool selection Form...select
it again, and it will _always_ fail to load the 2nd time. The
application just dies.
Furthermore, I've got try/catch blocks all over the place, sending the
Exceptions to a logfile, and nothing ever gets logged once it gets in
this state. You're forced to do the ole' Win98 CTRL-ALT-DEL at that
point.
So, the question is this: If I'm correct (or partially) in that Window
handles might be the culprit, how do I resolve it? I spent an entire
day forcing dispose() on everything I could possibly think of, as well
as using things like the Performance Counters to identify problematic
(meaning, resource hungry) classes, and I still get the same result...
Can anybody (Microsoft?) help or even give me some kind of direction?
Here's the original post...
-----------------------------------------------------------
I have a C# Application that is posing some interesting issues when
run within Win98. Let me preface this by saying that everything works
like a charm under Win2000.
Anyhow, the current issue is that under "certain" circumstances
(there's no logic as to how/why this happens), you will fire up this
application under Win98 and get a "DragDrop Error: registration
failed" MessageBox from JIT.
The source code line in question is, of course, a simple
"this.AllowDrop = true;" property. If I were to remove it, the problem
would go away. Of course, I need that call in order for the
application to function correctly.
And before anybody asks the obvious, I _do_ have the following line in
my main Form:
[STAThread]
static void Main(string[] args)
I can't really make heads or tails out of this issue, and it
definitely presents itself only under Win98.
This particular Win98 machine is up to scratch, in terms of
patches/updates/etc. The OS has IE6.0 installed, as well as .NET
runtime v1.1. The Application is compiled using .NET Studio 2003.
Can anybody shed any light on this? Any workarounds? Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51926
User control shows error
hi,
I have a Windows Form (in VB.NET) with a panel that
includes a User Control that I have made.
It used to work fine, but now, I have the following
problem:
The programs compiles and works fine.
But when I look at the form in DESIGN VIEW,
it does not display the UserControl, but the following
error message: Object Reference not set to an instance of
an object.
Any idea why I have this???
thanks,
Ross Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51919
Inherited Forms Lose Tab Order
1.) Create a form with a tabcontrol.
2.) Change the modifier of the tab control to "protected"
3.) Add 1 tab to the tab control.
4.) Create a second form that inherits from the first.
5.) On the new form, add a 2nd tab to the inherited tab
control.
6.) Swap the order of the tabs so the new tab occurs first.
7.) Save and close the forms. Re-open the 2nd one.
Notice the tab order was not preserved.
Bug? Workaround? Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51918
CustomEditor on collection for a component
I'm trying to use a custom editor for a property in a
component. The custom editor shows a dialog. It appears
the custom editor is not calling the SET property when its
done. I've tested this with other samples and it does
there. Could this have anything to do with the fact that
the type of the property is an ArrayList?
Bill Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51917
Setting Application directory as path for database.
I want to set my application's database path to the
directory that the application resides in so that any
location I install this application will look to the
installation directory, instead of where I have the file
located on my system. (ie C:\Documents and
Folders\Users\Current User...)
I am setting this at design time using the properties
window for the OleDb connection. Can I do this? If not how
do I do it? Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51906
Validation + Malicious input
Hello All,
I am currently developing a windows form which transacts
data with a database, using web services.
These transactions are the heart of the application, as
98% of the tasks allowed on the UI bind to the web service.
Due to the implicit need of assuring the user does not
enter wrong data (SQL Data Types) or INJECTS malicious
code, where can I find good information on windows forms
data validation->(priority 1) and avoiding malicious code
avoidance->(priority 2)?
- The big question is: is there something like a
asp:InputValidator on WindowsForms, or do I have to deal
with it down to the nitty gritty?
Thanks for all the replies, any resources are welcome
Francisco Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51904
How to handle System menu messages?
I have a MDI Parent in which I display a dialog box. When user minimize the
dialog I want the whole MDI window to be minimized.
Your help greatly apreciated.
Thanks,
Hemanshu Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51889
DataGrid font
How do I change the font for a single cell of a data grid?
Want to make the current font BOLD when the value in the
underlying dataset exceeds a threshold value....datagrid
is readonly, non-sortable columns, so the one-to-one
relationship is well-defined.
At minimum, would want to make all cells of a given column
in bold.
Thanks. Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51885
Using a JAVA / JSCRIPT APPLET
I have a JAVA APPLET (below) that I'd like to us in a WindowsForm, But
I'm not quite sure where to begin with this one. Any help to get me
in the right direction would be appreciated. Thanks in advance.
<APPLET name="cvcs" CODEBASE="http://192.168.1.199:80/"
CODE="xplug.class" WIDTH=320 HEIGHT=240>
<param name="RemotePort" value=8481>
<param name="Timeout" value=5000>
<param name="RotateAngle" value=0>
<param name="PreviewFrameRate" value=2>
<param name="DeviceSerialNo" value="RnJvbnQ6c3RlYzAx">
</APPLET> Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51882
HelpProvider bug? Close the .CHM window and application closes too!
Has anybody else seen this?
I have a Windows Forms application that simply uses the HelpProvider control
to open a .CHM. I use the helpprovider.show method and it works fine.
However, when the Help window (*.chm) opens, if I quit (i.e. close) the Help
window, then it closes as expected, and so does my application! ??
This isn't supposed to happen is it? how do I overcome this so that when I
close the Help window, my application stays open and running?
I am using VB.NET, with Visual Studio 2003 with all the latest .NET
Framework revisions etc.
Thank you. Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51879
Root node in Treeview without sign (+/-)
Hi
Does anyone know how to show the root node in a treeview
control without the signs in front?
Thorgeir Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51877
Windows forms datagrid - Totals row
Any ideas for a best approach on how best to achieve this? (the footer is
what i'd use in the ASP.NET Datagrid... (which is many ways is much better
than the windows forms datagrid, which is strange if you think about it ! ))
Thanks Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51875
Click event prevent DoubleClick from firing
Hi,
When using a form ,Click event is preventing DoubleClick from firing.
Anyone familiar with this behaviour?
how can i capture both event seperatly?
thanks
erez Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51873
Close Form
Hi,
I want to stop my Forms-Application from the constructor=20
of the form-class.
I try to make some connections in the constructor. If=20
there are some erros
I want to stop the application.
Now I tried a few thinks:
this.Close();
which has no effect, because the Form is not open in the=20
constructor.
The form opens.
Application.Exit();
has also no effect. The Form still opens.
System.Threading.Thread.CurrentThread.Abort();
=09
throws an exception which I can=B4t catch.
How can I stop my program in the constructor without any=20
errors ?
Thanx and regards=20
Stephan Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51872
LinkLabel Column in Datagrid
Is it possible to have a link label column in a datagrid
if so kindly help me out with explanations or sample codes
Thankx in advance Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51870
Few questions regarding building MSI using VS.NET
Hi,
I am building MSI for my projects using Visual Studio.NET and facing some
problems with this.
1) I want to add a shortcut to another EXE which is not included in the MSI.
How to add this? Visual Studio.NET allows us to create a shortcut for files
that are included in the project / MSI whereas WISE allows to do the same.
2) When we create the MSI using VS.NET, the default setting for installation
is to install "only for the you" but not for "anyone who uses the computer"
( you can see this option in "User information" dialog while installing any
MSI. I could not find any place in VS.NET setup project to change this
option. This is very essential to assign the MSI using Group Policy. How to
change the default option?
3) Is it posible to change the dialogs and to add any custom actions?
Any Help??
Advance thanks,
Ramana Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51867
Program the function key of Datagrid
How to program the function keys(right arrow, left arrow,
Up arrow, down arrow, tab, PgUp, PgDn) of datagrid? Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51864
ListBox Performance - SetSelected
Hi there,
I have the case where I am trying to optimize some slow code that selects
listBox items.
For approximately 6,500 items, the IndexOf method takes about 3 seconds on a
2.4GHz machine, and SetSelected takes about 9 seconds.
The label lookup from the lable map takes about 0.004 seconds.
Is there any way of selecting items in a quicker, possible batch fashion?
SelectedIndices appears to be read only. Surely it can't take 9 seconds to
select all these indexes when only 10 or 12 are displayed at any one time.
I've tried SuspendLayout() and ResumeLayout() to try to avoid code that
updates the display after every selection, but the performance remained the
same.
for(int i = 1; i <= aenumElements.Count; i++)
{
string alabel = m_idLabelMap[aenumElements[i]] as string;
int aindex = listBoxElements.Items.IndexOf(alabel);
if(aindex >= 0)
listBoxElements.SetSelected(aindex, true);
}
Any tips would be greatly appreciated (short of re-working the use case to
not require 6,500 elements of course).
Thanks,
Wayne. Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51863
can we call function whose name store in variable
Hi All,
Is it possible to call a function whose name is store in variable using
VB.Net. Assume this
dim a as string
a = "GetEmployee()"
Now I have function name in a variable, how can I call this function that is
already define.
Thanks
AQ Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51861
Client/Server Samples with Business Logic Layer
Sorry for the cross-post, but I didn't know whom to ask..
Are there any samples for a true C/S app (preferably VB, but C# is welcomed)
with a middle tier using datasets/datatables similar to the the Fitch/Maher
sample w/VB6? The only thing i can find on windowsforms.com & MSDN is
TaskVision, which is overly complicated for my needs(dont need to expose
data via web services).
I have adopted the "MS Building Blocks" data access class, but it's only
been used in ASP.Net samples, and would like to continue using it in the
BLL. Is this possible?
Thanks,
Morgan Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51844
Disable MDI Scrollbars
Hi all!
Relating to an earier post I made.
I tried the EnableScrollBar API which didn't seem to work
for me. This is how I'm declaring it:
[ DllImport("user32.Dll", EntryPoint "EnableScrollBar") ]
public static extern bool EnableScrollBar(System.IntPtr
hWnd, int wSBflags, int wArrows);
Then using it like so:
EnableScrollBar(this.Handle, 3, 3);
If anyone has any success in disabling MDI parent
scrollbars then I'd love to know how you've done it!
Thanks,
Carl Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51843
Is it true that Windows Forms don't use config files?
WROX's "Professional ADO.NET" makes the following statement on page 54 when
discussing obtaining connection strings from a config file:
"In Web applications this file must be name web.config. In Console
applications, the configuration file also ends in .config, but is prefixed
with application name, such as MyApp.exe.config. Windows Forms applications
do not use configuration files."
I am curious why Windows Forms do not use config files and also what about
Windows Service apps (or they treated as "console" apps?)? Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51842
Inherited Control Location
I have an inherited form that has 2 broup boxes and 2 controls (textboxes)
on each group box. I am unable to move controls out of the group box. Is
this an inherited controls issue, or am I missing something else? Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51839
Datagrid: Full Row Select and Other Options like in TaskVision
All,
Maybe I'm just missing it but how do you do the following three things
with a WinForms DataGrid...
1: Make it so when the user clicks on any part of a row the FULL row
becomes selected
2: Hide the add new row from the bottom of the grid
3: Remove the grey side bar from the left of the grid
For an example see the main grid in the TaskVision Demo at:
http://www.windowsforms.net/default.aspx?tabIndex=7&tabId=44
This is the EXACT grid I want. I took a look at the source and I can't seem
to find where they made the tweaks.
The dgGrid is of type System.Windows.Forms.DataGrid so it is still the basic
grid.
I'm pretty sure it is something from the class "public sealed class
MainFormDgStyle" but I can't seem to find what.
-Jason Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51836
databinding lose focus
Hi, I was wondering if someone could give me a workaround for this...
I have a windows form with a number of text boxes that are databound
to a datatable. My problem lies in the fact that (to the best of my
knowledge) you must tab off of the control (ensure it has lost focus)
before it will update the datarow with the information that was typed
in the textbox.
This is an issue because I give users the option to 'save & close' the
form from a menu item, and menu's are specifically designed not to
accept focus - thus focus never leaves the control the user was last
typing in, therefore the last controls contents never make it back to
the datasource.
I've tried removing focus from the control programatically as part of
the 'save & close' function, but this doesn't seem to work.
Any ideas?
Cheers,
Matt Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51835
Multilanguage Keyboard
Im trying to create an onscreen keyboard onto one of my
forms. How do i take into consideration different
languages keyboard layouts (I want to be able to support
multiple languages).... for example where the "Q" key is
on an english keyboard on a French keyboard it is the "A"
Please any help will be greatly appreciated...
Thanks, Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51834
Adobe fonts don't show up in fontdialog
Does anyone have any exp with getting the adobe fonts to show up in the
fontdialog?
If I paste text from word into a .Net RTF I can retain the font in the RTF
(it looks correct on the scree and it prints correctly), but I can't show
the correct font in the font dialog.
Help Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51833
Set the focus with multiple panels
Hi,
I have a win form wich is composed of multiple panels (all
visible). In one of the panel, I have a UserControl that I
have made.
When the form gets loaded, I want to have the focus in a
Textbox inside the UserControl (which is inside a panel).
I used:
MyForm.MyUserControl.myTxtBox.Focus()
but it doesn't work: the boolean value returned by this
function is false!
Any idea of what I need to do?
thanks,
Jenny Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51832
How to customize a windows datagrid?
hiye... i need some help with customizing windows
datagrid. can anyone out there help me by giving me good
metarials to start with? i need the datagrid to have
flexability like the datagrid being used by asp.net.
i notice its abit hard to customize windows datagrid.
any help from you people its grealy appriciated
yours truly
Smen Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51830
On key press
I currently a have a form that has data bound fields to a SQL 2000
database with 4 textboxes. What i would like to do is when a user
changes the info in any of the textboxes to change the current textbox's
backgroud color?
Thanks for your help
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51829
Image Resource
Hi,
I have a picture box control in my form and I have 2 .GIF (animated GIF
image). And I want to display those GIF image in my picture-box (at first, I
want the control to show the first image and a few seconds later, I want the
control to present the second image).
The following are some ways I have try to deal with this task:
- Insert two picture-box control into my form and each control shows only
one image; and then, I will toggle the Visible property of them.
This is not a good solution if I want to display 10 or 100 images
- I make use of ImageList to keep my images. Through it's a very good idea,
my animated GIF image stop animating. It's become static image.
- Using the Image.FromFile to load image. But I don't want to reveal the
images to the user so that they can open,edit them and change my
application.
Is there better solution ?
I have used Visual C++. Using images in C++ is very easy: just insert them
into the resource file and display them with. Is there any easy way to use
resource in C# ?
Thanks Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51825
C#(Quit the application) - shift+Ctrl+Q
Dear Friends,
I have created Application using VC#.
How do to the following tasks?
The user should not be allowed to exit the program: the start menu, end
task and all other ways of exiting the program should be
disabled. The Shift+Ctrl+Q (or other keystroke combination) should be the
only way to exit the program.
I disabled the close button.
If anyone knows ....Please help me....
Any suggestions would be greatly appreciated....
Thanks,
Rajan Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51815
GetClipBox Function in Visuall Basic
Is there Visual Basic.Net function equivalent to the
Visual C++ GetClipBox()? I will use that function to only
paint the portion of a form displayed on screen. Thanks Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51811
ImageList bitmap strip
I am attempting to add a strip of images to an image list
using the Image Collection Editor. The image strip is a
64x16 bmp and the image size of the ImageList is 16*16.
When I add this bitmap it comes in as a single image. Can
I use the Image Collection Editor to add a bitmap strip
and if so what do I need to do?
Thanks,
Dan Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51809
Changing mouse cursor styles
Hi,
How does one change the Mouse cursor style?
Any code snippets would help
Thanks
Sankalp Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51807
TreeControl expand button always present
Hi,
I would like to fill in a tree control on demand, so I
would like to + sign to appear even if there are no child
nodes. In C++ I would just set the window style, but I'm
not even sure how to do that in C#.
Thanks. Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51798
Cannot close dialog form by OK/Cancles buttons and Enter/Esc keys.
This is a multi-part message in MIME format.
------=_NextPart_000_001D_01C345F9.0FD44A50
Content-Type: text/plain;
charset="windows-1251"
Content-Transfer-Encoding: quoted-printable
Hi!
There is a dialog form containing some panels, each panel contains some =
buttons.
The one button have .DialogResult property assigned to OK,
and the one have .DialogResult assigned to Cancel.
Form properties .AcceptButton =E8 .CancelButton are assigned to these =
two buttons.
All other buttons have .DialogResult =3D None.
Problem: form ignores clicks on OK =E8 Cancel buttons, and pressing =
Enter and Esc.
What's happen? Where can be a bug?!?
The another form that contains OK and Cancel buttons only works =
properly.
WBR, Ilya
------=_NextPart_000_001D_01C345F9.0FD44A50
Content-Type: text/html;
charset="windows-1251"
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=3Dwindows-1251">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>
<DIV><FONT size=3D2> Hi!</FONT></DIV>
<DIV>There is a dialog form containing some panels, each panel contains =
some=20
buttons.</DIV>
<DIV>The one button have .DialogResult property assigned to OK,</DIV>
<DIV>and the one have .DialogResult assigned to Cancel.</DIV>
<DIV> </DIV>
<DIV>Form properties <FONT size=3D2>.AcceptButton </FONT><FONT =
size=3D2>=E8=20
.CancelButton </FONT><FONT size=3D2>are assigned to these two=20
buttons.</FONT></DIV>
<DIV> </DIV>
<DIV>All other buttons have <FONT size=3D2>.DialogResult =3D =
None.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Problem: form ignores clicks on OK =E8 Cancel =
buttons,=20
</FONT><FONT size=3D2>and pressing Enter and Esc.</FONT></DIV>
<DIV><FONT size=3D2>What's happen? Where can be a bug?!?</FONT></DIV>
<DIV> </DIV>
<DIV>The another form that contains OK and Cancel buttons only works=20
properly.</DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV>WBR, Ilya</DIV></FONT></DIV></BODY></HTML>
------=_NextPart_000_001D_01C345F9.0FD44A50-- Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51793
A row of checkboxes in datagrid?
Hi:
It's easy to add one column of checkboxes in to datagrid. Has anyone tried
to add one row of checkboxes in to datagrid(or listview)? If you know how to
do, please give some hints.
Thanks,
Dennis Huang Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51791
ImageList image strip
Is there a way to load an image strip into an ImageList
using the Image Collection Editor?
Thanks,
Dan Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51789
DataGrid.VisibleRowCount is 0 after databind
I run the following code:
dgSearchResults.DataSource = MyDataTable
MsgBox(dgSearchResults.VisibleRowCount)
and I get 0. Can someone explain why I get 0?
Thanks,
John Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51783
ListView subitem
I have a listview that I need to get the text in a subitem in a selected
item (line).
I can get the selected item index, but I can not get the data back from the
subitem.
If you can point me to an example or tell me how to do it that would be
great!
The is managed C++ but C# will do.
Thanks!
Larry Hilley Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51780
Win XP application taskbar grouping
I am working on a windows form application that is a single document
editor. When several instances of the editor are run at the same time
on windows xp, the applications are grouped in the taskbar as (#)
where # is the number of instances running. The grouped application
name is not displayed with the #. It is important to note that the
title of an instance sometimes changes. Normally it is "Editor", but
if a document is loaded then it is "Editor - Document". How can I
group them collectively as "# Editor"? Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51779
Bound data doesn't change with dataset.
. Reply (E-mail) Forward (E-mail)
Subject: Bound data doesn't change with cleared dataset.
From: "M K" <mark@centurycolor.com> Sent: 7/8/2003
8:29:42 AM
I have a win form app that has several bound controls
(mostly textbox). When I load a job, the dataSet is
filled, and the controls show the data as I navigate. If I
then go and load a new job (new data) I clear the dataset,
and do a new fill. But the controls still show the old
data. Why is this? What am I missing? The controls are
bound at design time. The data is filled at run time. Here
is how I am doing it:
If Not Me.DsOrder1.Orders Is Nothing Then
Me.DsOrder1.Orders.Clear()
Me.cmdSelOrders.Parameters.Add(New OleDb.OleDbParameter
("?JobId", Me._jobId))
Me.daOrders.Fill(Me.DsOrder1)
Any ideas please? Don't know where to look for info on
this. Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51772
TransparencyKey and Paintbox
How do I get a bitmap to display with transparency on a form? I've used
exactly the same colour (green: $40FF40) on the form and the bitmap and
the colour on the form is transparent, but the colour on the bitmap
remains green. I've even tried using e.Graphics.DrawImage in the Paint
event to see if that worked, but it didn't.
The TransparencyKey property almost seems useless if you can't use it
with bitmaps!! Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51765
TreeView Selected Node
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C34543.2A96D800
Content-Type: text/plain;
charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
All,
I can find the selected node of a treview but how can I change the =
format of the one node. I am trying to bold it or change the font color =
so that the user knows which node is selected. Currently, if another =
control is selected, the selection states goes away in treeview.
Thanks,=20
Brian P. Hammer
------=_NextPart_000_0007_01C34543.2A96D800
Content-Type: text/html;
charset="Windows-1252"
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=3Dwindows-1252"><BASE=20
href=3D"file://C:\Program Files\Common Files\Microsoft =
Shared\Stationery\">
<STYLE>BODY {
BACKGROUND-POSITION: left top; FONT-SIZE: 12pt; COLOR: #000000; =
BACKGROUND-REPEAT: no-repeat; FONT-FAMILY: Times New Roman
}
</STYLE>
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<DIV>All,</DIV>
<DIV> </DIV>
<DIV>I can find the selected node of a treview but how can I change the =
format=20
of the one node. I am trying to bold it or change the font color =
so that=20
the user knows which node is selected. Currently, if another =
control is=20
selected, the selection states goes away in treeview.</DIV>
<DIV> </DIV>
<DIV>Thanks, <BR>Brian P. Hammer</DIV></BODY></HTML>
------=_NextPart_000_0007_01C34543.2A96D800-- Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51761
Control Licensing
Help please!
I'm trying to implement control licensing using the LicFileLicenseProvider
implementation of the LicenseProvider class, but I cannot seem to get the
right format either in my <controlname>.LIC file, or in the first line
"myClass name is a licensed component" in the file. (I will implement my own
validation once I get the basic structure working.)
All I can find in the literature is a reference to using the fully qualified
name of the control, and the fully qualified name of the component.
My control is called ctlAlarmClock and it's contained in a component class
called ctlClockLib. So I would have thought that
filename = ctlClockLib.ctlAlarmClock.LIC
text = "ctlClockLib is a licensed component"
should both work.
Any help would be greatly appreciated.
Mauro Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51758
Debugging designer instantiation
Hello...Im using VS.net and i have a problem with the
windowsfrom designer it when i attempt to bring up the
designer for a form (that is derives another form i made)
i get an exception message ("ExecuteReader requires an
open and available Connection. The connection's current
state is Closed") in a message box and when i click ok it
show X...An error has occured ........ instead of the form
Now how can i find out where this error occurs, can i
somehow debug this instantiation, that occurs when
starting the designer, using breakpoint and such like
when debugging the program? Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51750
Convert COLORREF to Color
I would like to convert the COLORREF returned by the
GetThemeColor function to a Color type using C#. I would
appreciate any guidance on the best way to accomplish
this.
Thanks,
Dan Tag: Datagrid.Backgroundimage propertry (VB.NET) Tag: 51743
How can I show an image in the background of the datagrid?