all groups > dotnet windows forms > june 2007 > threads for june 8 - 14, 2007
Filter by week: 1 2 3 4 5
Embedding fonts
Posted by ~~~ .NET Ed ~~~ at 6/14/2007 4:22:26 PM
I have an application in which I want to use a font that is not available
(standard) in Windows. Now, the font is free and I would like to embedd it
into my WinForms application. How can I do that without requiring the user
to install the font on their computers \windows\fonts directory?
Em... more >>
Reference Application Variables Inside DLL
Posted by pauld NO[at]SPAM maronsoftware.com at 6/14/2007 3:27:38 PM
I want to be able to access some global variables (defined in a
winforms "ApplicationEvents.vb") from a DLL.
I assume I need to pass a reference to the application object to the
DLL. If so, how would I define it in the DLL and how would I set it
in the main app?
Is there some other way t... more >>
What event fires when tabbing to a hidden TextBox in VB.Net
Posted by Bill Fallon at 6/14/2007 9:13:03 AM
I have a Windows.Forms.Panel object that contains a column of TextBox
objects. When I tab to a text box that is below the visible area of the
Panel, the panel automatically scrolls vertically to make the TextBox
visible. What I need to know is what event gets fired when this scrolling
occu... more >>
?? Setting Hotspot on Custom Cursor ??
Posted by A. Foxmore at 6/14/2007 6:59:00 AM
This is driving me nuts -- I create a cursor at runtime from an Image. The
problem is that the Hotspot is always the center of the resulting cursor.
There is a Hotspot property on the Cursor class but it's read only.
Is there anyway to set the Hotspot of a dynamically created cursor?
Thank... more >>
Printer status and monitoring (WMI , SNMP)
Posted by lockness at 6/14/2007 5:29:00 AM
I'm using VB.NET 2005 (with a little c#)
Before printing a document my app need to know if the printer
is functioning. A paper jam, low on toner etc could have knocked
the printer out. I'm trying two approached to this: WMI and SNMP.
(BTW the printer is attached using its network interface. )
... more >>
Hide powerpoint scroll bar and auto navigation PDF in web browser control
Posted by Torsten Z at 6/14/2007 12:00:00 AM
Hi,
the web browser control is very useful to show several file formats. I have
a presentation with automatic navigation form slide to slide. Therefore I
need hiding all scrollbars. Any idea?
The second problem related to showing PDF document. Opening the document
directly it is showing in ... more >>
How to determine where SaveFileDialog's initial directory will be?
Posted by Richard Lewis Haggard at 6/13/2007 4:00:06 PM
I want to generate a reasonable but unused file name and pass this name in
to a SaveFileDialog. The problem is, I do not seem to be able to figure out
what the SaveFileDialog class is going to use as an initial directory. In
practice, it appears that the class knows where the previous SaveFile... more >>
resizing a panel (VS2003)
Posted by herc at 6/13/2007 2:14:09 PM
I am drawing a blank here, I have a feeling the solution is beyond
simple, it simply escapes me...
I have a .Net 1.1 form that has a lot of controls on it. Two of the
controls (actually 8 controls are involved total) are list boxes. The
total height of both controls is determined at run time... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Compress & Upload files in .NET 2.0
Posted by Ibrahim. at 6/13/2007 8:00:02 AM
Hi,
I have function in c# program which selects a file & uploads to a directory.
I want compress/zip the selected file programatically & upload the zipped
version.
How can I do this, is there any free library/class available in .NET 2.0
Framework ??
Thanks,... more >>
C# reparenting - focus problem
Posted by jan.loucka NO[at]SPAM gmail.com at 6/13/2007 2:30:52 AM
Hi,
I looked around for this specific problem but could not find any
answer - there's few things in VB but still nothing exactly like this
so I'd appreciate any help.
We're writing C# WinForm application that need to "silently" use
another app (called MapInfo) within itself - the intention is t... more >>
Help with classes
Posted by Jared at 6/12/2007 10:20:11 PM
Hi,
Problem is when I update a copy of a object variable it updates the object
variable it was copied from. see code below..
Sub Main()
Dim cat1 As New cat
Dim cat2 As cat
cat1.Color = ConsoleColor.Black
cat2 = cat1
cat2.Color = ConsoleColor.Blue
Trace.WriteLine(cat1.Color.ToString)
... more >>
Adobe Flex vs. .NET WinForms
Posted by Jules Winfield at 6/12/2007 3:48:12 PM
Guys,
I've been designing applications for the financial services industry using
MSFT technologies for many years (Win32 API, MFC, and now .NET WinForms).
All applications are Internet-based, with a "thick client" which makes calls
to my grid of servers via a socket or remoting connection.
... more >>
foreach in a .settings file
Posted by Carlos Sosa Albert at 6/12/2007 3:12:21 PM
Hi guys,
Is there a way to use a foreach (C#) to go through a settings file like
this?
I can't find a collection in MyProject.MyConfigurationFile.settings.xxx, I
cant only access the settings refering like
MyProject.MyConfigurationFile.settings.Default.key1,
MyProject.MyConfigurationFi... more >>
Designer auto assigning bogus string resource values
Posted by Flyte at 6/12/2007 9:48:55 AM
Hi All.
We are experiencing weird behavior from the VS2005 designer. It seems
that at random, the designer generated code will assign a global::
resource string to a text property of a control. We see this happening
when the text property has no default value.
In the designer.cs file, it ... more >>
?? Why is PictureBox.AllowDrop Discouraged ??
Posted by A. Foxmore at 6/12/2007 9:41:01 AM
Does anyone know why the PictureBox.AllowDrop property is discouraged? The
documentation indicates, "This property supports the .NET Framework
infrastructure and is not intended to be used directly from your code."
WHY??
I have several PictureBoxes that I would like to use as sources and t... more >>
App.Config versus exe.config
Posted by Chris Zopers at 6/12/2007 8:21:57 AM
Hello,
I've developed a dll that uses an App.config file to read some settings.
After that, I've developed two executables and both use the dll I just
mentioned.
After building the exe's, both exe's get an exe.config file in the bin
directory and this is the same file as the App.config fi... more >>
DockStyle value
Posted by Bulat Baltin at 6/12/2007 6:11:48 AM
Hello,
I try to use Dock property in UserControl (if it matters) in the
following way
this.Dock = DockStyle.Left | DockStyle.Bottom | DockStyle.Right;
At runtime I gets :
System.ComponentModel.InvalidEnumArgumentException: The value of
argument 'value' (7) is invalid for Enum type 'Doc... more >>
ClickOnce: Certificate cannot be validated
Posted by Stefanie Mehl at 6/12/2007 1:37:02 AM
Hi,
we recently purchased a CodeSigning certificate from a CA for signing our
ClickOnce manifests. We put the certificate into the certificate storage and
use the SignFile task of MSBuild and the thumbprint we see in the storage.
However, when we run the .application file on a freshly instal... more >>
Datagridview
Posted by Ahmd at 6/12/2007 12:00:00 AM
Pls Help me
I have one invoice form and an Item form.
Item form consisting of a Dataviegridview showing all items.
(itemcode,name)
Invoice form has dataviewgrid of invoice
(itemcode,name,qty,price,total)
when i click items cell in the invoice form dataviewgrid i am calling
the item form.
w... more >>
auto update error
Posted by Sandy Ryan at 6/11/2007 2:12:01 PM
i have a windows form application that goes to the webserver to verify that
it has the latest version.
Recently i started receiving
URLDownloadToCacheFile failed with HRESULT '-2146697191'
Error: An error occurred trying to download
any ideas, it was working.
thanks... more >>
How to set the black arrow at the right row in a DataGridView?
Posted by david.vincent NO[at]SPAM ufo.org at 6/11/2007 1:50:12 PM
During the initialization, I set the current selected row to the first row
of my DataGridView.
But the black arrow of the first column (what is the aim of this arrow?) is
set at a random row, not the same row that my selected one.
How to force the same row at the initialization time? (after the ... more >>
My first C# project
Posted by Arjen Logghe at 6/11/2007 1:35:56 PM
Hello all,
I've written my first real C# program. I am posting this here, because
I would like your opinion. Is it good, bad, where can I improve etc.?
The project is a simple calculator, I've got the basics working and
I'll probably extend its functionality with a filelogger and
memorybutton... more >>
DateTimePicker - keeping the dropdown open
Posted by Andy at 6/11/2007 1:08:47 PM
Hi,
I have a request from my users. They would like the calendar drop
down to remain open even after they click a date, because they would
like to 'count' six to 10 weeks into the future.
Is there a way to keep that dropdown open until the control loses
focus?
Thanks
andy
... more >>
setting focus on a winform
Posted by AVL at 6/11/2007 12:46:01 AM
Hi,
I want to set focus on a textform when my form is displayed to the user.
I've set tablndex of textbox to 0 and tried the
textBox1.Focus()..but still the text in the textbox is not being
hightlighted...
how shud i proceed
... more >>
windowsforms or WPF?
Posted by Allen at 6/11/2007 12:00:00 AM
WPF is released, Orcas (VS 2008) is coming. Although Windows Forms will be
supported for long time, is it a better choice to turn to WPF now?
... more >>
How to modify inherited dataGridView component
Posted by Donald Adams at 6/11/2007 12:00:00 AM
I didn't get any satisfactory answer by searching the web so I'll ask here.
I'm doing visual form inheritance(.net2.0 WinForms), but I have discovered
that some components, even though set to protected in the base form, do not
allow me to modify their properties in the designer. I can set th... more >>
PNG alpha seems to be with 0% or 100%
Posted by sklett at 6/10/2007 10:33:48 PM
Here is my setup:
Borderless form with backgroundcolor = transparencykey
single docked picturebox control hosting a PNG with transparency
It's doing what I want except for one small problem: The alpha on the PNG
seems to only work as a simple bit mask - that is, it's either 100%
transparen... more >>
how to pass connection
Posted by drama at 6/10/2007 10:56:25 AM
information from form1 to form2 one time in holle project
form exitample
-------------
public partial class Form1 : Form
{ public Form2 f2 = new Form2();
public Form1 f1 = new Form1();
string st = "server=localhost;user id=root; password=;
database=nwin; pooling=fals... more >>
PropertyDescriptor SetValue not called
Posted by Seth at 6/10/2007 10:54:02 AM
I am attempting to create a specialized PropertyDescriptor for the Location
property on one of my custom controls. When I attempt to debug it, my
breakpoint in GetValue gets hit when I expand the Location property in the
property grid to reveal the child properties (X and Y). However, it a... more >>
ClickOnce and User Managed Documents
Posted by JeffDotNet at 6/9/2007 8:40:01 PM
I have an application that I would like to deploy via ClickOnce. I have
read from several sources you never want to store end-user managed data in
the application data of a click once application because it will be removed
on subsequent upgrades. However, I haven’t seen any posts that ... more >>
ListBox question
Posted by Jerry J at 6/9/2007 1:28:02 PM
I have two single selection list boxes on a windows form. Both forms get
bound to data in an ArrayList (IList). I want the data in the first list box
to be visible when the form loads. The data that appears in the second list
box is dependent on the slelection of the item in the first list bo... more >>
Saving a panel to a Graphics (Printing)
Posted by she_prog at 6/9/2007 10:58:26 AM
Dear All,
I need to save the content of a panel to a bitmap. The panel can have
many child controls which also need to be saved. The problem would be
solved if I could have the panel saved to a Graphics object, which is
the same as if I'd need to print it. It'd be easy using
Control.DrawToBit... more >>
Suppress focus events of a textbox control in Validating event
Posted by Hamed at 6/9/2007 12:00:00 AM
Hello
I have a Data Entry Form having some controls including a TextBox. When the
user types an entry, I query a table and if it was entered before, I ask the
user (using ShowModal method of a custom message form) if he wants to see
his old entry in a new form. if he/she choose Yes, I creat... more >>
Why is a sound played when I press alt-enter on a form?
Posted by yesthatmcgurk NO[at]SPAM gmail.com at 6/8/2007 8:14:45 PM
The subject's the tl;dr version.
The situation is that I'm zooming my form to fullscreen when I hit alt-
enter (kinda like media player behavior). Now my code to go to
fullscreen does not cause the windows "default beep" sound to play.
But when I hit alt-enter on the form that sound is played... more >>
Static Proerties in C#
Posted by Carlos Sosa Albert at 6/8/2007 6:59:37 PM
I'm trying to work with STATIC properties in C#. I have some properties I
get from the registry, so I don't want to instance the class.
I have something like this, but I cannot get it to work. Whenever I try to
access these properties from other classes or project in the same solution
(refere... more >>
Issue getting the value from a Row["Column"]
Posted by Carlos Sosa Albert at 6/8/2007 5:28:05 PM
Hi guys,
Fighting with C#...
I have this code, and I can't find what I'm doing wrong... Any hint, please?
foreach (DataRow myRow in myDataSet.Tables[0].Rows)
{
strMyString = myRow["MyColumn"];
}
Error: Cannot implicitly... more >>
Finding the currently actrive window from a background application
Posted by Bill at 6/8/2007 1:48:01 PM
In C#...
I need to create and application that will run in the background and listen
for user mouse clicks anywhere on the desktop or any open application. When a
mouse click happens, it will catch that event and get a reference to the
active application...
Is this possible?
Can anyon... more >>
Object reference not set to an instance of an object
Posted by Sam at 6/8/2007 11:38:01 AM
Please I am trying to understand the arraylist.
Please anyone help; why I am getting this message "Object reference not set
to an instance of an object" when line no (13) get executed in the following
code:
1- ' Create a new ArrayList to hold the Customer objects.
2- Dim customerArray... more >>
Determining when value changed in DataGridViewCell from derived cl
Posted by Oldman at 6/8/2007 7:37:01 AM
I am not seeing a clean way from a derived DataGridViewCell to determine when
the value is changed. The value changed event gets thrown in the
DataGridView not the cell. What am I missing?... more >>
winforms + resize issue
Posted by AVL at 6/8/2007 5:01:03 AM
hi,
i'm a newbie to winforms..
in my application..i've created a main form..
i show the other forms as dialog form on click event of buttons of my
mainform ...
but, here is a small problem..the forms which i show as dialog are resizable..
I can drag or shrink the form..which i dont to happen.... more >>
|