Associated icon for files in Treeview
I've got a Treeview, in which I'm adding file names/paths
How can I add the System image associated with that file (dynamically), in
the Treeview? Tag: Override minimum form height? Tag: 117077
ValidateChildren not envoking validation on controls with CausesValidation set to false
From my lengthy and painful debugging experiment it seems that
UserControl.ValidateChildren() will not envoke validation of child controls
where their CausesValidation property is false.
I have a rather complex hierarchy starting with a MS CAB SmartPart view
placed on an Infragistics UltraTabPageControl tab, which contains a group
box, a flow panel and finally some UltraComboEditors. When the
ValidateChildren method is run on the view (which inherits from
UserControl), it seems to validate only controls which themselves cause
validation. I implement Validating() event handlers accross the whole
hierarchy, set all CausesValidation to false except the bottom level of
combos where I play with various combinations to see the validation being
triggered.
This dependency seems so odd, because
1 - wasn't ValidateChildren ment exactly a mechanism independent on
(alternative to) auto validation controlled by CausesValidation property.
2 - CausesValidation is supposed to control behaviour of other controls, not
itself.
Am I right about my observation of this schizophrenic character of
CausesValidation, is it something particular to the Infragistics controls
library, or is something wrong in my test case?
Any comments appreciated.
Pavel Tag: Override minimum form height? Tag: 117074
DataGridView, DataGridViewComboBoxColumn problems
Hi,
I've been looking at this for a while now and I have tried 4 or 5
different options and I can't quite get this to work.
Requirements
I have a DataGridView setup in virtual mode and I want a Combobox
column in DropDownCombo style (i.e so you can type a new value in that
doesn't exist in the dropdown).
If the user types something into the editable portion that doesn't
exist in the dropdown I need to perform a search that may find a
matching item that I want added to the dropdown, this value should
then be selected and pushed back to the datastore.
Ideally I'd like to implement an iTunes style fuzzy matching algo as
well (perhaps filter the contents of the dropdown but I'd like to get
the simple option working first
Problem
I'm hitting issues with the validation, I've tried several points to
hook into the chain of events but none seem early enough to prevent a
DataError being thrown because the value I entered isn't in the
dropdown
Any thoughts on the best way to approach this problem?
Thanks in advance for your thoughts
David Hayes Tag: Override minimum form height? Tag: 117073
Missing Images while printing in vb.net
Hi Toall ,
I want to explain you clearly ,
I am having some panels having some controls
CheckBox,ComboBox,Datagridview,Hyperlink,label,Listbox,Picturebox,RadioButt=
=AD
on ,Textbox)
&(Oval,Line,Rectangle ). with .BorderStyle =3D
BorderStyle.FixedSingle . All these things are generating at runtime
using some buttons .
I am taking them in to bitmaps and then printing using ACROBAT
DISTILLER printer.
I am printing each Bitmap on a new page taking e.MarginBounds of
PrintPage event using e.Graphics.DrawImage () .
I took each control on a single panel. Then i take the
panel
into bitmap using control.drawtobitmap() .And then I print the
things .
Suppose if the panel is having Circle or line or ComboBox or Checkbox
or DataGridView or URL or ListBox or RadioButton ,it is showing the
borders .
Suppose if it is having picturebox or rectangle or Textbox missing
the
borders . or if the panel is not having controls then it is missing
the borders while printing .
It is showing the borders in printpreview everytime(I have to zoom
to look at these things ) but while printing ,sometimes, it is
printing with borders ,sometimes it is missing the borders.
If it is the last page to print it is missing last
3-4 lines (Missing the image part at bottom ). Suppose, i am having
2
bitmaps having the samesize and controls ,then in 1st page it is
printing with controls & borders exactly correct .But while coming to
last page, it is missing bottom 3-4 lines which makes the printing
incorrect .
So any help about this to make the printing correct exactly.
Thanks & Regards , Tag: Override minimum form height? Tag: 117071
Inspiron Laptop
Not sure why I am not able to log on..all my attempts say"The user profile
Service service failed logon, user profile cannot be loaded"
I have all the software that came in a box of original purchace.
Help Tag: Override minimum form height? Tag: 117066
Is Vista Ready for VS2K5
I'm about to get a new computer for VS2K5 development. Is it ok to get
Vista yet or should I stick with XP?
Thanks,
Ross Tag: Override minimum form height? Tag: 117056
SendKeys.Send Problem
Hello
I'm using the SendKeys.Send method for an onscreen keyboard. This works
perfect except one problem:
If i configure windows to use an english keyboard the call
SendKeys.Send("{^}") results in a "^".
BUT when my computer is running with an german keyboard, the call
SendKeys.Send("{^}") results in a "&".
MSDN says: If your application is intended for international use with a
variety of keyboards, the use of Send could yield unpredictable results and
should be avoided.
Okay that sounds bad, the strange thing is that every other keystroke (or
text) is working fine, excepts the "^" character.
Berni Tag: Override minimum form height? Tag: 117054
c# stop user changing tab on tab control stops events
All,
I am trying to stop users changing tab pages on a tab control if the
tab page has not been validated. This I can do by adding a tab
control selected index change event handler and a tab page validating
event handler.
http://www.syncfusion.com/FAQ/winforms/FAQ_c93c.aspx#q958q
However, once validation has failed, no other events are thrown by
controls on the same tab page until the tab page has lost and then
regained focus. I have attached sample code for a simple form.
Uncheck the test box, try to change to tab 2, and then try and click
the Tab Button. It does not fire. But it does if you click Form
button first.
Can anyone suggest a solution to this. I have kept the sample code as
simple as possible.
Thanks in advance - code below.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace TabSample
{
public class Form1 : Form
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.Run(new Form1());
}
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
private TabControl tabControl1;
private TabPage tabPage1;
private Button btnTabButton;
private CheckBox cbName;
private TabPage tabPage2;
private Button btnFormButton;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should
be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (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.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.cbName = new System.Windows.Forms.CheckBox();
this.btnTabButton = new System.Windows.Forms.Button();
this.btnFormButton = new System.Windows.Forms.Button();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Location = new System.Drawing.Point(41,
12);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(376, 249);
this.tabControl1.TabIndex = 0;
this.tabControl1.SelectedIndexChanged += new
System.EventHandler(this.tabControl1_SelectedIndexChanged);
//
// tabPage1
//
this.tabPage1.Controls.Add(this.btnTabButton);
this.tabPage1.Controls.Add(this.cbName);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new
System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(368, 223);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "tabPage1";
this.tabPage1.UseVisualStyleBackColor = true;
this.tabPage1.Validating += new
System.ComponentModel.CancelEventHandler(this.tabPage1_Validating);
//
// tabPage2
//
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new
System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(192, 74);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "tabPage2";
this.tabPage2.UseVisualStyleBackColor = true;
//
// cbName
//
this.cbName.AutoSize = true;
this.cbName.Checked = true;
this.cbName.CheckState =
System.Windows.Forms.CheckState.Checked;
this.cbName.Location = new System.Drawing.Point(40, 57);
this.cbName.Name = "cbName";
this.cbName.Size = new System.Drawing.Size(55, 17);
this.cbName.TabIndex = 0;
this.cbName.Text = "Valid?";
this.cbName.UseVisualStyleBackColor = true;
//
// btnTabButton
//
this.btnTabButton.Location = new System.Drawing.Point(121,
142);
this.btnTabButton.Name = "btnTabButton";
this.btnTabButton.Size = new System.Drawing.Size(75, 23);
this.btnTabButton.TabIndex = 1;
this.btnTabButton.Text = "Tab Button";
this.btnTabButton.UseVisualStyleBackColor = true;
this.btnTabButton.Click += new
System.EventHandler(this.btnTabButton_Click);
//
// btnFormButton
//
this.btnFormButton.Location = new
System.Drawing.Point(166, 302);
this.btnFormButton.Name = "btnFormButton";
this.btnFormButton.Size = new System.Drawing.Size(75, 23);
this.btnFormButton.TabIndex = 1;
this.btnFormButton.Text = "Form Button";
this.btnFormButton.UseVisualStyleBackColor = true;
this.btnFormButton.Click += new
System.EventHandler(this.btnFormButton_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F,
13F);
this.AutoScaleMode =
System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(458, 348);
this.Controls.Add(this.btnFormButton);
this.Controls.Add(this.tabControl1);
this.Name = "Form1";
this.Text = "Form1";
this.Load += new System.EventHandler(this.Form1_Load);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.ResumeLayout(false);
}
#endregion
/// <summary>
/// COnstructor
/// </summary>
public Form1()
{
InitializeComponent();
}
/// <summary>
/// Handle button on form
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnFormButton_Click(object sender, EventArgs e)
{
MessageBox.Show("Form Button Clicked");
}
/// <summary>
/// Handle button on tab page
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void btnTabButton_Click(object sender, EventArgs e)
{
MessageBox.Show("Tab Button Clicked");
}
/// <summary>
/// Tab control event handler
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void tabControl1_SelectedIndexChanged(object sender,
EventArgs e)
{
tabControl1.TabPages[tabControl1.SelectedIndex].Focus();
tabControl1.TabPages[tabControl1.SelectedIndex].CausesValidation =
true;
}
private void Form1_Load(object sender, EventArgs e)
{
tabControl1.TabPages[0].Focus();
tabControl1.TabPages[0].CausesValidation = true;
}
/// <summary>
/// Validate tab page
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void tabPage1_Validating(object sender,
CancelEventArgs e)
{
if (!this.cbName.Checked)
{
MessageBox.Show("Tab not valid - not leaving");
e.Cancel = true;
}
}
} // end of class
} // end of namespace Tag: Override minimum form height? Tag: 117052
Automatic security Updates
I have "installed" the following updates from the Microsoft website, however
they do not appear in my add/remove program file on my pc., however appear to
have done so on the Microsoft site.
KB936181 and KB927978
I would like to know why these have not installed and how I can rectify the
problem.
I have to install update symbol showing all of the time, for the same update
and have attempted it around 10 times, each time being successful by
Microsoft but not really. Tag: Override minimum form height? Tag: 117051
WPF
I use VS 2005
I would like to use WPF with VS 2005
Though I have download Visual Studio 2005 extensions for .NET Framework 3.0
(WCF & WPF), November 2006 CTP
and try to install it, it always say require .Net Framworks 3.0
I previously install .Net Frameworks 3.5 and can use Windows Workflow also
with install the extention for VS 2005.
Why can I do the same with WPF?
Regards,
Gun Tag: Override minimum form height? Tag: 117049
How can I find out a person has logged in to the network in the office?
This is a multi-part message in MIME format.
------=_NextPart_000_0006_01C8AA0C.2346A160
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
Do you know How I can find out a person has logged in to the network in =
the office?
Thanks,
Dennis
------=_NextPart_000_0006_01C8AA0C.2346A160
Content-Type: text/html;
charset="iso-8859-1"
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=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2912" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Do you know <FONT size=3D1>How I can find out a =
person has=20
logged in to the network in the office?</FONT></FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT size=3D1>Thanks,</FONT></DIV>
<DIV><FONT size=3D1></FONT> </DIV>
<DIV><FONT size=3D1>Dennis</FONT></DIV></BODY></HTML>
------=_NextPart_000_0006_01C8AA0C.2346A160-- Tag: Override minimum form height? Tag: 117045
Where is application installed to on machine?
I successfully deployed my app and it installed correctly on my test app.
So where is it? I can't find the files anywhere except an application
reference in the start menu directory. I need to see it because I want to
check the config file to make sure it's pointing to the correct directory.
I do a search for my config file and I can't find it. So what directory is
everything in?
BillG Tag: Override minimum form height? Tag: 117042
Error when publishing
I am getting an error in my Installation Folder URL.
I type in my http://www.whatever.com/myApp/Deploy/
I get back
Cannot find
http://%%201%20http://www.whaterver.com/myApp/Deploy/publish.htm
make sure the pat or internet addriess is incorrect
Previous to this I have misspelled the name of the domain and it had built
the published setup.exe using the wrong domain name but now when I put in
the right one, it gives me an error
What gives?
Bill Tag: Override minimum form height? Tag: 117040
WINDOWS DESKTOP SEARCH ISSUES
WDS is regularly reindexing my total HDD whether requested or not .
I would have thought it would have just looked back to when it did it last
and added on the new bit .
What it means is that when i want to search for things daily , which i do a
lot , that i cant find them as the whole indexing process is underway and
takes more than a little time to complete as my HDD has over 100,000 files !
I have de and reinstalled WDS a number of times but the problem just keeps
continuing .
I cant work out which WDS i have but believe it to be latest one . Please
tell me how to do this . I have run MS Update many times but there appears
none available .
I am using Windows XP Pro and have loads of ram .
thanks
Steve Tag: Override minimum form height? Tag: 117037
Month Only DateTime Picker
Hi,
is it possible to use the DataTime Picker for month selection only? What's
the easiest approach for this?
Thanks for any hint
Adrian
--
Adrian Miller Tag: Override minimum form height? Tag: 117036
Will data from a web service be cached in website?
This is a multi-part message in MIME format.
------=_NextPart_000_000C_01C8A917.65F86A20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
Will data from a web service be cached in website? Sometimes it sounds =
to me, but I am not sure about this. We are using HP notebooks and =
server.
Thanks,
Dennis
------=_NextPart_000_000C_01C8A917.65F86A20
Content-Type: text/html;
charset="iso-8859-1"
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=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2912" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Will data from a web service be cached in website? =
Sometimes=20
it sounds to me, but I am not sure about this. We are using HP notebooks =
and=20
server.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Thanks,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Dennis</FONT></DIV></BODY></HTML>
------=_NextPart_000_000C_01C8A917.65F86A20-- Tag: Override minimum form height? Tag: 117034
Winform to stay on top of a game window
I participate in a MMORPG using OpenGL. In conjunction with this, I
use a third-party application written in .NET 2.0 that collects data
from the MMORPG to help in analyzing my progress etc. I help a bit
with the development and maintenance of this window, and have
volunteered to TRY to figure out a solution to the following problem.
However I am kinda stuck.
This 3rd party app includes a form that stays on top of the game to
show various in-game data. This works fine under Windows XP, but when
using Vista, this "in-game window" does not redraw. Except if the game
is running in Windowed mode.
When running the game in full-screen under Vista, the in-game window
is not drawn. It IS on top, I can move the mouse over the area where
the window is, and the cursor will change. If I click it, it will
become active and visible. But once the game regains focus, the in-
game window is once again "invisible".
This must obviously have something to do with the way Vista handles
OpenGL, but what can be done to keep the in-game window visible when
running the game in full-screen?
The form has the TopMost property set to true, and as mentioned it
seems to BE on top, just "invisible". Tag: Override minimum form height? Tag: 117033
ClickOnce Deployment Question
I published my first application on the customers website and they will
deploy using ClickOnce. All the files needed are on the server incluing the
net framework and 3rd party componenets. My question is when I do patches
and fixes, can I just copy my new .exe and .dll files and the manifest to
the server directory or do I have to copy all the files including 3rd party
components which haven't changed up there?
BillG Tag: Override minimum form height? Tag: 117032
SP2 installation errors
Reloaded windows home edition SP1. Trying to update to SP2. I get errors
(unable to copy file dmio.sys). If I skip this file it stalls at unable to
copy input.dll. I can not find these files to download. Any help please Tag: Override minimum form height? Tag: 117028
Visible Effect Lose at RunTime
Hi,
i had made a procedure with some object ( buttons , OptionBox, CheckBox)
using VB2005
When i write code and test it in VB2005 all componets get ligth when
mouse cross over...
I had build this code...in a dll...
where i call it (on the same pc) this "visible Effect" are lose
Anyone can tell me why ???
Thanks and sorry for y bad english
Daniele Pinai Tag: Override minimum form height? Tag: 117027
Running command line commands with parameters read from a text fil
I am trying unsuccessfully to implement the following:
Run a command in command line (cmd.exe) while the command will use parameter
read from a text file.
The user will select the file to read in a winform and the same command will
run in a loop while using in each run the value in 1 single line in the text
file.
Can someone please advise what is the best way to do that?
Thanks a lot Tag: Override minimum form height? Tag: 117025
Deleting rows from a datagridview
Hi,
If I delete 700 rows in an Excel sheet it takes about half a second, but
when I do the same with my databound datagridview, it takes up to 2 minutes.
Isn't there a faster way to delete selected rows in a datagridview?
My code:
For Each rw In Me.dgvImport.SelectedRows
rw.DataBoundItem.delete()
Next
rg,
Eric Tag: Override minimum form height? Tag: 117021
deleting selected rows in a datagridview
Hi,
If I delete 700 rows in an Excel sheet it takes about half a second, but
when I do the same with my databound datagridview, it takes up to 2 minutes.
Isn't there a faster way to delete selected rows in a datagridview?
My code: Tag: Override minimum form height? Tag: 117020
Opening forms in background thread
Hi
I have a number of forms which open like this;
Dim frm1 As frmForm1 = New frmForm1
Dim frm2 As frmForm2 = New frmForm2
Dim frm3 As frmForm3 = New frmForm3
Dim frm4 As frmForm4 = New frmForm4
....
and so on and then finally open the first form with frm1.Show().
My question is, after opening first form using Dim frm1 As frmForm1 = New
frmForm1, how can I open the rest of the forms in a background thread? Would
appreciate a code example.
Many Thanks
Regards Tag: Override minimum form height? Tag: 117011
Hooking into DataSet Auto Generated Code
I have an application that I am trying to use auto generated code as much as
possible. It makes writing the application so much easier.
I have created a DataSet based on an SQL database connection. VS2008
generated the dataset class and code.
I need to insert some logic in the UpdateAll method just before the
workConnection.Commit() statement. I will be using the allAddedRows and
allChangedRows item arrays.
I know that if I make changes here they will be erased if the code is
re-generated.
Is there a method I can override or an event I can subscribe to that will
let me do something with the database just after the additions and changes
are made? I can start my own transaction if I need to, but I need access to
the arrays of added, changed and deleted records.
Again, I want to keep things as auto generated as possible. Tag: Override minimum form height? Tag: 117009
Displaying high-res images in .NET?
.NET 1.1/2.0
I have a need to display high-resolution scrollable images in a .NET
application (Windows Forms). One well known solution is to create a
Panel with AutoScroll set to "true" and then add a PictureBox or
another Panel to it, that is used to display the image.
The above approach works, however, to my surprise, .NET GDI+-based
graphics are not really hi-res friendly.
Consider the following codes examples:
1)
Bitmap b = new Bitmap( 6000, 6000 );
panel2.BackgroundImage = b; // <-- Works OK
2)
Bitmap b = new Bitmap( 14000, 10000 );
panel2.BackgroundImage = b; // <-- "Out of memory" error
The full stack of the error is:
System.OutOfMemoryException: Out of memory.
at System.Drawing.TextureBrush..ctor(Image image, WrapMode
wrapMode)
at System.Windows.Forms.Control.PaintBackground(PaintEventArgs e,
Rectangle rectangle)
at System.Windows.Forms.Control.OnPaintBackground(PaintEventArgs
pevent)
at
System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmEraseBkgnd(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.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)
Internally, the TextureBrush constructor makes a call to
GdipCreateTexture() method in gdiplus.dll, and, apparently, there is
some limit on the image size that the method can handle.
Obviously, I am hitting some limit of GDI+ here, but still need to
find a solution. I want to stay with .NET, if possible and avoid using
any third-party ActiveX controls.
What alternatives can I pursue?
Will going with .NET 3.x and WPF help?
TIA! Tag: Override minimum form height? Tag: 117007
Reading Data From The Browser
I'm working on a stand-alone winform app and could add a really cool
feature if I could just get the URL of the active tab in the active
browser window.
Note that the browser would have focus...my app just sits in the
background and based on the current URL, it would change the context
of information that would be displayed when the user returns focus to
me.
I haven't touched the IE API's in years, but know there has to be a
way. I doubt very seriously that FireFox does, but if anyone has any
ideas, it is more than appreciated.
Thanks,
Eric Tag: Override minimum form height? Tag: 117005
Listview subitems issue in VISTA
hi,
I have an application containing multiple listviews. The items in
listviews are seen fine on all the other OSs than VISTA.Due VISTA's
default theme, one element is shown less. Also the border or all the
MDI forms is seen one pixel thick.
Is there any code solution for it apart from changing theme to
Classic.
--Himaushu Tag: Override minimum form height? Tag: 116998
Big Problem with Tabcontrol
Hi,
I have an Windows Forms application written in C# which has a
tabcontrol in it. The tabcontrol has many pages in it. Each tabpage
deals with a specific feature in the application. e.g. Download,
Upload, Erase etc.
If I add all the controls directly to the tabpages, then that
basically means that I'd have to handle all the logic in the main form
itself. However, this would mean that the entire code for the
application would be in one class.
Hence, I need to split up the tabpages into either separate Windows
Forms OR User Controls(based on some info in earlier posts), and then
load them at Main Form's Load event into the tabcontrol.
I tried loading the forms into the tabpages by doing something like
this...
form.TopLevel = false;
form.FormBorderStyle = FormBorderStyle.None;
form.Parent = tab;
tab.Controls.Add(form);
form.Show();
Now, the problem is that even though the form displays properly in the
tab page, some part of the form seems to be missing. The right and
bottom parts of the form are not showing, even though the form size
and controls are
capable of fitting into the tabpage bounds. Also, the controls are
much larger than in the form, as if they have been zoomed up. I am
having to severely reduce the size of the form to make it display
properly, even then the control sizes are not as on the form.
The exact same problem occurs even if I use a UserControl instead of a
form to host the controls, and do the following...
UserControl1 userControl = new UserControl1();
tabPageDownload.Controls.Clear();
tabPageDownload.Controls.Add(userControl);
//this line seems to make it fit slightly better into the
tabpage, but doesn't solve the problem
userControl.Dock = DockStyle.Fill;
I have run out of ideas here. Any help would be highly welcome.
Windows Forms Gurus, please show me the light!
Thanks in advance,
Bharat Tag: Override minimum form height? Tag: 116995
Application start-up events without start-up form
Hi
My app needs to use the MyApplication_Startup and
MyApplication_StartupNextInstance events but do not need the start-up form.
How can I get rid of the start-up form as I can't select the Sub Main when
application framework is enabled.?
Thanks
Regards Tag: Override minimum form height? Tag: 116994
SerialPort event not firing after ShowDialog - C#
I have a C# application that uses the SerialPort class. The SerialPort
is being used for an external input device (a Disto).
It works perfectly except when a modal dialog pops up. When a modal
window is up the serial port events don't fire. The odd thing is they
aren't eaten, they appear to be on hold. When the modal window is
closed the events suddenly fire.
Since the serial port is being used for an input device I want the
events to fire all the time.
My understanding is the serial events happen on a secondary thread,
and not the main thread. Why are the events being held? Anyone have a
clue? Tag: Override minimum form height? Tag: 116993
App design advise
Hi
I have a third party telephony app that can inform of the any incoming call
tel number by one of two methods;
a) It can run a windows app with tel number passed as parameter, or
b) It can run a vbscript with tel number passed as parameter to the script.
My question is how can I design a vb.net app so that it can accept one of
the above techniques to pick the incoming tel number when needed.
Thanks
Regards Tag: Override minimum form height? Tag: 116986
RadioButton DataBinding problem
Hi all!
I have a custom datasource class with some boolean properties that i want to
bind to some RadioButtons in the UI. The RadionButtons are located in the
same GroupBox.
But the effect is, that the DataBinding will create some feedback that fails
the control/datasource communication. When i click a not checked RadioButton,
both RadioButtons are not checked afterwards.
(I use the .Net Framework 2.0)
Any solutions?
Thanks in advance
Ulrich
public class MyDataSource : INotifyPropertyChanged
{
private bool aChecked;
public bool AChecked
{
get { return aChecked; }
set
{
aChecked = value;
this.firePropertyChanged("AChecked");
}
}
private bool bChecked;
public bool BChecked
{
get { return bChecked; }
set
{
bChecked = value;
this.firePropertyChanged("BChecked");
}
}
private void firePropertyChanged(string propertyName)
{
if (this.PropertyChanged != null)
this.PropertyChanged(this, new
PropertyChangedEventArgs(propertyName));
}
#region INotifyPropertyChanged Members
public event PropertyChangedEventHandler PropertyChanged;
#endregion
}
public partial class Form1 : Form
{
private MyDataSource myDataSource;
public Form1()
{
InitializeComponent();
this.myDataSource = new MyDataSource();
this.rbA.DataBindings.Add(new Binding("Checked", myDataSource,
"AChecked", false, DataSourceUpdateMode.OnPropertyChanged));
this.rbB.DataBindings.Add(new Binding("Checked", myDataSource,
"BChecked", false, DataSourceUpdateMode.OnPropertyChanged));
}
} Tag: Override minimum form height? Tag: 116985
Delays in drawing lines and rectangles - .NET 1.1
Hello, I developed a program that drawing lines and rectangles from
excel data using .NET 1.1 GDI+.
It works fine normally, but in some computers there's delay drawing
lines and rectangles.
When I move the form, there's blink because of the delay.
The computers have same OS (Windows XP Professional) and same .NET
framework.
Is there any advice for me? Is there someone has same problem?
Please help me out.
Thanks in advance. Tag: Override minimum form height? Tag: 116981
C# Application Dies for Only 1 User
I have rather odd problem and I am not sure how to go about debugging it.
I have an MDI application that I am deploying on the local intranet to about
20 users using ClickOnce deployment. I am just using the default setting in
Visual Studio 2005 to deploy the app to an intranet web server. It is a full
trust application. After I published the last update one of the users called
and said the application would not start for him after the update installed,
but was working the day before. No other users are having problems.
Basically the problem is: The user starts the application it starts up
fine. Then the user clicks on another application that is open causing my app
to loose focus. When the user clicks back on my application it shuts down
within one second.
If the user starts my application and uses Alt+Tab to switch between the
applications that are running on the machine the error does not occur. In
fact if the user chooses to use Alt+Tab just once to switch between my app
and another app the problem goes away even if they start using their mouse to
start clicking between my app and another one.
Thanks,
Erik Tag: Override minimum form height? Tag: 116980
Wholesale AAA Omega Constellation Ladies Watch 1372.10 Replica
Wholesale AAA Omega Constellation Ladies Watch 1372.10 Replica
Price Of Each Replica Watche from www.wholesale-watches.org is less
than $100, all waches are of AAA quality.
Wholesale Omega Constellation Ladies Watch 1372.10 :
http://www.wholesale-watches.org/wristwatch-3269.html
Wholesale Replica Watches : http://www.wholesale-watches.org/
Buy the Lower price Omega Constellation Ladies Watch 1372.10 in
toppest Replica . www.wholesale-watches.org helps you to save money!
Omega-1372.10 , Omega Constellation Ladies Watch 1372.10 , Replia ,
Cheap , Fake , imitation Omega Constellation Ladies Watch 1372.10,
Omega Watches
Omega Constellation Ladies Watch 1372.10 Information :
Brand : Omega Watches (http://www.wholesale-watches.org/
omega-watches.html )
Gender : Ladies
Model : Omega-1372.10
Case Material : 18kt Yellow Gold And Stainless Steel
Case Diameter : 1372.10, 1372.10.00, 1372-10, 1372-10-00, 1372/10,
137210, 1372
Dial Color : Ivory
Bezel : 18kt Yellow Gold
Movement : Quartz
Clasp : 18kt Yellow Gold And Stainless Steel
Water Resistant : 30m/100ft
Crystal : Scratch Resistant Sapphire
Our Price : http://www.wholesale-watches.org/wristwatch-3269.html
Availability: Contact Us For Availability Omega Constellation Ladies
Watch 1372.10 Champagne Dial. Sapphire Crystal. Solid 18K Gold with
Steel Case & Half Bar Band. 30 Meters Water Resistant. Quartz
Movement. 25.5mm = 1 Dial, 7 Adjustable Band.Free UPS Shipping. Every
Weholesale-watches.org watch has serial numbers intact and proper
authenticity. 2 year Weholesale-watches.org warrenty. 30 day money
back guarentee. Omega Constellation Ladies Watch 1372.10 Brand
OmegaSeries Omega ConstellationGender LadiesCase Material 18kt Yellow
Gold And Stainless SteelCase Thickness 7.5mmCase Diameter 25.5mmDial
Color IvoryBezel 18kt Yellow GoldMovement QuartzClasp Push Button
DeploymentBracelet 18kt Yellow Gold And Stainless SteelWater Resistant
30m/100ftCrystal Scratch Resistant SapphireWarranty Warranty service
for this watch will be offered through Weholesale-watches.org and not
the manufacturer. Omega watches have a 2 year Weholesale-watches.org
warranty. Please click here for additional watch warranty
information.Item Variations 1372.10, 1372.10.00, 1372-10, 1372-10-00,
1372/10, 137210, 1372Omega watches have been a standard for quality
and excellence for over 150 years, when the company began as
Switzerland's first watch manufacturer. When elegance and strength
come together to form an extraordinary timepiece, the result can only
be an Omega wristwatch. Wholesale-Watches is proud to offer a full
line of Omega watches; featuring the Constellation series as endorsed
by model Cindy Crawford. The Omega Cindy Crawford Constellation watch
series is renown for elegance, beauty, and sophistication. Wholesale-
Watches is proud to offer a full line of other Omega watches,
including Omega Seamaster, Omega Aqua Terra, Omega Speedmaster, Omega
double eagle, Omega Broad Arrow, and Omega Co-Axial at competitive
prices.Omega Constellation Ladies Watch 1372.10 is brand new, join
thousands of satisfied customers and buy your Omega Constellation
Ladies Watch 1372.10 with total satisfaction . A Weholesale-
watches.org 30 Day Money Back Guarantee is included with every Omega
Constellation Ladies Watch 1372.10 for secure, risk-free online
shopping. Weholesale-watches.org does not charge sales tax for the
Omega Constellation Ladies Watch 1372.10, unless shipped within New
York State. Weholesale-watches.org is rated 5 stars on the Yahoo!
network.
Omega Constellation Ladies Watch 1372.10 in Omega Watches series won't
be wholesale in China Replica Watches Wholesale, If you want to order,
please contact with us at wholesalewatch@hotmail.com
Thank you for choosing www.wholesale-watches.org as your reliable
dealer of quality waches including Omega Constellation Ladies Watch
1372.10 . we guarantee every watch you receive will be exact watch you
ordered. Each watch sold enjoy one year Warranty for free repair.
Every order from aaa-replica-watches is shipped via EMS, the customer
is responsible for the shipping fee on the first order, but since the
second watch you buy from our site, the shipping cost is free. Please
note that If the total amount of payment is over $600(USD),OMEGA
CONSTELLATION LADIES WATCH 1372.10, the customer is required to
contact our customer service before sending the money in case failed
payment. If you have any other questions please check our other pages
or feel free to email us by wholesalewatch@hotmail.com. Cheapest
Omega-1372.10
The Same Omega Watches Series :
Omega Constellation Ladies Mini Watch 1362.70 :
http://www.wholesale-watches.org/wristwatch-3270.html
Omega Constellation Ladies Mini Watch 1362.30 :
http://www.wholesale-watches.org/wristwatch-3271.html
Omega Constellation Ladies Mini Watch 1267.75 :
http://www.wholesale-watches.org/wristwatch-3272.html
Omega Constellation Ladies Mini Watch 1267.15 :
http://www.wholesale-watches.org/wristwatch-3273.html
Omega Constellation Ladies Mini Watch 1262.10 :
http://www.wholesale-watches.org/wristwatch-3274.html
Omega Constellation Ladies Watch 1272.70 :
http://www.wholesale-watches.org/wristwatch-3275.html
Omega Constellation Ladies Mini Watch 1262.75 :
http://www.wholesale-watches.org/wristwatch-3276.html
Omega Constellation 95 Ladies Silver Watch 1272.30 :
http://www.wholesale-watches.org/wristwatch-3277.html
Omega Constellation 95 Ladies Champagne Watch 1272.10 :
http://www.wholesale-watches.org/wristwatch-3278.html
Omega Constellation Ladies Mini Watch 1262.30 :
http://www.wholesale-watches.org/wristwatch-3279.html
cheap ,lowest price , Wholesale Best Omega Constellation Ladies Watch
1372.10 Tag: Override minimum form height? Tag: 116979
Wholesale AAA Bulova Diamond and Sapphire Ladies Watch 96R16 Replica
Wholesale AAA Bulova Diamond and Sapphire Ladies Watch 96R16 Replica
Price Of Each Replica Watche from www.wholesale-watches.org is less
than $100, all waches are of AAA quality.
Wholesale Bulova Diamond and Sapphire Ladies Watch 96R16 :
http://www.wholesale-watches.org/wristwatch-4501.html
Wholesale Replica Watches : http://www.wholesale-watches.org/
Buy the Lower price Bulova Diamond and Sapphire Ladies Watch 96R16 in
toppest Replica . www.wholesale-watches.org helps you to save money!
Bulova-96R16 , Bulova Diamond and Sapphire Ladies Watch 96R16 ,
Replia , Cheap , Fake , imitation Bulova Diamond and Sapphire Ladies
Watch 96R16, Bulova Watches
Bulova Diamond and Sapphire Ladies Watch 96R16 Information :
Brand : Bulova Watches (http://www.wholesale-watches.org/
bulova-watches.html )
Gender : Ladies
Model : Bulova-96R16
Case Material : Stainless Steel
Case Diameter :
Dial Color : White Mother-of-pearl
Bezel : Diamonds And Sapphires
Movement : Quartz
Clasp : Stainless Steel
Water Resistant : 30m/100ft
Crystal : Mineral
Our Price : http://www.wholesale-watches.org/wristwatch-4501.html
Stainless steel case and bracelet. White mother-of-pearl dial. Bezel
set with diamonds and sapphires. Curved crystal. Buckle with safety
clasp. Case size 13mm x 20mm. Case thickness 6mm. Quartz movement.
Water resistant at 30 meters (100 feet). Bulova Diamond and Sapphire
Ladies Watch 96R16
Bulova Diamond and Sapphire Ladies Watch 96R16 in Bulova Watches
series won't be wholesale in China Replica Watches Wholesale, If you
want to order, please contact with us at wholesalewatch@hotmail.com
Thank you for choosing www.wholesale-watches.org as your reliable
dealer of quality waches including Bulova Diamond and Sapphire Ladies
Watch 96R16 . we guarantee every watch you receive will be exact watch
you ordered. Each watch sold enjoy one year Warranty for free repair.
Every order from aaa-replica-watches is shipped via EMS, the customer
is responsible for the shipping fee on the first order, but since the
second watch you buy from our site, the shipping cost is free. Please
note that If the total amount of payment is over $600(USD),BULOVA
DIAMOND AND SAPPHIRE LADIES WATCH 96R16, the customer is required to
contact our customer service before sending the money in case failed
payment. If you have any other questions please check our other pages
or feel free to email us by wholesalewatch@hotmail.com. Cheapest
Bulova-96R16
The Same Bulova Watches Series :
Bulova Diamond Gold-Tone Ladies Watch 98W05 :
http://www.wholesale-watches.org/wristwatch-4502.html
Bulova Diamond Black Mens Watch 96E02 :
http://www.wholesale-watches.org/wristwatch-4503.html
Bulova Diamond Gold-Tone Ladies Watch 97S47 :
http://www.wholesale-watches.org/wristwatch-4504.html
Bulova Diamond Gold-Tone Ladies Watch 97S59 :
http://www.wholesale-watches.org/wristwatch-4505.html
Bulova Diamond Two-Tone Heart Ladies Watch 98R80 :
http://www.wholesale-watches.org/wristwatch-4506.html
Bulova Diamond Moonphase Ladies Watch 96R51 :
http://www.wholesale-watches.org/wristwatch-4507.html
Bulova Diamond Two-Tone Heart Ladies Watch 98P11 :
http://www.wholesale-watches.org/wristwatch-4508.html
Bulova Diamond Ladies Watch 96R50 :
http://www.wholesale-watches.org/wristwatch-4509.html
Bulova Diamond Ladies Watch 96R48 :
http://www.wholesale-watches.org/wristwatch-4510.html
Bulova Diamond Chronograph Ladies Watch 96R32 :
http://www.wholesale-watches.org/wristwatch-4511.html
cheap ,lowest price , Wholesale Best Bulova Diamond and Sapphire
Ladies Watch 96R16 Tag: Override minimum form height? Tag: 116978
NullReferenceException from FolderBrowserDialog
Hi there,
My application, which uses the FolderBrowserDialog, sometimes throws a
NullReferenceException with the following call stack when calling
FolderBrowserDialog.ShowDialog():
at
System.Windows.Forms.UnsafeNativeMethods.Shell32.SHBrowseForFolder(BROWSEINFO
lpbi)
at System.Windows.Forms.FolderBrowserDialog.RunDialog(IntPtr hWndOwner)
at System.Windows.Forms.CommonDialog.ShowDialog(IWin32Window owner)
...
Any ideas what could be causing this?
Thank you! Tag: Override minimum form height? Tag: 116975
WinProc
Hi
I'am Trying to overrides WinProc to change the NonClient Area to use
my own skin
once i start the Debugging i can see the the changes, and then the
form will paint the standard windows nonClient Area
and form will be frozen
the code looks something like that
Public Class Form1
' API Declarations
Declare Function ScreenToClient Lib "user32" (ByVal hwnd As
Integer, ByRef lpPoint As Point) As Integer
Declare Function GetWindowDC Lib "user32" (ByVal hwnd As Integer)
As Integer
Declare Function GetWindowRect Lib "user32" (ByVal hwnd As
Integer, ByRef lpRect As Rectangle) As Integer
<System.Security.Permissions.PermissionSetAttribute(System.Security.Permissions.SecurityAction.Demand,
Name:="FullTrust")> _
Protected Overloads Overrides Sub WndProc(ByRef m As
System.Windows.Forms.Message)
'handle hits here
If m.Msg = 132 Then
ElseIf m.Msg = 133 Then
' (WM_NCPAINT)
Dim g As Graphics =
Graphics.FromHdc(GetWindowDC(Me.Handle))
Dim aRect2 As New Rectangle()
GetWindowRect(Me.Handle, aRect2)
Dim pt As New Point(aRect2.Left, aRect2.Top)
ScreenToClient(Me.Handle, pt)
Dim pt2 As New Point(aRect2.Right, aRect2.Bottom)
ScreenToClient(Me.Handle, pt2)
Dim aRect As New Rectangle(0, 0, aRect2.Right -
aRect2.Left, aRect2.Bottom - aRect2.Top)
Dim imgTopLeft As Image = Image.FromFile("c:\skins
\TopLeft.png")
Dim imgTopMid As Image = Image.FromFile("c:\skins
\TopMid.png")
Dim imgTopRight As Image = Image.FromFile("c:\skins
\TopRight.png")
Dim imgBottomLeft As Image = Image.FromFile("c:\skins
\BottomLeft.png")
Dim imgBottomMid As Image = Image.FromFile("c:\skins
\Bottom.png")
Dim imgBottomRight As Image = Image.FromFile("c:\skins
\BottomRight.png")
Dim imgRight As Image = Image.FromFile("c:\skins
\Right.png")
Dim imgLeft As Image = Image.FromFile("c:\skins\Left.png")
g.DrawImageUnscaled(imgTopLeft, 0, 0)
g.DrawImage(imgTopMid, imgTopLeft.Width, 0, (Width -
(imgTopRight.Width + imgTopLeft.Width) + 2), imgTopMid.Height)
g.DrawImage(imgTopRight, Width - imgTopRight.Width,
aRect.Top, imgTopRight.Width, imgTopRight.Height)
g.DrawImage(imgBottomLeft, aRect.Left, Height -
imgBottomLeft.Height, imgBottomLeft.Width, imgBottomLeft.Height)
g.DrawImage(imgBottomMid, imgBottomLeft.Width, Height -
imgBottomMid.Height, Width - imgBottomLeft.Width, imgBottomMid.Height)
g.DrawImage(imgBottomRight, Width - imgBottomRight.Width,
Height - imgBottomRight.Height, imgBottomRight.Width,
imgBottomRight.Height)
g.DrawImage(imgRight, Width - imgRight.Width,
imgTopRight.Height, imgRight.Width, Height - imgBottomRight.Height)
g.DrawImage(imgLeft, Left, imgTopLeft.Height,
imgLeft.Width, Height)
g.Dispose()
Else
MyBase.WndProc(m)
End If
End Sub
End Class Tag: Override minimum form height? Tag: 116970
Context menu on grid
How can I find out on which row of a grid that the user right-clicked? I
don't want to assume it was the selected row.
TIA,
--
-Will Tag: Override minimum form height? Tag: 116968
Why can't DataGridView Checkbox cast 0 to Int16?
OK, have a simple .Net 2.0 WinForm app, with a DataGridView, which contains a
checkbox bound to an Int16 (was a byte). For a certain user (who will be the
main user of this app), when clearing the checkbox, and then moving the
focus, generates an exception. The exception basically say that 0 is not a
valid value for an Int16. The user can tick the checkbox, and not raise an
error. It seems that 1 is a valid value.
Other users don't have this problem, and it's not linked to the PC being
used. Have had 2 users logon onto the same PC, and getting different results.
Roaming profiles are in use, so common sense says it's linked to the user's
profile. Checked the regional settings, and nothing stands out.
Should have said the OS is XP SP2.
So, does anyone have an ideas as what I need to check/change in the user's
profile?
Thanks in advance Tag: Override minimum form height? Tag: 116966
Tab control validation and losing events
Hi,
Hope someone can help me with this - been going round and round with no
progress.
I have a form with a tab control containing 2 tabs. Tab 1 has a panel
containing a text box and a save & cancel button. We have a validation event
on the panel to check the text field is valid and if not we output a message.
This all seems to work fine until there is an invalid entry in the textbox,
validation message is displayed and e.cancel is set to true. Although the tab
doesnt switch pages (correct behaviour) focus seems to be in the ether.....
The buttons within the panel will now not fire their click events. Note: If
no message is output (or an error provider is used) then the buttons events
fire correctly. There is no databinding etc.
So issue seems to be output of message in the validating event causes tab
control to lose track of focus? - Any one had this before? Help greatly
appreciated.
Thanks in advance - code below
Code:
private void pnlOwners_Validating(object sender, CancelEventArgs e)
{
e.Cancel = false;
if (_fieldsChanged)
{
e.Cancel = true;
MessageBox.Show("Correct error before proceeding",
this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
}
} Tag: Override minimum form height? Tag: 116963
Terminal Server 2003
I've developed a winform application which uses Crystal reports, everthing
works fine on WIN XP, VISTA SERVER2003, but when installed on a terminal
server, the reports want work, what can be the solution for this problem?
--
Best regards
Nicole Tag: Override minimum form height? Tag: 116962
Problems Background Printing PDF from C# Application
Hello,
We are having a lot of problems trying to print a PDF file in the background
using a C# application that is executed via SQL Server Agent. The output
should be printed to a local printer (HP Color LaserJet 1600) connected via a
USB port.
We have a C# application that calls System.Diagnostics.Process to run
Acrobat Reader (weâ??ve tried both v8.0.0 and v8.1.2), open an existing PDF
file, and send it to the local printer. The code is shown below.
System.Diagnostics.Process process = new System.Diagnostics.Process();
process.Refresh();
process.StartInfo.Arguments = "/t C:\Temp\TestPDF.pdf"; // and tried "/t
C:\Temp\TestPDF.pdf PrinterName"
process.StartInfo.CreateNoWindow = false;
//process.StartInfo.Domain;
//process.StartInfo.ErrorDialog = false;
process.StartInfo.FileName = "C:\\Program Files\\Adobe\\Reader
8.0\\Reader\\AcroRd32.exe";
//process.StartInfo.Password;
//process.StartInfo.UserName;
process.StartInfo.UseShellExecute = false;
//process.StartInfo.Verb = "Print";
process.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
process.StartInfo.WorkingDirectory = new
System.IO.FileInfo(m_PDFPathFile).DirectoryName;
process.Start();
Weâ??ve tried just about every combination of the process objects properties
trying to get the PDF file to print. But, it never works. The code executes
without error, just nothing ever shows up on the printer.
More infoâ?¦ Weâ??re executing our custom C# application via a SQL Server Agent
job. SQL Server Agent is running as Local System account. The Job Step Type
is Operating System (CmdExec), with Run as set to SQL Server Agent Account.
The command is simply the path and file name of our custom C# application
(e.g., C:\Temp\PrintPDF.exe).
Again, we get no errors/exception and no job failures, but the PDF never
gets printed.
How can we re-code or fix our situation?
What can be done/tried?
All help is appreciated. We are stuck.
Thanks. Tag: Override minimum form height? Tag: 116960
WebBrowser control
I'm trying to do my own scrolling with the WebBrowser control.
I can use the WebBrowser.Document.Window.ScrollTo method to scroll to a
specific position but how do I get my current scroll position?
I know when the document loads that I'm at scroll position 0,0. Then each
time I scroll (by 200 for example) I just keep a record of my new scroll
position.
This works until I get to the end of the document. The ScrollTo doesn't
return any feedback when it gets to the end of the document, so I don't know
when stop scrolling and when to stop adding 200 to my internal scroll
position.
Is there a way to read the current scroll position? Tag: Override minimum form height? Tag: 116959
Windows DPI scaling
Hi,
C# .NET 2.0
I'm developing a windows application that will run on a number of
machines typically with DPI of either 96 or 120.
By setting the AutoScaleMode on different forms to DPI I get the
required scaling results. However, I have one form that contains a
richtextbox that's anchored to top, left and bottom borders and where
I change the width of the richtextbox depending on values taken from a
PageSetupDialog control. Something like this:
this.pageWidth = this.pageSetupDialog1.PageSettings.Bounds.Width
-
this.pageSetupDialog1.PageSettings.Margins.Left
-
this.pageSetupDialog1.PageSettings.Margins.Right;
this.txtWritingPad.Width = pageWidth;
The problem now is that a single line of text that fits on one single
line in 96 dpi gets wrapped to the second line in 120 dpi. Font and
font size are the same. I need the text/font to appear the same on
both machines. i.e. on one line from left to right.
I thought that maybe because I was explicitly setting the width of the
control at run time I would have to call PerformAutoScale() but that
doesn't seem to have any effect. I'm obviously missing something. Can
anybody help?
Thanks,
Damien Tag: Override minimum form height? Tag: 116956
Books recommendations please
Hi
I need to develop winform database applications and wondering is these two
books will get me there;
Data Binding with Windows Forms 2.0: Programming Smart Client Data
Applications with .Net
http://www.amazon.co.uk/Data-Binding-Windows-Forms-2-0/dp/032126892X/ref=wl_it_dp?ie=UTF8&coliid=I2L84GECRS6E6P&colid=399925I1FY0N8
Windows Forms 2.0 Programming
http://www.amazon.co.uk/Windows-Forms-Programming-Chris-Sells/dp/0321267966/ref=wl_it_dp?ie=UTF8&coliid=I1RY8RDOG4LBP1&colid=399925I1FY0N8
I already have Bill's 'Hitchhiker's guide to VS and SQL Server'.
Any additional recommendations would be appreciated too. Basically anything
that will get me off your backs.
Thanks
Regards Tag: Override minimum form height? Tag: 116953
"schneider" <eschneider@community.nospam> wrote in message
news:ukYJaDNrIHA.4560@TK2MSFTNGP03.phx.gbl...
> Is there a way to Override minimum form height?
>
> It seem to have a minimum height of 27?
>
> Thanks,
>
> Schneider
>