all groups > dotnet windows forms > november 2005 > threads for november 15 - 21, 2005
Filter by week: 1 2 3 4 5
Scapping a WinForm
Posted by scottf35 NO[at]SPAM gmail.com at 11/21/2005 7:24:28 PM
Hi,
I need to be able to scrape a winform and save the contents to a file.
The user can either pass in the handle to the form or scape the chose
the form with focus.
Can someone please direct me to a link that would help or explain how
to do this (just the scapping and windows handle bit)?
... more >>
MDI child maximizing doesn't work right
Posted by Elmo Watson at 11/21/2005 4:53:24 PM
(using VS.net 2005 - never used DotNet WinForms til now - previously only
used VB6)
I have set my mdi child form to a window state of maximized.
However, the first file I open is not maximized and I can not get to the
drag bar.
But then, the second file I open (using the same function) ... more >>
How To Show New Form In VS2005?
Posted by joey.powell NO[at]SPAM topscene.com at 11/21/2005 1:39:18 PM
Hello,
I have written several windows forms applications with VS2003. When I
did this, I would create a new instance of a form and then call show or
showmodal to open it, like below...
_NewForm NewForm = new _NewForm;
NewForm.Show();
....or...
_NewForm NewForm = new _NewForm;
NewForm... more >>
Add/Import VB6 form into VB.NET project
Posted by vul at 11/21/2005 1:28:11 PM
I'm just starting to learn VB.NET (VS 2005). I opened VB6 project in VB.NET.
It was converted by wizard into .NET with many warnings and errors.
I was wondering if it's possible to start let's say a new .NET project and
add 1 existing VB6 form into it. So far I couldn't find the way to do that.... more >>
Cant resize the TaskBar
Posted by Wozza at 11/21/2005 8:34:06 AM
I'm trying to resize the TaskBar. I can successfully hide and show it but
can't get it to respond to the SetWindowPos call to User32.
I am using the following definition for SetWindowPos:
[DllImport("user32.dll", EntryPoint = "SetWindowPos")]
public static extern bool SetWindowPos(
... more >>
trackbar with transparent background
Posted by AndrewEames at 11/21/2005 8:02:07 AM
Does anyone have a workaround on how to make a trackbar have a transparent
background? I remember seeing one once but I cant find it any more
Thanks
Andrew... more >>
VS 2005 and COM Running Object Table
Posted by Sebastien at 11/21/2005 3:16:28 AM
Hello,
With VS 2003, we used the COM Running Object Table to retrieve the current
instance of VS 2003 in order to know the solution path at design time, see
following post:
http://groups.google.be/group/microsoft.public.dotnet.framework.windowsforms/browse_thread/thread/6f065cbc19ee8e61/4899... more >>
Size of Heap at some location in program
Posted by OBINT at 11/21/2005 12:00:00 AM
Hi
How can i know the current status of Heap at a specific location of =
program. I want to put a break point in program and want to know what is =
the status of my heap at that time.
OBINT... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ASP.net very simple problem - very unusual.
Posted by webteam NO[at]SPAM spamtrap.com at 11/21/2005 12:00:00 AM
This is crazy,
The following page:
-------------------------------------------------------------
<%@ Page Language="VB" Debug="true" %>
<html>
<head>
</head>
<body>
<%=WeekDayName(Weekday(Today))%>
</body>
</html>
-------------------------------------------------------------
Re... more >>
Activating tab Pages
Posted by Yeghia Dolbakyan at 11/21/2005 12:00:00 AM
Hi Guys
I have a winform with tab control+tab pages. The logic of application
requires to work with controls in all pages on application load and
displaying first page initially. The problem I have is that listview control
in one of those pages do not work correctly until I select that page... more >>
Usercontrol property appears in property grid but not intellisense
Posted by Bruce Wood at 11/20/2005 11:02:24 PM
I have an absolutely freakish problem that is driving me nuts.
I created a user control that encapsulates a ListView. I exposed many
of the ListView properties through the user control, something like
this:
[DefaultValue(false), Category("Appearance"), Description("...")]
public bool CheckB... more >>
Adding a Form to a Tab Control?
Posted by youngie NO[at]SPAM youngie.com at 11/20/2005 9:09:46 PM
I've developed an app with about 400 controls on a form. Now this
application needs to become "tabbed". How do you add a form to a tab
control?
Thanks
John
... more >>
How do I Paint a Control without adding it to Controls?
Posted by Kent Rollins at 11/20/2005 8:43:26 PM
I am trying to cause a custom Control to paint while that Control is
not a member of Form.Controls. I prefer not to add it to Controls
because I am basically adding functioanlity to the forms designer and
if I add it to the Controls collection, I will have to add a lot of
special handling logic... more >>
What replaces "Directcast(me.mdiparent.activemdichild, TypeOfChildForm).txtEdit"
Posted by Elmo Watson at 11/20/2005 1:25:07 PM
In VB6, I used :
frmMain.ActiveForm.txtEdit.....whatever
However, I'm using VS.Net 2005 now - - then, I was told to use
Directcast(me.mdiparent.activemdichild, TypeOfChildForm).txtEdit
But when I try to do that, I get an error message with no corrections
suggested:
'TypeOfChildForm' not d... more >>
Binding DataTable to a Crystal Report
Posted by ShiTvm at 11/20/2005 12:00:00 AM
Hi,
Which is the best way to bind DataTable to a Crystal Report in Winforms
application.
I am using a stored procedure to get the dataset. But I could'nt find a
proper documentation for how to bind the DataTable or DataSet to a Crystal
Report.
Any suggestions..
Rgds
Shibu
... more >>
Autoselect text when tabbing into a textbox
Posted by Jonathan Allen at 11/19/2005 2:02:26 PM
In dialog boxes in Windows, the text in TextBox is automatically selected if
you tab into the TextBox , but not when you select the TextBox using the
mouse.
What is the preferred way to support this in VB/C# 2005?
--
Jonathan Allen
... more >>
Security / Permissions problems running over network!
Posted by leeedw NO[at]SPAM hotmail.com at 11/19/2005 12:35:53 PM
Hi All,
I have a windows app that runs perfectly on my machine, but when I try
to run it over the network it bombs. I get a permissions error.
Here is the code, I even tried adding FileIOPermission code but to no
avail:
objFilePermission = FileIOPermission
(Security.Permissions.FileIOPe... more >>
TextRenderer measuring characters
Posted by Piers at 11/19/2005 12:30:04 PM
With .Net 1.1 I developed a text editing control using:
Graphics.MeasureCharacterRanges;
Graphics.MeasureString
It worked but was not perfect as the text "walked" as new characters were
added and finding the exact position of a character (especially spaces at the
end of a line) wa... more >>
What is the best way to display data from a previous form
Posted by dbuchanan at 11/19/2005 7:44:55 AM
Hello,
Windows forms & database
What are the considerations when choosing how to display reference
information from the calling form? What is recommended?
Table1 is the parent of Table2.
Form1 allows data entry into Table1.
Form2 allows data entry into Table2.
Form1 (the parent) ope... more >>
A few simple questions about SQL Server 'Views'
Posted by dbuchanan52 NO[at]SPAM hotmail.com at 11/19/2005 6:40:00 AM
Hello,
I am building an application for Windows Forms using. I am new to SQL
Server 'Views'. Are the following correct understanding of their use?
1.) I believe a view can be referenced in a stored procedure something
like this;
Select * from View1
Is that true?
2.) I believe I can upda... more >>
adding a control to toolbar
Posted by Ohad Young at 11/19/2005 12:00:00 AM
Hi,
Is there a way to host a control other then button in a toolbar control (VS
..NET 2003, .NET FRWK 1.1)?
What I wanted to do is to use the free space, not used by the toolbar to
display buttons, to display other information, for example in a textbox. Is
it possible?
Ohad
... more >>
newbie question on vcs2003 project conversion to 2005
Posted by CobraStrikes NO[at]SPAM al.com at 11/19/2005 12:00:00 AM
hi all,
I used vcs2005 express to convert vcs2003 project, thats fine, but the look of buttons etc have not changed,
what do I need to do to get the new look with minimun amount of work.
Thank You For Your Help.
... more >>
Button Forecolor Property and XP
Posted by Paul Fairless at 11/18/2005 10:11:43 PM
I have created a Windows XP manifest file to enable my VB.NET applications
to exhibit the characteristics of the XP style.
On a form I have a button and I have explicitly set its forecolor property
to RED. However when it displays, the text on the button remains BLACK!
Why is this and how... more >>
Multiple Row Deletion DataGridView
Posted by Giovanni at 11/18/2005 5:42:01 PM
Hi,
I would like to delete multiple rows from a bound datagridview? Its
currently deletes only one of the many rows I may have highlighted. What
code can I use and where. Is it possible to do it in the Partial Class in
the Dataset? If not, where in my Windows Forms can I use it? I c... more >>
Can't update Label while ProgressBar is moving...
Posted by Charlie NO[at]SPAM CBFC at 11/18/2005 4:00:18 PM
Hi:
I'm trying to implement a ProgressBar with a label to show progress. On
each increment of ProgressBar label text is updated but label doesn't show
any changes until progressbar is done. Why?
Thanks,
Charlie
... more >>
File Association
Posted by Charles A. Lackman at 11/18/2005 11:03:58 AM
Hello,
I have an app that allows me to Open a file, by right clicking it and
opening it with my program.
Public Sub New (Byval AFile as String)
The problem is that when you open the file this way, it does not allow me to
release the resources of the file so that I can save back to the o... more >>
Informations about Framework Installed
Posted by Everton Rodrigues at 11/18/2005 9:00:05 AM
Hello All,
how to i discover the framework version installed at client?
Thanks.
Dexter... more >>
Random colors not so random
Posted by Lionel at 11/18/2005 8:55:05 AM
Hello all, I'm trying to program a random color generator as follows:
Color = Color.FromArgb( (rnd.Next(0,255)), (rnd.Next(0,255)),
(rnd.Next(0,255)) );
When executing, the colors generated from the above line always appear the
same, certainly not random. What is the correct way to genera... more >>
Listview in thread
Posted by claude81 at 11/18/2005 3:29:07 AM
Hi at all,
I'm trying to refresh items of a ListView that is in a Form. The form is
executed in a separate Thread. I'm using a delegate to refresh ListItems but
I'm not able to do this.
In which mode can I refresh Items of a ListView???
Example code:
Declaration of delegate:
Private... more >>
Uninstall Custom Action doesn't remove old versions from registry
Posted by Rich Freeman at 11/18/2005 12:00:00 AM
I am in desperate need of some help from someone who knows more about
creating installers than I do. Here is my situation:
- using VS 2002 and VB.NET
- created a setup file with RemovePreviousVersions set to true
- When updating my app I increment the setup file version # and allow the
Pro... more >>
VS2005 Another DataGridView Problem
Posted by Fernando Cardoso at 11/17/2005 10:53:38 PM
On my Windows Forms app I have a base form called DataEntryForm. On this
form I have a DataGridView and a BindingSource populated with a base
EntityCollection. These controls are protected friend.
I have a second form called EmployeesForm inherited from DataEntryForm. I
changed the datasour... more >>
VS2005 DataGridView problem
Posted by Fernando Cardoso at 11/17/2005 8:37:48 PM
On my Windows Forms app I have a base form called DataEntryForm. On this
form I have a ToolStrip, a DataGridView, a StatusStrip and two buttons. All
these controls are protected friend.
I have a second form called EmployeesForm inherited from DataEntryForm. I
can change the properties of al... more >>
Hiding columns in datagrid
Posted by bharati2u at 11/17/2005 9:55:21 AM
Is it possible to hide the column even if we have added it to the
gridcolumnstyle of the datagrid
--
bharati2
-----------------------------------------------------------------------
bharati2u's Profile: http://www.highdots.com/forums/m117
View this thread: http://www.highdots.com/forums/t3... more >>
Free .Net Grid With Virtual Mode?
Posted by Serg at 11/17/2005 8:36:32 AM
Hello. Please recommend a good .NET grid implementation that supports virtual
mode for large number of rows. Thank you.... more >>
Mdi question: How to access controls from mdi child form?
Posted by juvi at 11/17/2005 6:02:08 AM
Hi,
I am new to the mdi developement with vb.net. I have a mdi parent form
called frmMain and a child form called form1.
form1 contains treeview1 --> how can I expand the nodes from the parent form?
I tried it like this:
form1.treeview1.expandall()
thank you for your help....juvi... more >>
MDI Children Dialog Forms?
Posted by Gordan A Ziza at 11/17/2005 12:00:00 AM
Hello everyone,
We are developing a MDI application and what we would require is the
following:
1. To open a MDI child form as Form1
2. To open another MDI child form as Form2 that would act as a dialog
form for the Form2
3. Form2 must not prevent any other MDI forms from openin... more >>
How to trap error
Posted by anoj at 11/16/2005 11:12:07 PM
Hi All,
I am facing a very strange problem. It crashes anytime unexpetedly.
I have put application level as well as form level Error handlers
But nothing works .
The startup of my Application is below :
Public Sub Main(ByVal CmdArgs() As String)
Try
Dim TmpFrm As New... more >>
collectionbase vs generic
Posted by Andreas Zita at 11/16/2005 9:24:21 PM
Im new to 2.0 and have a question about generic collections.
In 1.1 I used to create custom collections derived from collectionbase. For
instance ItemCollection : CollectionBase. Then I would also have collections
such as MovieCollection or ImageCollection deriving from ItemCollection
where... more >>
Urgent: MDI Windows form Memory Leak: Major Issue
Posted by Vinay Kant at 11/16/2005 7:36:03 PM
Hey guys,
We have, a windows form application in VB.NET.
The way this application is structured is, there’s a MasterForm which
contains a Main menu and acts as the mdi parent to around 20 windows forms.
We have a BaseForm with some controls on it inherited by 20 other forms.
The proble... more >>
Cant find the databind for data grid
Posted by Roger Twomey at 11/16/2005 4:18:30 PM
Okay, I am really confused. I have this code:
Conn.Open()
DataGrid1.DataSource =3D =
command.ExecuteReader(CommandBehavior.CloseConnection)
I have opened the connection, I set the data source, now I want to bind. =
I SHOULD be able to say 'DataGrid1.DataBind()' but it tells me that =
DataB... more >>
Cycle through radio buttons in a groupbox?
Posted by Eric at 11/16/2005 2:41:11 PM
Does anyone know how to programmatically cycle through a group of radio
buttons in a groupbox? I’ve tired groupbox.SelectNextControl() but it
selects the next control, not the next radiobutton. Thanks... more >>
DPI settings and window sizing
Posted by Darren at 11/16/2005 1:12:15 PM
Hi,
If I am running an application on a system that is using Large Fonts
(screen resolution set to 120 DPI) and with the Form's AutoScale
property set to true, how can I get (or calculate) what a window's size
would be before the system auto-scales it?
For example if the form's size is set ... more >>
Getting IPAddress
Posted by Kenny M. at 11/16/2005 12:07:54 PM
How can I retrieve the IPAddress of my pc from my Windows app?
--
Kenny M.... more >>
Disable "smooth scrolling"
Posted by Philipp Schumann at 11/16/2005 11:32:24 AM
Hi
on XP systems, per default setting, combo boxes slide down smoothly rather
than just popping up instant(aneous)ly. This is seriously disturbing an
application I'm developing and I'm looking for a way to disable this
"locally", that is, only in my own application (whether per application ... more >>
DataBinding problem - CurrencyManager Position is always equals to -1
Posted by John Yung at 11/16/2005 10:51:34 AM
Hi,
My program binds several controls on a WinForm to a Data Table via =
CurrencyManager.=20
Example:
txtComment.DataBindings.Add("Text", _currentDS.WithholdingTax, =
"Comment");
txtComment.DataBindings[0].Parse +=3D new =
ConvertEventHandler(frmMain_Parse);
=20
....
_... more >>
DataGridView UserDeletingRow
Posted by Giovanni at 11/16/2005 10:22:00 AM
Hi,
Is it possible to do the following, and if so, how?
In a datagridview, assume I highlight 10 rows and press the Delete key.
Upon doing so, I'd like to do the following:
Collect the Row information for each of the 10 highlighted rows marked
for deletion, pass them to a new ... more >>
WinForms Application Design Questions
Posted by Stokesy at 11/16/2005 10:08:36 AM
Hi there,
I am just about to start architecting my first Windows Foms
application. I have built a couple of prototypes to get up to speed,
but just wanted to run a few ideas by the experts!
I am looking at building an app that takes SharePoint as a backend
server and presents all the info ... more >>
framework2: Tabcontrol xp style with drawmode OwnerDrawFixed? Or red tabpage text without OwnerDrawFixed?
Posted by Roland_Müller at 11/16/2005 10:00:30 AM
Hello Group,
i want to use a tabcontrol with drawmode OwnerDrawFixed
(framework2/vs2005) AND the xp style not the flat, grey, ugly windows
2000 style.
But as soon as i change the drawmode to OwnerDrawFixed the xp style
disappears.
Is there any possibility?
Why need i OwnerDrawFixed... more >>
Sorted ListBox with Custom Collection DataSource
Posted by Andreas Zita at 11/16/2005 12:00:00 AM
Hi
I have a ListBox with a Custom Collection (Customers) as DataSource. The
collection implements IBindingList, but only the change notification part.
When changing a customers name in the collection I also sort the list using
InnerList.Sort(). The problem occurs when a certain item is selec... more >>
Transferring data from listview to Word
Posted by tanishq1510 at 11/15/2005 11:48:05 PM
Hi,
I have a listview with (addresses + email address) and the selected
address needs to be transferred onto a Word document.Is this possible
with c#?.This word document needs to be sent to the selected email
address.I have looked into the word document email options.There seems
to be no op... more >>
Form KeyDown Problem
Posted by Rasika WIJAYARATNE at 11/15/2005 9:24:32 PM
I have a form with a KeyDown event handler method attached to it. It
has three text boxes and two buttons (buttons are attached to event
handler). However when I debug, the form opens with the first text box
focussed, and when I press enter the Win XP 'Default Beep' sound plays
but does not fire... more >>
Files and Folders in Treeview with Checkbox
Posted by Jay at 11/15/2005 5:42:12 PM
Anyone know where I might find an example on creating a treeview containing
the entire directory structure and files with checkboxes to allow selection
of directory and/or file? Are there controls like this in VStudio 2005
(there was in Studio 6)? I understand there are third party controls ... more >>
Dialog Box in aspx.cs
Posted by LW at 11/15/2005 4:58:02 PM
Hi!
I have a C# Web Application and I am trying to display a simple pop up window
to the user when a certain event occurs.
But when I call Message.Box I get the following error message:
It is invalid to show a modal dialog or form when the application is not
running
in UserInteractive mode... more >>
Reflection question : finding the exposed properties of a Control
Posted by JezB at 11/15/2005 11:15:52 AM
Given a generic Control object, how can I iterate through all the properties
exposed by the control ? Different classes of control expose different
properties.
Ideally I'd like to find all the properties that are exposed within the
"Appearance" and "Layout" categories of the form designer's... more >>
Databinding against a BLOB column
Posted by Jörgen at 11/15/2005 11:05:03 AM
I have a database table with a BLOB column where I want to store RTF data.
I have a typed dataset for my table.
I have a Windows Form with a RTF Editor Control which I want to databind
against my typed dataset via a Binding source.
Databinding a string property against a Byte Array column dose... more >>
a simple task... with errors
Posted by Bruno Alexandre at 11/15/2005 10:09:50 AM
I use this simple code to get a Date and a Text from DateTimePicker and
TextBox as Multiline
into an ArrayList (utente.listaProblemasPassivos) and then show it in a
DataGridView (dgListaProblemasPassivos)
-----------------------------------------------------------------------------
Dim sDat... more >>
Creating a Paint Screen
Posted by Bruno Alexandre at 11/15/2005 8:59:00 AM
Hi guys,
I'm builing this nice Clinic Register for Doctors, and one of the things
they asked me is a property that I can't know how to implement...
They want me to show a paint board (kind like MSN Messenger but simpler)
with a pencil and a rubber, so they can design the family tre... more >>
VB.Net & C# WIndows application exe size
Posted by Ily at 11/15/2005 7:07:57 AM
Hi
I have created a simple application in both vb.net and c#
Both apps display a hello in a messagebox in the form load event
When compiled:
the vb exe is 10KB
the C# exe is 20KB
Why the difference?
... more >>
Transforming mouse coordinates
Posted by Dick Donny at 11/15/2005 3:11:04 AM
Hi
Thanks for taking the time to check this post. Any help/suggestions are
appreciated.
I have an owner drawn (GDI+) document generation application that is made up
of embedded objects. The document acts simply as a layout container and
delegates painting to the embedded items.
The ... more >>
datagrid edit not saved on exit
Posted by Marty at 11/15/2005 1:56:04 AM
I have a bound datagrid on a form, with a close button. All the close button
does is call me.close. If I edit a cell, then click my close button, the edit
can be seen in the grid, as expected, when I enter my form_closing event code.
However if I edit a cell then click the "X" in the top right ... more >>
Register Window Message
Posted by Mircea Pleteriu at 11/15/2005 12:00:00 AM
Hi All,
Here it is what I want to do
..
I have a Windows Form application (app1) which at a certain moment sends a
registered windows message to other Windows Form application (app2) which
only listen for this window message. When app2 catches the message it
performs some task and then wait ... more >>
Another reflection question:
Posted by JezB at 11/15/2005 12:00:00 AM
Given the string name of a property (eg. "BackColor"), how do I get and set
the current value of that property for a given Control instance ?
... more >>
URGENT: VS2005 Text Rendering Issue
Posted by Annette Miller at 11/15/2005 12:00:00 AM
First up, sorry for cross-posting.
I have what is (to me, at least, an urgent issue) with the look/feel of my
applications.
I have been using VC# EE Beta2 until about a week ago and I have just bought
VS2005 Professional RTM.
All programs I've written in VC# EE now do not render text co... more >>
|