all groups > dotnet windows forms > may 2004
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Memory issues
Posted by Bruno Rodrigues at 5/31/2004 4:36:50 PM
Hi,
I'm having several memory leaks in my Windows Form (C#). Testing, I
found a curious thing:
Put a ListView control in a Windows Form, run the project and start the
TaskManager. Each time you focus the form or pass the mouse in/out the
ListView, the memory used by the application ... more >>
Visual inheritance bug?
Posted by Tim A. at 5/31/2004 4:03:55 PM
Hello gurus!
In my C# project I have a localized form that I use as the prototype for two
others. The prototype form has a ListBox control data bound to an ArrayList
containing data elements of a custom class type. At design time its Items
collection is empty and is populated by data binding... more >>
DataSource property to control design time
Posted by Morten Lyhr at 5/31/2004 4:01:06 PM
I want to add a DataSource property to my control that, at design time, will allow the designer to drop down a list of valid datasource components just like the DataGrid control. The type on the DataSource property is just 'object', so I know it isn't that. Is there a special designer attribute I ha... more >>
How can I get the name of a ToolBarButton object.
Posted by Bill Wilson at 5/31/2004 2:16:03 PM
I need to iterate the Buttons collection in a toolbar and get the name of each button. The objects in the collection are not normal Button objects. They are ToolBarButton objects, which do not appear to have a Name property. Is there some other place to get the name? ... more >>
SEHException when closing a form
Posted by Ryan Gregg at 5/31/2004 12:08:32 PM
I'm trying to enable Windows XP themes in my application. First I tried
adding a call to Application.EnableVisualStyles(), but that didn't appear to
actually do anything (aka I still wasn't getting styles). Yes, I have all
my buttons and what not using FlatStyle = FlatStyle.System.
I added a... more >>
Databinding - Best Practice (object-oriented)
Posted by anthony NO[at]SPAM netcourrier.com at 5/31/2004 11:19:32 AM
Hi,
I would like to know your opinions about the best way of implementing
databinding in an application.
Let's take a simple example: we have a table called 'Employee' and we
would like to display its content in a DataGrid.
1st solution:
-Export all the Employee records from the database... more >>
WinForms and WebService
Posted by sunil NO[at]SPAM volcanomail.com at 5/31/2004 6:06:32 AM
Dear All,
If I create a proxy object to a WebService in my Form as an
instance object, does it create a process thread in my WebServer that
is hosting the WebService?....
As the WebService object gets an error if I try to call a WebService
method after around 30 minutes of inactivity...is re... more >>
DataGrid
Posted by PAJ at 5/31/2004 5:56:02 AM
The datagrid.click event only fires when the grid is clicked (ie the lines around each cell
Is there a way to detect a click inside a cell in the datagrid
TIA... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
DataGrid
Posted by PAJ at 5/31/2004 5:31:02 AM
I am pointing a DataGrid at a DataTable to display some data. Is there a way to
a) hide columns that are displaye
an
b) update the row header with some tes
TIA... more >>
Handling Exceptions in WinForms
Posted by sunil NO[at]SPAM volcanomail.com at 5/31/2004 5:03:47 AM
Dear All,
In ASP.Net we had...
Sub Page_Error(Source As Object, E As EventArgs)
Dim message As String = "<font face=verdana color=red>" _
& "<h4>" & Request.Url.ToString() & "</h4>"
_
& "<pre><font color='red'>" &
Server.GetLastE... more >>
Embedding the WOrd Windows in Win Forms or other Windows COntrol
Posted by vikash NO[at]SPAM nagarro.com at 5/31/2004 4:52:03 AM
HI,
I want to embed the Microsoft word window in my WIndows forms designed
in C# ,net.....
can anybody suggests, apart from using the Webbrowser control, what
can be the other option avaialable to us.
Thanks
Vikash... more >>
Threading
Posted by Brian P. Hammer at 5/31/2004 1:09:58 AM
All - I have the need to make my app multi threaded for those long =
running tasks. Some of them are not a problem but the question I have is =
with SQL and populating items on a form. If I create a new thread, =
connect to my SQL, run a long query and then populate a combobox within =
this new ... more >>
.NET can only get MainWindowTitle from a process...?
Posted by michael NO[at]SPAM bodekaer.dk at 5/30/2004 1:31:50 PM
Hi,
I am developing my own taskbar like explorers.
Therefore I need to be able to get a list of all open windows, and
their associated icon (not necesarily the .exe file icon).
Furthermore any information about how to retrieve systray icons would
be great.
I guess I cannot avoid using AP... more >>
combobox into toolbar
Posted by geniuspie at 5/30/2004 3:51:02 AM
Hi everybody, I'm pretty new to .NET framework so don't get hungry at my silly question
Is there a way to put a combobox into a toolbar? I've been trying to do that for quite a long time with no success.
If anyone has suggestions please let me know
Thanks... more >>
Load dynamic data into comboBox based on input in ComboBox
Posted by Jason Smith at 5/30/2004 12:01:02 AM
What I would like to do is
In a win form, I have a comboBox, when the form is loaded, I don't want to populate the comboBox(I have a lot of data). Instead, I want the user to type in the first few letters of the search criteria, then I capture it and run the search and return the result back and l... more >>
http cookie use question
Posted by chris at 5/29/2004 7:01:04 PM
I'm struggling with using the HttpCookie object on a code behind. Used in the page works great
I'm getting a: Type 'HttpCookie' is not define
I've tried adding the namespace to the vb form but no luck
Imports System.Data.Sqlclien
Imports System.Dat
Imports Syste
Imports System.Web.U
Imports... more >>
smart client application
Posted by .NET Developer at 5/29/2004 5:19:08 PM
Can anyone point me to some documentation on how to build a real life smart
client application. I also would like to read about typical way of creating
a offline smart client application, components involved etc. I also would
like to hear from people on how successful is this concept. Is this wid... more >>
Binding XML data to a combobox and get the selected value
Posted by marko.maehner NO[at]SPAM gmx.de at 5/29/2004 10:58:41 AM
Hi!
I have problems with databinding of xml files to comboboxes and then
getting the selected value of a selected item. For example, I have the
following xmlfile:
<?xml version="1.0" encoding="UTF-8" ?>
<Foo xmlns="http://tempuri.org/test.xsd">
<Person xmlns="http://tempuri.org/test.xsd... more >>
TextBox FLICKER
Posted by Abdullah at 5/29/2004 10:01:01 AM
Could someone point me to a solution
I am appending text to bottom of a textbox and would like the display to scroll to the bottom where the new text is instead of the top of the textbox.
I know the following solution but the issue with this is the FLICKER
Any solution
textBox1.AppendText("This... more >>
WindowState = FormWindowState.Maximized
Posted by Brian K. Williams at 5/29/2004 9:43:50 AM
On my MDI application I am setting one from to WindowState =
FormWindowState.Maximized. If this window is open then all windows open
Maximized regardless of their settings.
Thanks in advance for any help.
-Brian K. Williams
... more >>
Update Problem with Combobox DataGrid
Posted by nadeem at 5/29/2004 1:36:02 AM
I have got combobox data grid sample from http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q480q
I added code to update changed records but it does not work.Have some one idea how add update ,new and delete functionality to data grid with combobox coloum.Data grid displays data from two tab... more >>
Checking for required DLL's on startup
Posted by Ahmed Ben Messaoud at 5/28/2004 9:57:26 PM
I have a program that requires multiple DLL's, how can i check for these
dependencies on startup?
TIA,
Ahmed
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
how to: application wide keyboard hook
Posted by ~dr-sci-fi at 5/28/2004 4:49:43 PM
hi all,
problem: i have several controls on my form which can get focus, like
buttons/combos. i have to catch keyboard events for special keys like Alt-F1
on my form, for that, i simply implemented keydown event handler on my form
control, but when some other control has focus, all keypress ev... more >>
who on earth has done a complete win32 api wrapper for C#?
Posted by ~dr-sci-fi at 5/28/2004 4:49:24 PM
looking for a comprehensive version of most common API functions used in
..Net, sample below:
===============================================================
using System;
using System.Runtime.InteropServices;
namespace ApiWrapper
{
/// <summary>
/// Summary description for Win32API.
... more >>
Undefined Error
Posted by Alper Akcayoz at 5/28/2004 4:21:03 PM
Hello Developpers
I faced with an undefined error. I developped a Windows Forms Application. When I opened my project's Solution, all the documents, which were created before, listed properly at the Solution Explorer. But when I wanted to see my form by clicking on to Design View, the following err... more >>
After Form Re-Size event?
Posted by What-a-Tool at 5/28/2004 4:19:53 PM
Have an action I want triggered after a form is dragged to a certain size.
Right now the code I am calling is running repeatedly during the whole drag
to size action. I would like it to run only after the drag to size action
has been completed.
(Using VS 2002 - VB)
Is this possible?
Thanks... more >>
Code generation for property 'XXX' failed. Error was: .....
Posted by Hazim at 5/28/2004 3:04:27 PM
I am designing a component to be used on windows applications.
'code''''''''''''''''''''''''''''''''''''''''''''''''''''
Public Class SomeComponent
Inherits System.ComponentModel.Component
Private _gaugeSettings As New GaugeConfiguration
Public Property GaugeSettings() As GaugeConfig... more >>
KeyDown Event is not catching Function & Tab key
Posted by M.M Ansari at 5/28/2004 2:53:13 PM
Hi All,
why keydown event is functioning properly as it was in VB6.? I have the
following declaration. It is catchig Alphanumeric Keys but not the function
and tab key. following is the syntax;
Private Sub cmb1_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Ha... more >>
how to integrate "Windows Picture Viewer and Fax Viewer" (shimgvw.dll) of Windows XP in my c# app?
Posted by ~dr-sci-fi at 5/28/2004 12:59:26 PM
hi all,
i want to use "Windows Picture Viewer and Fax Viewer" in my c# app to
manipulate images, picture viewer is found as a DLL (shimgvw.dll) in
System32 folder of
WinXP.
can some one tell me how can i use it in my C# app?
TIA
- sci
... more >>
Windows Forms App stalls after 20 minutes inactivity
Posted by stonecc94 NO[at]SPAM yahoo.com at 5/28/2004 11:54:24 AM
I have a Windows Forms application that makes async calls to Web
Services... When I run the application, initially everything is fine.
If I leave the app running for about 20 minutes and then make a web
service call, I get no response.
I check the web server logs, but it appears the call neve... more >>
SQLDMO Library
Posted by Craig G at 5/28/2004 11:20:51 AM
where can i find this in .Net??
Cheers,
Craig
... more >>
What is the equivalent of TextBox.Locked property of VB6 in Win Forms?
Posted by M.M Ansari at 5/28/2004 11:15:56 AM
hi all
I want to lock text box so user can not edit the contents but user may copy
the contents... This is done in vb6 by setting Locked property . But it is
not avaiable in winforms... any workaround?
Thanks in advance
Ansari
... more >>
Which thread was a control created on?
Posted by richlm at 5/28/2004 4:16:04 AM
Is there a way in .NET framework to check which thread a particular windows forms control was created on?
I want to check that a particular control was created on the same thread as my main form, from another arbitrary thread.
I know the "InvokeRequired" property, but I need to marshall the co... more >>
Language issue for Winform menu
Posted by Webmaster at 5/28/2004 3:29:52 AM
1. RSS Feeds
2. Mobile Web
3. News
Hello,
Can anyone help translate the above 3 menu options above into any of the
following languages? Any help would be much appreciated. Or does anyone know
of resources for this type of stuff. I tried to use Google translation, but
it chokes on tech stu... more >>
Specified cast is not valid
Posted by Chrysan at 5/28/2004 2:01:03 AM
I have a CheckedListBox control on a form. Whenever I want to check the item in the CheckedListBox with the following code, it give me an error message 'Specified cast is not valid'. why
chklstType.Items.Add("abc", True)... more >>
Printing GDI drawings
Posted by Flare at 5/27/2004 11:34:48 PM
Hi. I have made a simple painting applcation.
I have a mainform wich creates a class called drawingPanelwich inherit from
Panel. In the drawingPaneli have overriden onPaint an the the painting.
Now on my mainform i have a button called Print. I know how to print
.....PrintPageEventArgs e (e.... more >>
CodeDom and ClickOnce not compatible?
Posted by google NO[at]SPAM markevans.org at 5/27/2004 10:42:37 PM
Hi Gurus
I have a windows application that is deployed via ClickOnce (No Touch
Deployment). It uses the CodeDom to create an assembly on the fly. The
problem is that this assembly can't find it's referenced assemblies
(IPSTypes.dll in the example below). It works fine when run locally
but fai... more >>
Previous focused control
Posted by Mikhail Fedosov at 5/27/2004 8:53:30 PM
Hello all!
Please tell me how to determine thr previous focused control when the other
control get focus.
Enter and GotFocus events does not provide this information.
--
With best regards,
Mikhail
... more >>
Color Matrix rounding error
Posted by pdavis68 NO[at]SPAM hotmail.com at 5/27/2004 5:36:41 PM
I have a black and white bitmap in my app. White is transparent and the
black needs to be converted to a different color.
To manage this, I've created a ColorMatrix as follows:
Color sortArrowColor_ = Color.FromArgb(184, 192, 201);
float r = (float)sortArrowColor_.R / 255F;
float g = (float... more >>
Cannot Load Late Boung Protected Assembly
Posted by localhost at 5/27/2004 3:07:48 PM
Help!
I have a WinForm that at startup creates a custom principal (inherits
from GenericPrincipal) and assign it and its roles to the current
thread.
The WinForm then loads a class library via Reflection. The class
library works fine until I assign a security attribute to the class
like... more >>
Menu in Arabic
Posted by Mahmoud Ouf at 5/27/2004 1:00:44 PM
Dear All
I am implementing a desktop application in arabic.
i have made a menu (from right to left)
i set the property, and when it run it appear from right to left
But, when i press on any item, the Menu item is reversed suddenly
(from left to right) while it is still right justified
what... more >>
use of DISTINCT in DataTable.Select Method
Posted by M.M Ansari at 5/27/2004 10:15:51 AM
Hi all
is it valid to use DISTINCT operator in select method of datatable? if yes
then what is syntax?
thanks in advance
Ansari
... more >>
Unable to restore focus to main window after calling dialog boxes
Posted by Steve Sargent at 5/27/2004 9:30:51 AM
Hi:
I'm having problems restoring the focus to my main window after
calling a couple of dialog boxes. Sometimes the focus is restored,
other times not.
In my code, when setting up an account, the user clicks the button and
the event handler for the button pops up. The event handler then
... more >>
Textbox with label class
Posted by Colin Stutley at 5/27/2004 9:23:03 AM
I find the task of placing Text manually next to a TextBox a pain - which is
only amplified when I move/align the textbox and then have to do the same
with the text.
Has anyone got example of a new class/component/helper which allows you to
drop a textbox onto a form, and have a 'Caption' prop... more >>
What the hell is going on with Form Inheritance?
Posted by Andreas C. Andreou at 5/27/2004 8:39:15 AM
I am trying to build an application in which I have some base forms (for
example a base edit form) on which I have some basic controls that I will
need on descendant forms (for example a grid and 2 buttons OK and Cancel)
I have though lots of problems on forms I create inheriting from those bas... more >>
PageSize in a PageSetupDialog ??
Posted by (cmrchs NO[at]SPAM yahoo.com) at 5/27/2004 4:07:52 AM
Hi,
how can I set the PageSize in a pageSetupDialog-box ?
I tried :
objPageSetup.PageSettings.PaperSize.Kind = PaperKind.A4
but the Kind-property is read-only.
So how ?
Thanks
Chris
**********************************************************************
Sent via Fuzzy ... more >>
Dealy after Menu Item selection
Posted by Prashanth at 5/27/2004 3:01:03 AM
Hi
I am developing a custom menu, where I need to put a 250 m.s. delay whenever user checks/unchecks a checked type of menu item. The reason is, we need to show the user, the changed option before dismissing the menu. Is there any option to do this in .NET
Thank
Prashanth... more >>
Updating status bar text when mouse moves over toolbar
Posted by Vipul Patel at 5/26/2004 11:16:02 PM
Hi
Programming language = C
I need to display the action which a button performs when the mouse moves over a toolbar(containing buttons)
I tried using the toolbar_MouseMove event, but e.Button always returns "None", hence, it cannot be of use
Can any body throw some light on this issue
Alte... more >>
viewing ms office files in a windows form
Posted by somebody at 5/26/2004 10:41:02 PM
how can i view ms office word files in a windows form? what files will be neede
i have visual studio .net installed in my computer
p.s. : i am beginner and i dont know many things of vb.net and framework.net... more >>
Color change in bitmap
Posted by pdavis68 NO[at]SPAM hotmail.com at 5/26/2004 10:24:59 PM
I have a real hard time understanding all this color matrix stuff. Graphics
has never been my strong suit but I keep getting dragged into it somehow.
Anyway, here's what I need to do. I have a bitmap that is black and white.
The white is transparent (easy enough with
Bitmap.MakeTransparent(Col... more >>
|