=?iso-8859-1?Q?DataRow_-_SetValue_don=B4t_work?=
Hello Guys,
I need to set a default value in the first column of my=20
dataTable.
I tried to do it:
foreach (DataRow rw in tblAdiantamentos.Rows)
{
rw.ItemArray.SetValue("01122003",0);
}
//set datagrid dataSource property
dgAdiantamentos.DataSource =3D tblAdiantamentos;
but when I check values in my dataTable I notice nothing=20
happen (that aren=B4t any changes)
Anybody can help me ?
Tks=20
Jean Carlo
(Brazil) Tag: format a text box Tag: 59875
Hide() not working correctly
Hi,
My application should only ever display one form at a
time. To achieve this I navigate between forms using the
following logic:
From formA to formB -
formB.Show()
formA.Hide()
This is fine and works OK except in the following case:
If the form to be displayed (formB) takes a few seconds
to load, and in that time the user clicks on the current
form (formA) IN THE TASKBAR, the system displays formB
but does not hide formA. Both of the forms are displayed
in the taskbar, and both can be selected by clicking or
Alt+Tabbing.
I have put some debug in, and the form being hidden does
get the message, and it even thinks it has been hidden
(if your query the Visible property it is set to False,
even though it clearly IS visible).
This is becoming a real pain and I have not yet found a
suitab;e workaround. Can anyone help?
Thanks for any help. Tag: format a text box Tag: 59871
Child form disactivation on new data to datagrid! (Mainform jumps to TOP)
Hi,
I have notices forms activating/disactivating problems.
PLEASE HELP ME, it's very strange!
Try this:
1)Create MainForm+Datagrid(+new dataset assign to
datagrid)
2)Create Timer on MainForm + on timerTick add new data to
dataset (see below)
3)Create another form (child)
4)Execute all
ABNORMAL Behaviour:
Child form always jumps to background on TIMER TICK!!!
(MainForm jumps to TOP)
SW details:.NET framework 1.1.4322, C#,VStudio 2003
Source:
private void timer_Tick(object sender, System.EventArgs e)
{
DataRow row = dataset.Tables["Table"].NewRow();
row["Col1"] = "This is bug";
row["Col2"] = "child window deactivates!";
// this causes the deactivation of any child windows!
// BUT WHY!!! I do not wanna activate MainForm!!!!
dataset.Tables["Table"].Rows.Add(row);
}
best regards
Daniel Koci
+Other my-known Dataset Bugs:
1) See my record from 19.8.2003 (FRMWRK 1.1 - dataview
receives just ListChangedType.Reset instead of
ListChangedType.ItemChanged !!! (works fine in 1.0))
2) TabPage problems (Horizontal scrollbar on DataGrid
will not updates on TabPage when Page changed) Tag: format a text box Tag: 59868
Problem with property grid
Hi to everybody.I have a problem with the PropertyGrid
control.I want to display not all the properties of a
generic Control(Button,TextBox,ComboBox,ecc.).In general
I don't want to display only one category(Appearance,
Behavior,ecc.) but I want to chose directly which
properties to show.I've read that I can use the
SelectedObjects to put an array of object with some
properties in common with the SelectedObject,and only
properties in common for all the object will be
displayed.I've tryed to build an object with only some
properties and I've tryed to use like I've explain but it
doesn't work(it displays all the properties of the
control).Anyone has some idea to solve my problem?Thank's
to everybody Tag: format a text box Tag: 59867
ComboBox: After setting DataSource no Items
Hi,
after setting the DataSource of a combobox
mycombo.DataSource = myStringArray;
(for example in the load event method of the form)
it is not possible the set the selected item.
Setting the default value like
mycombo.Text = myStringArray[2];
or
mycombo.SelectedIndex = 2;
or
mycombo.SelectedText = myStringArray[2];
doesn't work.
This is because
mycombo.Items.Count = 0.
At what time will the items be filled ?
Is there a possibility to fill the items after setting the datasource ?
Thanks,
Kai Tag: format a text box Tag: 59866
summing a datagrid column
Hello,
I wish to find the sum of the values in a datagrid
and place the value in a text box.
I have a datagrid called dgorders and I want to sum
the third column "qty". Any ideas on how I can do this.
Thanx
Geri Tag: format a text box Tag: 59864
Toolbar flat style and double buffering
Hi,
The application I'm writing requires double buffering it
also requires a toolbar with its appearance set to flat.
However, this causes a problem because when you set the
following control styles:
SetStyle(ControlStyles.DoubleBuffer, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
SetStyle(ControlStyles.UserPaint,true);
I've looked into this and It think its because of the
WM_ERASEBKG not being called, has anyone got a fix for
this, I don't know how to manually send this message and
at what time?
John Tag: format a text box Tag: 59856
Lost/Gotfocus combobox
Hi,
I have a bizarre effect on my winform. I have a databound
combobox. The focus on my form is on another control.
When I click on the combobox with the mouse, the gotfocus
event is fired. So far so good. But when I use the <Tab>
button, first the lostfocus and then the gotfocus event
of the combobox is fired.
Is this normal and how to fix it?
Thanks
Kurt Vandevelde Tag: format a text box Tag: 59855
Combobox in a datagrid
Hi,
Is it possible de create a datagrid on a Winform where
the columns can contain a combobox instead of a simply
textzone?
Thanks
Kurt Vandevelde Tag: format a text box Tag: 59854
FEATURE REQUEST: Ability to have a STATIC size on a form across different machines
Hi,
Currently AutoScaleBaseSize is nothing but a pain in the gonads. It is
preventing us having a static form size across different machines (developer
and runtime). Can we have a way to override all this craap? We require a
static form size that isnt resized across machines whether in designer mode
or running on those machines.
Thanks. Tag: format a text box Tag: 59852
Implementation of RadioButton
Hi,
I'm implementing a component that is similar in
functionality to RadioButton. Basically it's a
RadioButton with a different visual representation and it
allows the developer to pick a maximum number of
simultaneously selected buttons. (So instead of just
allowing 1 of n buttons to be checked, you can allow 2 of
n buttons to be checked, etc.)
My question isn't really about how to implement that kind
of control. Rather, I'm curious to know how
RadioButton "know" to uncheck themselves when another
RadioButton in the same group is checked. Does each
RadioButton just go through the Parent.Controls collection
when it is checked? Maybe something like this?
RadioButton rb;
foreach (Control c in this.Parent.Controls)
if (typeof(c) == typeof(this))
{
rb = (RadioButton)(c);
if (rb.Checked)
rb.Checked = false;
}
Seems like there should be a better way to do this..
Would this get slow if the Parent.Controls collection were
large?
Thanks in advance,
Baldeep Tag: format a text box Tag: 59850
one big Puzzle.. Plz help me out in this...
i want to dropdown the menu at the runtime on the basis of
some other event such as user speech interactive commands..
i want to dropdown menu by coding at runtime without the
actual click on the menu bar....
Plz help me out in this coz this is my final yr project
and i got stuck in this .. plz tell me a way out...
bye.. Tag: format a text box Tag: 59846
Validating event
I have a form which contains a TextBox, and a 'submit' button which print
TextBox.Text to console
I added validating eventhandler to check if the Textbox is empty and set the
errorprovider if it is empty
and set CancelEventArgs.Cancel = true to make sure the user input something
however..it seems that the validating event only raised when the textbox is
in focus then lost focus
so if I show the form and click the 'submit' button immediately, the
validatin event will not be raised which means that I cannot make sure the
user entered something to the TextBox...
are there any methods to rise the validating event to the textbox or there
are better ways to handle this?
thx! Tag: format a text box Tag: 59844
Finding Nested Control's Parent Form?
Call me a fool but I couldn't find a way to find the form that was
ultimately the parent of a control when the control itself was nested.
I one case, I created an inherited Panel class. In it I needed to make
reference to the parent form and subscribe to its events. Unfortunately
using the control.Parent property only works if the control is directly
pasted onto the form. If my panel is nested inside of other
panels/controls, this isn't so easy. As such I wrote a class called
ParentFormFinder. (below)
Unfortunately, it is rather intensive and it seems a waste of processing
power. Am I missing some easier approach?
Since I have apparently been having memory leak issues in .NET I am
beginning to investigate my designs. I am wondering if this class might be
a culprit for dangling object references (namely to the event handler).
public class ParentFormFinder
{
private Control ctrl;
private Form form;
public event System.EventHandler FoundParentForm;
public ParentFormFinder(Control ctrl)
{
this.ctrl = ctrl;
this.ctrl.ParentChanged += new System.EventHandler(this_ParentChanged);
}
public Form Form
{
get{return this.form;}
}
public void Dispose()
{
this.Dispose(true);
}
protected void Dispose(bool explicitCall)
{
this.form = null;
this.ctrl = null;
}
private void OnFoundParentForm(object sender, System.EventArgs e)
{
if (this.FoundParentForm != null)
this.FoundParentForm(sender, e);
}
private void this_ParentChanged(object sender, System.EventArgs e)
{
Control ctrl = (Control)sender;
do
{
if (ctrl.Parent is Form)
{
this.form = (Form)ctrl.Parent;
this.OnFoundParentForm(this.form, e);
return;
}
else
{
if (ctrl.Parent == null)
{
ctrl.ParentChanged += new System.EventHandler(this_ParentChanged);
return;
}
else
ctrl = ctrl.Parent;
}
}while (true);
}
}
Mario T. Lanza
Clarity Information Architecture, Inc. Tag: format a text box Tag: 59839
Form_Load Event
Back in the good old VBn days a form showed itself AFTER the Load event was
processed.
In .NET, however, the loaded form is displayed (including interim states of
it) DURING the processing of the Load event.
Is there a way to prevent this?
Thank you Tag: format a text box Tag: 59831
How do I retrieve / request a Control's Value running on a WebForm ?
Hi all,
I have created a control that runs on a web form. This control is a
composite control comprising of other textboxes (public scope).
I have put it on a web form with the following code :
<OBJECT id="MyWebControl" height="300" width="300"
classid="http:MyWebControl.DLL#My.MyWebControl1"
VIEWASTEXT>
</OBJECT>
Everything is OK but when I submit the page to the Web Server, how do I
retrieve the public textboxes values so I can process them on the web server
?
Any help is appreciated.
Thank you.
Softwaremaker Tag: format a text box Tag: 59828
Scheduled Task or Not?
I've got a program (C#) that, if run as a scheduled task, should log
its information in the event log and otherwise run quietly, but if run
manually I want it to display progress and error information on the
screen.
Is there a way for a .NET program to determine whether it was run as a
scheduled task or manually, apart from adding a command line
parameter?
Pete Dunlap Tag: format a text box Tag: 59827
Refreshing a Crystal Report from a Viewer
Hi;
I am using a Crystal Report Viewer to display Crystal
Reports(rpt).
I want to refresh these reports based on a timer.
Inside the timer function i am calling
CrystalReportViewer.RefreshReport()
But this does not work..
Please help. Tag: format a text box Tag: 59825
Remove/restore columns in datagrid
Hi.
I am working on a control derived from the datagrid control. I was able to
remove columns from the datagrid by removing them from the original
datatable, but could not find how to restore them. How can I give to my
control the capability tp restore removed columns?
TIA,
Erik Cruz Tag: format a text box Tag: 59823
Problem / Bug?: MDI child forms looses MouseLeave events after visibility changed
Hello,
I have the following problem (bug?):
I have one MDI form which contains one Child form. On the child form
there is one textbox. The textbox has two eventhandlers:
- MouseEnter (set the background color to red)
- MouseLeave (set the background color back to white)
The MDI form shows upon startup the Childform and contains two button
- button1: shows the ChildForm
- button2: hides the childform
The problem:
When the application starts, the child form is show and the two events
on the textbox are working perfectly:
when you move the mouse over the textbox it turns red;
when you move the mouse away from the textbox it turns white.
Clicking on the buttons of the MDI forms hides/shows the childform.
BUT after the child form was hidden and shown again, the event
MouseLeave is not execute!
when you move the mouse over the textbox it turns red;
when you move the mouse away from the textbox NOTHING happens!
Why? What do I do wrong? Is this a bug?
All suggestions, information welcome!
Robbie De Sutter
The sourcecode to repeat the problem [in VB.NET]:
Code for the MDIForm (MDI form with two buttons)
Public Class Form1
Inherits System.Windows.Forms.Form
Private theChild As child
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
theChild = New child
theChild.MdiParent = Me
theChild.Show()
End Sub
[...]
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
theChild.Show()
'theChild.Visible = True '> NO SOLLUTION
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
theChild.Hide()
'theChild.Visible = False '> NO SOLLUTION
End Sub
End Class
Code for the ChildForm (normal Form with an TextBox)
Private Sub TextBox1_MouseEnter(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.MouseEnter
TextBox1.BackColor = Color.Red
End Sub
Private Sub TextBox1_MouseLeave(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.MouseLeave
TextBox1.BackColor = Color.White
End Sub Tag: format a text box Tag: 59804
Custom UITypeEditor for Color won't work...
Is there anything special with the Color type or any
other value type for that matter? I designed a custom
color picker and apply it to a property like this:
[Editor(typeof(myColorEditor), typeof(UITypeEditor))]
public Color SelectedColor
{
get {return this.selectedColor;}
set {this.selectedColor=value;}
}
and my editor is totally ignored. The default editor is
opened... Why??
Thank you!! Tag: format a text box Tag: 59792
Move buttons Dynamically on a Windows Form
Hi fellows,
Juz wondering if anyone could point me to useful links or resources that
explains how to drag and move a button all over a Windows Form ?
--
Thank you very much Tag: format a text box Tag: 59776
Multiple instances of an application
I have a .NET application that does data processing by
state (disconnected). The state to process is determined
by a command-line parameter. When I run multiple instances
of the application (which I need to be able to do), the
processing is handled fine. However, all instances after
the first one GPF when they complete their processing and
attempt to close.
Also -- I don't know if it is related, but the event log
contains this message for each app that GPF's: "Installing
the performance counter strings for .NETFramework failed.
The Error code is DWORD 0 of the Record Data."
Thanks for the input.
Russ Bishop
MCSD Tag: format a text box Tag: 59770
ListView Problem
I'm having a rather tedious problem with the listview control in visual
basic.net
I am trying to achive two simple procedures, I thought :)
1. I have only one column populated but still there is an extra empty column
listed to the right of the header. Is there no way to specify that I only
want a single column. Or is there a way to hide that unpopulated extra
column that I don't want.
2. How exactly does one reference the text or value of the selected sub
item. I would like to pass this text in my case to a function but I'm unable
to get it.
Sorry for the I'm sure simple questions, but I have googled my brains out
and been over the docs and can find nothing to point me in the right
direction.
Thanks in advance
--
Hunter Kirk
Twilight Technologies, L.L.C.
hunter@twilightech.com
http://www.twilightech.com Tag: format a text box Tag: 59768
Very basic question - where to store data for a Windows app?
I'm new to Windows Forms development (web-based development is my primary
area of focus).
I've been tasked to create a windows application that basically provided
users the ability to take surveys - kinda like a telemarketing-based survey
application.
My question is this: what is the best mechanism for storing the data that
users enter into the application? The options, that I'm aware of are:
1. MSDE (SQL Server Desktop Edition)
2. JET (MS Access-based database file)
3. XML
4. Serialized objects
I'm unable to use a standard client/server approach here, as the application
is considered "sometimes connected" - network access will not always be
available. So, the app will have to temporily store the data locally until a
network connection is found.
I'm looking for input on the pros/cons for the approaches listed above and
for any other options that are availabe. Also, pointers to online resources
in this area would be greatly appreciated.
Thanks in advance,
Scott
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =--- Tag: format a text box Tag: 59764
Working with windows applications
I=B4m working with C# and my question is:
How can i open a windows application having it=B4s path? or=20
hoy can i open a file with it =B4s windows default=20
application having the path of that file?
For example, if someone clicks on a word file i want=20
MSWord to open that file.
Thanks for any help. Tag: format a text box Tag: 59760
Missing Events in C#
I am learning C# for the Compact Framework. I put a PictureBox on a form.
But when I click on the events button(on the Properties Tab), only
ParentChanged, Validated and Validating are listed. There is no click event.
But if I manually code for a Click event, it works. I added this line after
the call to InitializeComponent()
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
This works but I am curious as why it is not listed on the properties tab
(its documented as a valid event)
Thanks
Srinivas Tag: format a text box Tag: 59758
save Excel with a windows form
I have a windows form that traps an "before save" event in
Excel 2000. What I would like to do is save the Excel in
SQL Server by calling a web service. I thought I could
have serialized Excel and send it to the web service as a
string for database storage, but it seems that Excel
cannot be serialized. This windows form will be a no
touch deployment application so any extra software would
be difficult.
Any ideas?
Thanks,
Shane Tag: format a text box Tag: 59755
Updating a Windows DataGrid - with a stored proc. which has multiple joins
Hello Everyone,
I have a datagrid which is built based on a combobox.Text
input. The data is coming from a stored procedure which
has several joins ,to make the info more readable.
However, I am only interested in editing fields in the
table supplied by the combobox.Text.
From what I have read you can use the command builder --
ONLY-- if you are selecting from one table. Is that
correct?
Is there a way to tell .NET Framework which table is the
primary table and can be edited?
Thank You in advance for Your Help,
Ken Tag: format a text box Tag: 59750
Application.run issue
I have an application that I do NOT want the form to be visible as this is a
background application. I set the forms Visible property to false in the
forms constructor. The application places an icon in the System Tray that
has a menu to show the form if the user wishes to see it. I'm displaying
the form by calling Application.Run ( form ). This forces the form to be
visible. I overrode the OnVisibleChanged event in the form and it is called
immedialely after the Application.Run call.
Does anyone know a way to keep the form hidden?
Thanks in advance
Ken Tag: format a text box Tag: 59749
DataBinding could not find a row in the list ... ?
I get the following exception message when I try to reopn
a form
window after closing it down (while the main MDI window
is still running)
"An unhandled exception of type 'System.Exception'
occurred in
system.windows.forms.dll
Additional information: DataBinding could not find a row
in the list
that is suitable for all bindings"
This message goes away when I unbind the datagrid object
on the form
from the datasource & datamember. This datagrid is
bind to the Details DataRelation. whereas rest of the form
is bind to
the Master DataTable. Both the master and the
DetailRelation table are in the same dataset.
there is nothing fancy about the datagrid object it shows
int type
fields only and no checkbox or textboxes in it.
I dont know where to go from here. I have researched this
error in
other newsgroup postings and nothing conclusive has
been talked about it.
Thanks in advance
Aamir. Tag: format a text box Tag: 59748
Databinding - Refresh Problem
I want to bind a control to a dataset that is inside
another object. When the dataset in the object changes
the changes are not reflected in my control. See the code
below for more details...
public class WinForm : System.Windows.Forms.Form
{
MyClass myObj;
public WinForm()
{ ...
myObj = new MyClass();
txt.DataBindings.Add(new System.Windows.Forms.Binding
("Text", myObj.myDS, "MyTable.MyField"));
...
}
// if changes are made to myObj.myDS the text inside
the textbox won't change...
}
public class MyClass
{
public MyDS myDS;
public MyClass()
{
myDS = new MyDS();
myDA.Fill(myDS);
}
}
Any idea of what is wrong?
Thanks a lot!
Marc Tag: format a text box Tag: 59746
PropertyGrid Contol localized DisplayName
I'm Using the PropertyGrid Contol , and have a requirement to display a
localized property name.
Therefore My Classes Implement ICustomTypeDescriptor, and return a custom
PropertyDescriptor Collection,
The issues is that in the Derived PropertyDescriptor object when overriding
the "DisplayName" property it causes the PropertyGrid to call the
"DisplayName" Property an inordinate number of times, which then makes the
PropertyGrid, very slow and unusable.
code Snippet
ICustomTypeDescriptor.
public PropertyDescriptorCollection GetProperties(Attribute[] attributes) {
.Returns new PropertyDescriptorCollection containing MyPropertyDescriptor
objects
}
public class MyPropertyDescriptor : PropertyDescriptor
public override string DisplayName {
get{return "Overriden DisplayName"}
}
Worth mentioning, if I comment out the DisplayName Override Property
And run the code, then the grid functions as usual?
Any one have any idea's why DisplayName gets called again and again, and how
to prevent it?
Cheers
Brett Tag: format a text box Tag: 59742
Customizing textbox
Is it possible to draw onto the textbox? I tried drawing
with a paint delegate and overriding the paint method.
The textbox still looks as it did before. It would be
nice to be able to create textbox with variable font
colors along with any graphics extra.
Thanks,
Brad Tag: format a text box Tag: 59740
Image serialization (not solved)...
Here I come again with this question. I posted this in
many forums and nobody gave an answer. Maybe there is no
answer?
So here goes: I use a custom CodeDomSerializer to add
serialization to some members of a colection member of a
custom control. One of these members is an Image Type. I
use SerializeResource to actualy store the image and
SerializeToExpression to create the deserialization code.
It all works out fine *as long as* the ResourceManager
object (resources) is already created on the parent form.
This is the same object that gets created when you change
the backgroundImage of the form. I did some reflection in
the assemblies and I found out an internal class called
SerializeResourceManager that seems to be doing this job
(of checking if the ResourceManager object exists and if
not create it).
So the question is, from inside the CodeDomSerializer of
a custom control, how can I access and check if the
ResourceManager object exists as a member of the parent
form and if not to create it? Do I need to access the
DesignerHost? Anybody has any idea?
Thank you!! Tag: format a text box Tag: 59738
Pls hlp urgent.Accessing one .net exe from another, assume both are running
hi
i have two .net exe applications running, both are using
common dlls between them.
i want to access some forms of one application
from another application.
i know using reflection we can instantiate
any class of any exe.
but this will create instance in the starter
exe. but i want to open the screen asynchronously
any idea/directions would be very much helpful
Thanks to each one of you who spend sometime
in reading/replying this.. thread..
Expecting your interactions
Bye
Sahridhayan
chennai,India Tag: format a text box Tag: 59736
Converting long ip to quad-dof ip ?
Is there any api call to do this faster than a function?
couldnt find any in system.net, i have a function doing
it now but i bet the framework could do it faster for
me... thanks Tag: format a text box Tag: 59732
Gant Type Component
Hi there
I am looking for a .net component for something similar to a gant chart ,
however the objects must be to be linked back to a slq db and have events
that I can set in my own menus, if anyone knows of such a component or
complete package plz let me know.
ThankX Tag: format a text box Tag: 59727
Validating event in windows forms
Hi,
i've a problem with Validating event.
i've got a project with one form and 2 textbox controls.
Control's propertys:
- Textbox1.CausesValidation = true
- Textbox1.CausesValidation = true
- Form1.CausesValidation = false
Code in Validating Event in textbox1 and textbox2.
MsgBox("Error")
When i try to change the focus from textbox1 to textbox2
or viceversa the message appears. Ok. But, when i press
the control box to close de form (button X) the message
appears too and the form doesn't close. Why?
Thanks. (I'm sorry but my english is not good) Tag: format a text box Tag: 59725
change the backcolor of a column in a datagrid
Hello I have a datagrid textboxcolumn setup as follows:
Dim tcJobkey As New DataGridTextBoxColumn
tcJobkey.MappingName = "Jobkey"
tcJobkey.Width = 50
tcJobkey.HeaderText = "Job key"
tcJobkey.ReadOnly = True
Please could you tell me how to set the back colour of
this particular column, if this is possible.
Thanx
Geraldine Tag: format a text box Tag: 59721
Windows message queue question
Hi all!
I'm writing a windows application, that contains a control that shows a
bitmap. The bitmap is painted in the controls OnPaint method, using the
Graphics.DrawImage method. It is possible to drag the bitmap around inside
the control, using the mouse. While dragging the image, I call the controls'
Invalidate method every time i get a MouseMove-event. So far so good. The
problem is, that, when the image is large and I drag it around and then stop
moving the mouse, the image often still keeps moving over the control for a
few more seconds. I guess, this is caused by MouseMove events, still
contained in the applications message queue. A profiling utility showed,
that OnPaint was called exactly as often as MouseMove. I was surprised about
that, since I thought that OnPaint would be called asynchronously and only
when there is time for.
Can anybody explain this to me? How can it happen, that there are MouseMove
events in the queue for such a long time and why is OnPaint obviously called
every single time, Invalidate is called? (I don't call Update!)
Is there a possibility, to drop all MouseMove and Paint events, currently
contained in the message queue, except the last ones?
Does anyone know another solution for the problem?
If this is the wrong NG for my question, wher else should I post it?
Thanks for any comments
Markus Tag: format a text box Tag: 59719
detecting a change in the datagrid
Hello,
could you tell me how to detect a change in the
datagrid (i.e. when you actually change the data and click
the pen symbol in the grid and not when you just tab to
the next field). Therefore datagrid_currentcellchanged
does not work.
Thanx in advance
Robert Tag: format a text box Tag: 59717
"uneditable" ComboBox
I use the builtin ComboBox...the user can type in any value he/she wants..
can I limit it to Items I provided?
thx.. Tag: format a text box Tag: 59716
User authentication in Web Service calls from a remote NTD app
I am developing a Windows Forms application that makes
requests to a web service and in return receives
configuration data that is user specific, i.e. based on
the user's window's authenication on the server side
domain. My problem is that I am unaware as to how I
should configure the app so that when it calls into the
web service, the web server will be able to identify the
user. Initially the application will be running on the
same domain either over a LAN or though a VPN connection
although it is anticipated that in the future connections
may be made from a m/c outside this remit although the
latter scenario does not have a high priority right now.
Any illumination on this topic will be gratefully
received. Thank you. Tag: format a text box Tag: 59714
How to get parent control
e.g. I have a Form which contains a GroupBox which in turn contains a Custom
Control that inherits from Button
I can use this.ParentForm to get the From
but how can I get the GroupBox (in this case only) (or any other control
that contains the custom control)
tjhx! Tag: format a text box Tag: 59712
Cannot remove windows form from .net project
I had a windows form named "FormOrdersList" that I
deleted from the .net project. During the deletion i was
asked wether I wanted to update something on the very
same form (I dont remember what it was) and I just
clicked "yes" which I believed to be the default.
Then I tried to add an inherited form with the
name "FormOrdersList". I get the response that
FormsOrderList cannot be added because it exists in the
project from before.
I then try to add a normal (not inherited) windows form
named "FormOrdersList". This works fine as well as
deletion.
But when I try to add "FormOrdersList" as inherited form
again I get the respons that the form exists in the
project and cannot be added. What can I do to remove all
garbage in the .net project for the old form??
Regards
Tore Tag: format a text box Tag: 59709
Passing parameter to Smart Client application
Hi
I am creating a smart client application. The requirement
is as such....An asp page gets loaded.(NOTE: an asp page
gets loaded not aspx page). This page is actually a search
page in which the user enters some input in a textbox. On
the basis of the value entered, some results are displayed
in form of links.On clicking the link, i want to call a
smart client application by passing in some parameter that
is returned along with the serach results. What i am doing
is on clicking the resulted link, i am calling an aspx
page.(NOTE: i am loading an aspx page. not asp page).
Which in turn calls the smart client application. But the
issue is that i am not able to pass the parameter to the
exe.
I need to do this because my smart client application does
something on the basis of this parameter.
Does anyone has any idea on how to pass parameter to the
exe from the aspx page and how to use the parameter inside
the exe.
Thanks
Suvendu Tag: format a text box Tag: 59705
DrawReversibleFrame draws on VS.Net not my form
I am drawing in a picturebox on a form using
DrawReversibleFrame and DrawReversibleLine. It used to
draw fine on the picturebox, now all of a sudden it does
not appear on my form or application, but on VS.NET behind
my application. Has anyone seen this behaviour, and/or is
there any form/app settings that would affect this? Thanks. Tag: format a text box Tag: 59703
can I have A datagrid that is invisible
HI all
can I have A datagrid that is invisible, inside that datagrid, i want to
have serveral datagrids that are group by some headers
Jason Tag: format a text box Tag: 59702
Hello,
I have a text box called ordertotal how do I get this
to display a currency value to 2 decimal places.
* "Robert Batt" <rbatt@btinternet.com> scripsit:
> I have a text box called ordertotal how do I get this
> to display a currency value to 2 decimal places.