Resetting Combo to original state
Hello,
I'm using a combo box and some text boxes on an input form. When the user
submits the input, all the textboxes should be cleared & the combo box reset
to the way it was originally displayed (order desc.)
How do I 'refresh' to combo box to display as it did? It is bound to a
dataset via DisplayMember & ValueMember so it was not filled
programmatically. How do I do this programmatically? (or not?)
Thanks in advance for any clues.
Ant Tag: Page setup dialog Tag: 97167
Richtextbox control question
Is there anyway to create similar behaviour to BeginUpdate and EndUpdate in
a richtextbox control? I've seen a few work arounds on the net but they use
unmanaged code.
Any help would be appreciated,
Chris Tag: Page setup dialog Tag: 97165
Form Loading Issue - VS.NET 2003
Hello,
I have a dialog in my VB.NET application that has some controls for
configuration and an "Apply" button. The design calls for the Apply button
to be enabled only after the user has made changes to the settings. To do
this the change events for each control are used and the Apply button
enabled when any control raises a change event. The problem is that when the
form loads and default values are output the controls (correctly) fire
change events. Is there a mechanism to get around this, so that only user
changes enable the Apply button?
Thanks,
Sid. Tag: Page setup dialog Tag: 97163
DataGridView automatically selects first row
I'm setting the datasource of a DataGridView to a datatable. This
loads the grid correctly but it automatically selects the first row in
the grid, triggering the SelectionChanged event. Is there a way to
stop the grid from automatically selecting the first row?
Thanks. Tag: Page setup dialog Tag: 97161
ComboBox design-time DataBinding setting questions.
These setting mystify me for these reasons.
*SelectedItem* - Help says that 'SelectedItem' gets or sets the
currently selected item in the combobox.
*SelectedValue* - Help says that 'SelectedValue' gets or sets the value
of the member property specified by the ValueMember property.
*ValueMember* - Help says that the 'ValueMember' Gets or sets the
property to use as the actual value for the items in the ListControl.
The above three properties are described as results of runtime events!
What are they doing in the properties section of the ComboBox?????
How do I use them to sync a databound combobox on a form with the
current bound row on the form?
Please help me understand how to use these settings?
Thank you,
dbuchanan Tag: Page setup dialog Tag: 97159
maximized MDI Child position shifts
Hi.
I'm using VS2005, Framwork 2.0. I have an MDI app. The child forms
are maximized within the parent. The child forms have the controlbox
property set to false and the text property is empty.
When my child form opens, the top 40 pixels or so get covered up by the
parent. It seems that the child form is shifted up. So I changed my
child form so that all controls are shifted 40 pixels down, leaving 40
pixels of empty space at the top. When I do this, the child form shows
up correctly as the empty space gets covered up rather than my
controls.
But once and a while (I haven't found the pattern yet) the child form
will shift back down that 40 pixels leaving me with blank space up top
and covered controls down below. Has anyone else seen this behavior?
I have noticed that if I put a value in for the text property of the
child form, I don't have to shift my controls down 40 pixels and I
don't get the random shifting. But the parent form takes this child
text property and appends it to it's own text property in brackets.
Mabye the answer is to put something in the child text property and
somehow override how the parent writes it's text property? Can someone
help me on how to do this?
Thanks in advance. Tag: Page setup dialog Tag: 97158
Dll Reference Performance
Are there any performance issues, if we have many dll reference added to our
project.
Any way, does it take more time to load the application if we have many dll
reference added to a project, even though we don't use at application load.
Does more dll takes more time to load.
If we merge many dll into one does it improve the performance.
Our application takes long time to load, and we are doing nothing at
startup. We are using "no touch deployment".
Please suggest any way to load the application faster.
Any help greatly appreciated.
Dan Tag: Page setup dialog Tag: 97155
Making a Winforms app behave like a Console app
I am attempting to add a "console mode" to my Winforms app. My intention is
that when I start the app with a special switch (for example "myapp.exe
/batch") to does not launch a graphical UI but instead just displays console
messages.
My first guess was to simply change the Main method of the startup class to
do something like this...
if (batchMode)
{
Console.WriteLine("Now in batch mode");
...
}
else
{
MainForm.Run(); // Launch graphical user interface
}
Unfortunately, it looks like my app does not behave like a real console mode
app in either case. When I execute the app from the command line, the app
returns immediately and text output by Console.Write() does not appear
anywhere.
Setting the app as a Console mode application does not give me what I want
either. With this mode, a big black console output box appears even when in
"GUI mode".
Is there a way to build one executable that supports both modes and
dynamically switches at runtime? Tag: Page setup dialog Tag: 97151
Sync databound combobox to current bound record in form
VS2005
I've been reading all the help I can on the topic (MSDN, other) but I
can't make sense of this.
Desired behavior;
The user is to choose from the displayed list of the databound combobox
and the coresponding 'Id' from the lookup table is to be inserted into
the field of the new record.
I have two simple tables. "tblPerson" is the data table. The lookup
table is "lkpPersonType".
The combobox dropdownstyle is "dropdownlist" to limit the user to the
list.
Here are the two tables
"tblPerson"
Id int IDENTITY (1, 1) NOT NULL ,
Name varchar(50),
Address varchar(50),
fkPersonTypeId smallint
"lkpPersonType"
pkPersonTypeId smallint IDENTITY (1, 1) NOT NULL ,
Type varchar(50) NOT NULL ,
The form has two binding sources "TblPersonBindingSource" for the data
table and "lkpPersonTypeBindingSource" for the lookup table.
The Display Member of the combobox is the "Type" field and the value
member is "pkPersonTypeId" field.
The Text property of the combobox is set to the "fkPersonTypeId" of the
table "tblPerson".
The next parts I am unsure of...
I did not set the Selected Value (???)
I set the Selected Item to the "Type" field of the lookup table
lkpPersonType
When I run the app the combobox populates. The data seems to display
properly for the first record, but the combobox does not cycle through
the values I know are assigned to it for the other records. In other
words it is not properly bound. However there is a relationship between
the two tables in the dataset, but the relationship is not specifically
refered to in the form.
Here is my code in the load event;
\\
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.TblPersonTableAdapter.Fill(Me.DataSet1.tblPerson)
Me.LkpPersonTypeTableAdapter.Fill(Me.DataSet1.lkpPersonType)
Me.FkPersonTypeIdComboBox.DataSource =
Me.lkpPersonTypeBindingSource
Me.FkPersonTypeIdComboBox.DisplayMember = "Type"
Me.FkPersonTypeIdComboBox.ValueMember = "pkPersonTypeId"
'Me.FkPersonTypeIdComboBox.SelectedValue = ???
'Me.FkPersonTypeIdComboBox.SelectedItem = "Type"
Me.FkPersonTypeIdComboBox.Text =
"TblPersonBindingSource.fkPersonTypeId"
End Sub
//
Please help me make some sense of this and get it working.
Thank you,
dbuchanan Tag: Page setup dialog Tag: 97149
XP Visual Styles in 2005
I'm trying to set the application to use XP visual styles, but in the
properties page I tried to set it and I get the following:
Startup object must be a form when 'Enable application framework' is
checked. I have a sub main starting up the application and in there it
determines which portal the user is eligible to use. So how do I get around
this issue with having a form being my startup?
Thanks Tag: Page setup dialog Tag: 97148
Form Gradient Background
Is the code below the proper way to achieve a LinearGradient
Background on a form?
Private Sub MyForm_Paint(ByVal sender As Object, ByVal e As
PaintEventArgs) Handles Me.Paint
Dim oBrush As New LinearGradientBrush(Me.ClientRectangle,
Color.AliceBlue, Color.CornflowerBlue, LinearGradientMode.Vertical)
e.Graphics.FillRectangle(oBrush, Me.ClientRectangle)
oBrush.Dispose()
end sub
The reason I ask is because it looks like the Paint event is fired one
time for each control on the form. Tag: Page setup dialog Tag: 97147
ClickOnce Deployments and XML DataSources
I have been trying to deploy a ClickOnce application -ONLINE- with an XML
datasource which contains some stringtext. Any way, i have the Build Action
set to "content" and the Copy to Output directory to "Copy Always". the
applicaton runs fine locally but when i deploy it I get a file not found
error. Is their a best practice for deploying files either XMl or text with a
click once applicaiton? (run Online or work offline?) Tag: Page setup dialog Tag: 97145
How can I find BindingSource has some changed data.
Hi,
In my WinForms application, I have a set of controls that are bound to a
BindingSource control.
When the user closes the form, I need to ask him if he wants to save data.
The problem is I cannot find anyway to check if the value of any textboxes
is changed!
Obviously checking DataSet.HasChange is not adequate. The reason is that the
user might be in middle of adding or editing a record so the record has not
been reflected to underlying dataset yet, but user accidentally clicks on
form close button.
Any help would be appreciated,
Alan Tag: Page setup dialog Tag: 97142
MDI Child Forms -- Diffrent Behavior in new Framework
I have an exsiting MDI application. I have the when the child is called from
the Parent, I set it's DockStyle to fill, I also have the child form set to
maximized
In VS 2003 and 1.1 this works the way I want it to, the child form is
maximized whithin the parent so that a title bar is not displayed nor is a
window border, it looks like it's a panel in the parent form.
In VS 2005 and 2.0 it will not draw this way, no matter what I set the
window size property to, the child still draws as a window within the parent
leaving a thin border where it's docked in the parent.
Any idea what I need to do to make it function like the 1.1 version?
Thanks,
Justin Tag: Page setup dialog Tag: 97141
Set Text in DropDown
Hello,
I have a DropDown that is bound with a array containing 3 strings:
First, Last, All. These options indicate how many objects the user
wants to analyze. So, the user shoud choose one of these options, or
type a number.
These information is then saved, to be reloaded later.
My problem is to load the configuration when a number was typed. I've
the DropDown bound and I want to write the number in the text field.
I'm doing the following:
CB_Counter.Text= counter.MaxValue.ToString();
but this doesn't work, because the selectedItem is not -1.... I've
tryed to do CB_Counter.SelectedIndex = -1;
but nothing happens, and the SelectedIndex remains 0.
Hope you can help me, thanks in advance!
ACC Tag: Page setup dialog Tag: 97133
Problem with printing and PrintControllerWithStatusDialog
I have a problem with printing and the PrintControllerWithStatusDialog
class.
I have installed the Danish language pack (on and English language OS) and
set System.Threading.Thread.CurrentThread.CurrentUICulture to Danish, but
only part of the dialogbox show up in Danish. Only the caption is in Danish,
the rest is still in English.
How do i make the printing progress dialog show up in the UICulture I have
selected for my application?
Per K. Jensen Tag: Page setup dialog Tag: 97130
fill dataset with stor pro
Dear all
I create one stored procedure have two select statement on it
Then i want to fill one dataset(with two datatable) by this stored
procedure, how can it do? Tag: Page setup dialog Tag: 97128
How to compare two string
How to compare two string
e.g
i compare two string
e.g User == user is true
however i want User == user is false by 'U' and 'u'
do u know what i said Tag: Page setup dialog Tag: 97124
Does anyone have an example of the UndoEngine workign with a custom IComponentChangeService implementation?
Just trying to figure out how to get a service working that has no
viable public methods... My current problem is that nothign ever gets
added to the undo stack... All of the other methods are getting
called. So my base assumption right now that is that my custom
implementation is either preventing the UndoEngine service from getting
called or that the designer example from MS that doesn't use a designer
class, is unaware of the UndoEngine.
ANyway, my head for the designer class is this:
public class RootDesigner : IContainer, IDesignerHost,
IDesignerLoaderHost,
IComponentChangeService, IExtenderProviderService,
IToolboxUser, IDesignerEventService
{
Changing my OnChanged event to trigger the UndoEngine is possible, I'll
have to make some public accessor methods on the UndoEngien
implementation. However, currently my changed event get's called more
than once for 1 user operation. In the case of coping, 1 for the copy
and 3 or 4 more for changing properties... This of course would not be
a very optimal implementation of undo to have 4 entries for 1 user
change. :(
Anyways, any help appreciated. Tag: Page setup dialog Tag: 97122
Use images in TabControl/TabPages with Visual Studio 2005
Hi
How can I use a image in the TabControl/TabPages (not only text!) with
Visual Studio 2005? Is that possible?
Thanks and Regards
Dominik Tag: Page setup dialog Tag: 97121
populating combo with ds
Hi, I'm trying to populate a combo with a typed dataset (I am filling the
dataset in the form load) by using the databindings , (Selected Item &
Selected value) I get a blank combo box. (Unless I bind the text property,
but then I only get the first row as the combo text.)
Am i missing a step?
Many thanks for any answers
Ant Tag: Page setup dialog Tag: 97119
Resizing Form
Hi,
I am having a number of panels containing other panels and controls on
my form. When I resize my form, the redrawing is quite slow.
How do I properly handle this so that it redraws form faster when I
resize it? I am using VS2005 and C#
Any help wll be appreciated
Dino Tag: Page setup dialog Tag: 97118
ReportViewer & PageSettings.HardMarginX
In a report, I tell a table or a text box to print at specific coordinates
but it is off. How do I teach ReportViewer to take PageSettings.HardMarginX
and PageSettings.HardMarginY into consideration?
This occurs in .NET Framework 2.0. Tag: Page setup dialog Tag: 97117
How many Dll loaded when form start
Hi Gurus,
Is there any way to find out how many Dll got loaded when my application
started.
Any help greatly appreciated.
Thanks, Dan Tag: Page setup dialog Tag: 97112
How do I fin that Form.Show() is already called?
Hi,
What would be the best way to find if Form.Show() is already called?
If I call Form.Show() methid several times, does it have any side effects?
Does it call eny events?
Than k you,
Alan Tag: Page setup dialog Tag: 97110
Ampersand as Ampersand in mdi tab
I have an application that uses mdi. If a file that is an mdi child has an
ampersand in the name of the file, the ampersand is getting read as a hotkey
in the tab text.
Does anyone know of a way in vb.net to make sure that the ampersand is
represented as an ampersand and not as a hotkey.
Thanks for your help!
-J Tag: Page setup dialog Tag: 97101
multiple BindingNavigators on a single Form?
Is it possible to get multiple BindingNavigators on a single form, in that
there is a TableLayoutPanel oder mulitple Panels and each section can hold
its own BindingNavigator.
When using a DataSource and Drag&Drop Databinding, I failed.
thanks herbert Tag: Page setup dialog Tag: 97100
Autocomplete textbox
Hello all!
I'm looking for ideas on implementing a textbox with autocomplete
functionality, just like the one found in Excel.
As the user types values into the textbox a lookup for matching values
is performed. For example lets assume that the user types the character
'1' and that the candidate values are '01', '02', '03', '10', '12' etc.
I need the textbox to display the first candidate value that partially matches
the characters typed ('01'). The cursor should be located at the end of the
user typed value (1|0) and the rest of the text must be selected.
As the user goes on typing, the selected text is replaced with the typed
character and the lookup
is performed again.
I am very close. I use the Textbox.SelectionStart and
Textbox.SelectionLength properties but the problem is that the caret is
allways placed at the end of the selection when I need it to be located at
the begining.
Any Ideas?
Thanks!
PS: I cannot use a combobox! Tag: Page setup dialog Tag: 97098
AutoClose = False behaves strange
Hi.
Does AutoClose property works for ContextMenuStrip ?
Steps to reproduce:
1. Create new Windows Application Project
2. Add ContextMenuStrip.
2.1 Add some items (ToolStripMenuItems)
2.2. Set AutoClose = False
3. Set Form1.ContextMenuStrip = contextMenuStrip1
Run the project and rightclick the form. Context Menu does not appear for
me.
If you set AutoClose = True (default value) - everything works fine.
Thank You. Tag: Page setup dialog Tag: 97096
Two values for combo box
Hi,
Firstly, I'm using C# if that will make a difference to the answer...
Is there any way you can assign two values for a combol box like in the vb6
'old days', so you have say, a string 'UserName' displayed in the combo box,
but that returns an integer 'userID' for that selection?
If not, what would be the best way to impliment this? An array? I am wanting
to use the Datareader, holding two columns of data to populate the combo box.
Any ideas would be most appreciated
Many thanks in advance
Ant Tag: Page setup dialog Tag: 97093
Newbie User Interface hangs in multi-thread app
Hi,
* Apologies for reposting this from .NET Academic *
I am having problems updatingh the user interface in a multi-threaded
application.
BACKGROUND
My App has a user interface (the starting class containing main) and a
CPU class to handle many asynchronous comms routines.
The user interface will be kept updated on the status of the comms by the
CPU class.
My user interface creates an instance of a class called CPU and passes itself
in the constructor this way the CPU can update the user interface by calling
a method of UI
PROBLEM
The user interface is becoming unresponsvie.
The cursor turns to the hour glass and it doesnt repaint
Although all the comms threads run happily in the background as soon as
the CPU tries to call the UpdateScreen method the UI hangs.
ASSISTANCE REQUIRED
Could you please advise me on how i should go about resolving such a problem.
I may well be using bad coding strtegy so pleas advise as you see fit on any
aspect.
Thanks,
Shaun
PSEUDO CODE
// within the UI class
private CPU theCPU;
public UI()
{
theCPU = new CPU(this);
}
UpdateScreen(string status)
{
textBox1.Text = status;
panel1.Visible= ! panel1.Visible;
}
// within the CPU class
public CPU (UI userInterface)
{
this.userInterface = userInterface;
// start threads to run async comms
}
private void ReceivedStatusChange()
{
userInterface.UpdateScreen("Some new status info");
} Tag: Page setup dialog Tag: 97091
Hiding MDI 'sunken' border
Hi,
I have seen some code which is basically GetWindowLong + SetWindowLong with
AND NOT ws_ex_clientedge, but it either removes the caption or nothing at
all.
Jared Tag: Page setup dialog Tag: 97088
CloneMenu in ToolStripMenuItem?
In the framework 1.1 I liked using CloneMenu() to clone menu items from a
main menu to a contenxt menu during a contenxt menu pop up. Is there anything
like CloneMenu in 2.0 for ToolStripMenuItem? Tag: Page setup dialog Tag: 97082
ComboBox and Tab character '\t'
Hi,
I am trying to show TAB character (char(9) or '\t') in a combobox dropdown
list, but it doesn't show it. Is there anyway to show '\t' as a TAB in
dropdown list text?
If I can show \t in dropdown text, then I can make it like multicolumn list.
This trick used to work back in win16 days.
Thank you,
Alan Tag: Page setup dialog Tag: 97081
Tactics for Debugging Custom Components with CodeDom Serialized State
I have a custom component which has a complex internal state that is serialized using CodeDom serialization. It is part of a library
used in a moderately complex project. The component has a custom design-time interface displayed within VS2003. All of the library
assemblies are loaded into the global assembly cache on my development machine.
This is all under VS2003 and .NET 1.1.
Unfortunately, for reasons I have not been able to fathom, the project is very "touchy". Changes to any one of the library
assemblies (there are 17) tends to break the deserialization process. I suspect this is due to known problems with VS2003's
synchronization of changed global cache assemblies.
The resulting error messages are not at all helpful (e.g., Method not found, object cannot be converted to target type). What's
worse, I can't seem to "break" on where the problem is occuring, and single-stepping through the component's initialization process
doesn't run into any problems.
The only clue I've been able to find is that commenting out the following line in InitializeComponent() makes the "object cannot be
converted to target type" error message go away):
this.AccessControl = new OlbertMcHughLLC.DBFramework.Security.AccessControl("acl", "idnum", "name", "acl_detail", "acl_id", "name",
"can_read", "can_write", "can_add", "can_delete");
What's weird about this is that the object being created >>is<<, in fact, of the correct Type...which is why I think the problem is
with VS2003's support for syncing assemblies.
I'd appreciate hearing any tactics/strategies which others have found helpful debugging these kinds of problems.
- Mark
p.s. and please, MS support staff, don't ask me to send the entire project to someone -- it's megabytes of source code, and it'd
take me a week to explain how it ought to work. Tag: Page setup dialog Tag: 97078
Auto Complete/Suggest (On Steroids)
I am looking to implement a search feature into a Windows Forms MDI
application. Specifically I plan to embed 3 textboxes into a toolbar; one
for LastName, another for FirstName, and one for CustomerID. When the user
starts typing into any of these textboxes I would like to pop up another
form that shows the user a dynamic list of the closest matches. The user can
then use the up- and down-arrow keys to select a customer from that pop up
form.
To see an example of similar ("close-but-not-quite") functionality, go to
http://www.thebusco.com/ and in the upper left-hand corner there is a
textbox with 'Enter Part Search Here'. Start typing 'air vent cover' to see
the behaviour in question. Yes, it's a Web application and I'm doing a
Windows Forms app, but it shows you the general idea of what I'm trying to
accomplish with Windows Forms.
Please note that I am familiar with the new 2.0 features: AutoCompleteMode,
AutoCompleteSource, and AutoCompleteCustomSource.
But those won't work for my situation because I'm *not* looking to simply
populate a textbox or a combo box from the list.
What I am needing to do is let the user select the customer for which info
is to appear in the currently active MDI form (and not only the control into
which they are typing). The idea is that the user starts typing into any one
of the 3 textboxes; as they type - the pop up window appears and shows the
closest matches. The user then hits the down arrow key a few times to select
the desired match, then hits Enter to (1) close the popup window, and (2)
trigger logic that shows the selected customer's info in the currently
active MDI form.
Note that I want to pop up another window [for the closest matches] so that
I can show the user many property values for the possible matches (and not
simply show them a list of names similar to the one they are searching, for
example).
What do you see as the biggest challenges in accomplishing this dynamic
search capability (and reasonable solutions)? What are the building blocks
you might suggest for the solution?
Thanks for your time and consideration! Tag: Page setup dialog Tag: 97077
ComboBox: How can I limit user to list items?
Hi,
How can I limit user to only available items in the combobox list?
By default user can choose one of the list items and also type anything
she/he wants!
Thank you,
Alan Tag: Page setup dialog Tag: 97074
Generic windows error message
I've built a windows app on .NET 2.0. I have a few users that run it without
issue. One user reports that it immediately pops up the standard windows
window that reports:
<program> has encountered a problem and needs to close. We are sorry for the
inconvenience.
What does this possibly mean ? How can I trace the problem?
NB. I have a "run in debug mode" option which writes to a debug log file but
even that is not generated. Tag: Page setup dialog Tag: 97066
Security Model
I am designing a new Windows Forms client application (with SQL Server db on
the back end) for which users will authenticate via NT authentication
(network), or SQL Server authentication. Users who are granted access to the
application must also be granted access to specific forms and controls on
forms. The menu must show/hide items based on the user's access level. Also,
some controls should allow editing by some users but not others (based on
their security level).
My first thought is to have a static class that gets populated when the user
is authenticated. This static class would contain "user profile data", one
piece of which is some "security access level" value. Then the menu and all
forms (in their form_load event procedure) look to that static class to
determine what controls to enable/disable/hide.
What do you think about that? Is there some [other] standard/better way to
accomplish the security objectives?
Thanks! Tag: Page setup dialog Tag: 97065
Prevent scroll into view on getting focus
Hi all. I have a scrollable panel and a bunch of controls on it.
When one of the controls gets input focus the panel automatically
scrolls so that the control becomes visible in all it entirety.
I have a listbox which is originally half-hidden, when a user clicks
on it to select an item, it suddenly jumps up (according to the logic
I described above) and the user ends up with selecting wrong item.
Is there a way to work around this behavior? Any help is appreciated.
This is VS2003, .NET 1.1. Tag: Page setup dialog Tag: 97062
Can a windows service msg via smtp?
Is it fairly straightforward to write a window service in either .net
2003 or 2005 that periodically interrogates a local data store (Access
mdb) and based on records from that, sends emails out to a smtp server ?
The idea is to send email reminders based on data in the db. SMTP server
is probably another box. If this is not a great route to take, what
would be more appropriate? And if .Net is a good approach, is 2005 going
to make is much simpler than 2003? A SQL server job could initiate
emails too; that would be simpler; but I need an alternative to that
approach. Not sure if this is the best ng to post in for this? Tag: Page setup dialog Tag: 97058
code clean up
Hi,
I have added some buttons and boxes on the VB.net form. After deleting these
buttons and boxes from the form, I find that the code is still there.
Does VB.net have a feature to clean up these unwanted codes?
thanks Tag: Page setup dialog Tag: 97057
'DisplayMember' is not a member of 'System.Windows.Forms.ListView'.
Hi,
I am trying to display the processes running on my system to a listbox. but
i got 'DisplayMember' is not a member of 'System.Windows.Forms.ListView'.
during debug.
any clues? below is the code
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Try
Dim prc As Process
' Remove existing items from the control.
ListView1.Items.Clear()
' Fill the control. Indicate which member of
' the items added to the list box should be
' displayed.
ListView1.DisplayMember = "ProcessName"
For Each prc In Process.GetProcesses()
ListView1.Items.Add(prc)
Next
ListView1.Sorted = True
Catch exp As Exception
MessageBox.Show(exp.Message, Me.Text)
End Try
End Sub Tag: Page setup dialog Tag: 97055
ToolStripStatusLabel blinking tooltips
Does anybody know how to get the blinking to stop. When I hover over the
ToolStripStatusLabel sometimes it blinks and sometimes it doesn't. So the
tooltips seem to behave inconsistently. The blinking is very annoying and
makes the tooltip unreadable.
And what does AutoToolTip property do.
The help says
"true to use the Text property for the ToolTip; otherwise, false. The
default is true. "
Umm what does that mean? Use the Text Property of the ToolStripStatusLabel
for the Tool Tip?
I tried both and true and false and it made no difference. It seems to
always display what I put in ToolTipText Property.
Any tips to get rid of blinking would be appreciated Tag: Page setup dialog Tag: 97054
Alternative .NET smart client bootstrapper - LagLoader.NET
Hi there.
In last January, My previous employer got a proof-of-concept project
requiring hand drawing on the web; the customer is a fashion design
house. I created a .NET Windows Forms control based smart client,
encapsulating Tablet PC InkPicture. It worked well (at least for demo)
on all my computers.
Since .NET framework runtime is a Windows Update optional install,
and in the impression that everybody should update their operating
systems often with Windows Update, before that project, I got a
wrong image that .NET framework runtime should be available easily
on every Windows XP PC. No, it is not that case. My customer is no
where close to IT industrial; they just made enough bucks, and their
younger new boss (whose university major was computer science)
decided to invest in a design workflow system. Even though every
designer of that customer got a Windows XP PC on each of their
desktops for long, and they do have a MIS group doing Windows
Update time from time, no .NET framework runtime was preinstalled;
they just not awared of that optional install.
We found no way to automatically install .NET framework runtime
in Windows XP machines of my supposed-to-be users, having to
install it one by one, MANUALLY. There were 20+ machines with
no .NET framework runtime preinstalled. Remember, this is a smart
client solution integrated with a back-end workflow web application
solution. It is suppose that no explicit install/setup files should be
run on every possible user's Windows.
Anyway, even though I have best performance over the category of
hand drawing/writting in all competitors, we failed to get that
customer to adopt my solution. .NET framework deployment is
really an issue. No, it should not be an issue.
It was already 1 year ago. Now, .NET 2.0 was released for weeks,
ClickOnce is out there, and I got the image that ClickOnce does
not support .NET 1.x smart clients. So I am still glad to share my
solution to every .NET smart client developer: LagLoader.NET 1.0.
Features of LagLoader.NET 1.0:
+ Detect if the required .NET framework version is installed.
Automatically download and install it if not installed.
+ No code modification is required in existed .NET Windows Forms
controls, only minor change in the OBJECT tags in web pages
needed. Javascript code worked in the same way to script
Windows Forms controls deployed in web pages.
+ In case that some smart clients are not compatible with the latest
version of .NET framework, they may be run fixed to a compatible
version of .NET framework, while others being run with the latest
version of .NET framework, all in the same web page.
+ An optional FULL TRUST mode to run Windows Forms control
based smart client fully trusted. Smart clients run as fully trusted
as their desktop/local peers, but loaded from remote servers.
Sure, the full trust mode may hint a security issue,
but if you have to do so to perform some tasks, then let it be.
The product web page of LagLoader.NET 1.0:
http://en.ezlag.com/site/335/lagloadernet.aspx Tag: Page setup dialog Tag: 97048
in VS 2003
Page setup dialog margin settings are in Inches
But i need it in milli meter, how it is possible