all groups > dotnet windows forms > january 2005
Filter by week: 1 2 3 4 5
SAMPLE IN MICROSOFT SITE
Posted by Siu at 1/31/2005 11:57:03 PM
Hi,
there is a sample of windows application which uses SQL Reporting Service,
but I don't know from where I can download it. Here is the link of the sample:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/RSAMPLES/htm/rss_sampleapps_v1_1s2q.asp
Please help me.
Thanks.... more >>
Possible bug in ListBox?
Posted by Ben Rush at 1/31/2005 11:39:30 PM
I would find it very hard to believe that I'm seeing a bug in the listbox
control, as I'm sure it's one of the more popular controls out there. But I
simply do the following:
1) Create a new Windows Forms application (C#/VB.Net),
2) Drag and Drop a ListBox control onto my designer.
3) In th... more >>
no active cell in read-only datagrid
Posted by Don at 1/31/2005 5:25:49 PM
George Shepherd's great Windows Forms FAQ has this article about creating a
datagrid with no active cell:
http://www.syncfusion.com/faq/winforms/search/856.asp
Unfortunately, this only works properly for datagrids that are not ReadOnly
(i.e. a row will become unhighlighted if you click the s... more >>
What is going on? C++, events, headers and cpp files.
Posted by Nicolae Fieraru at 1/31/2005 4:10:44 PM
Hi All,
I asked this question a few days ago and nobody answered me so far. I am
using C++ and Visual Studio .Net 2003.
Lets say I create a WindowsForms Application and I add a button to the form.
When I double click on the button, I create an event for click. Then I can
write all the code... more >>
TextBox displays text in reverse order of user input
Posted by Nigel B at 1/31/2005 4:01:01 PM
I have (nearly) upgraded an existing working VB 6 application to VB.NET using
the built in Vis Studio migration tool and a lot of editing. However, the
TextBoxes on Windows forms of the upgraded application display text as the
user types but in the reverse order. This effect occurs for letters... more >>
Client/server application and Windows Integrated Auth
Posted by Joubert at 1/31/2005 3:39:04 PM
Hi,
I have a .NET WinForms application that needs to identify the user and
authenticate this against a datastore (could be Access, SQL Server, or
Oracle). Currently, our login process is forms based so whatever login the
user enters, together with the password, are matched against a table i... more >>
datagrid contents changed
Posted by coderazor at 1/31/2005 12:42:22 PM
My user amends text in a datagrid. When this happens i want a Save button
that currently has enabled set to false to become enabled.
I have been messing around with the CurrentCellChanged event, however this
activates the button just by clicking within the grid.
I want the button to only bec... more >>
How Can I Have TopMost Form Without Stealing Focus?
Posted by dotNetDave at 1/31/2005 10:55:04 AM
I have a pop-up Windows Form that displays next on top of the system tray. I
can get it to pop-up just fine using .TopMost and .Show, but the problem is
that it seals focus away from the application that the user is currently
using... I don't want that. I have gone to the API level and used ca... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Kyepreview with combo box...
Posted by Ansari at 1/31/2005 10:31:44 AM
Hi All,
I have a simple requriement... I want then whenever a user press enter on a
form in moves to next control... For that purpose I wrote following code in
Form's KeyDown event and sets Form's Keypreview property to true...
Private Sub frmBHEntry_KeyDown(ByVal sender As Object, ByVal e... more >>
Binding.Format event with ComboBox
Posted by Kyle Baley at 1/31/2005 8:57:03 AM
I'm binding a ComboBox's SelectedValue property to a datasource and using a
custom Format event. The problem is that the format event never fires. Here's
some sample code that demonstrates this (create a form with a combobox on it):
Private Sub Form1_Load(ByVal sender As System.Object, By... more >>
menu shortcuts and language changes
Posted by AndrewEames at 1/31/2005 7:41:11 AM
Here's a tricky problem I just ran into.
1) Install the German language pack of the .NET framework
2)Create a menu bar with a File/New menu item and make the shortcut be
ctrl-N
3) Immediately after the call to InitializeComponent, add the following
code
CultureInfo ci = CultureInfo... more >>
Event PrintPage
Posted by Siu at 1/31/2005 7:39:09 AM
Hi,
I would like to create a PrintDocument which shows my data in a designed
table: but how can I design a table in my PrintDocument??How can I measure
the columns' length according to the contents, so that it looks like a table??
Here is an example of my PrintDocument:
Name | Surname | A... more >>
File upload as ASP.Net control??
Posted by No one at 1/31/2005 12:13:01 AM
I need to upload two files, one at a time. The only file control I can
find uses the <input type="file" />, so the handling code has to go in
the HTML side and not the code behind. I would much rather code this in
the proper place for good practice. Is there an ASP.Net control for
file up... more >>
Rename Datagrid columns, How???
Posted by zt at 1/30/2005 4:33:30 PM
How to loop for each datagrid column and rename it?
Is it different mechanism if this is webform?
Here You have example i have tryed
For Each col As System.Web.UI.WebControls.DataGridColumn In DataGrid.Columns
col.HeaderText = Translate(col.HeaderText)
Next
But it does not work? Why?
... more >>
ProgressBar/Custom ProgressBar
Posted by Extreme Datasets at 1/30/2005 12:51:02 PM
Hello All,
Does anyone know of any nice custom ProgressBar libraries?
Thanks... more >>
Winforms over LAN and Internet - Best approach? (WS, Remoting, etc)
Posted by kiln at 1/30/2005 9:46:27 AM
I am starting a project that may be suitable for vb.net, using windows
forms. I want a rich client, thus win forms vs web forms. Most users
will access the app data over a LAN, but some will be remote users,
accessing via vpn. I could use terminal services for this but am
thinking that an al... more >>
VS.NET 2005 beta and .NET Framcework 2.0
Posted by Paul Abraham at 1/30/2005 1:23:57 AM
Hello,
Can I use libraries e.g. MS Application Blocks (which build on .NET
Framework 1.0) in VS.NET 2005 (Framework 2.0)?
Is there any problems?
... more >>
Protection via activation / product registration keys
Posted by Paul Aspinall at 1/29/2005 4:21:15 PM
Hi
Can anyone offer any hints / tips for creating registration keys /
application activation, as software copy protection measures for a Winform
app developed in C#?
Thanks
... more >>
How to develop Smart Client application?
Posted by paulyau NO[at]SPAM gmail.com at 1/29/2005 7:16:12 AM
Hi all, I want to develop a smart client application so that I can use
features like one click update, easy deployment, offline ...
Which development tool i should choose to start the project?
VS.NET 2003 or VS.NET 2005 beta
Would it be difficult to develop smart client application by using
... more >>
Form
Posted by Mihailo at 1/28/2005 10:18:03 PM
I am new in VB.NET and at the bigining of my work I have a problem. I wont
to make small program which contain 3 forms. In the 1st Form I put 10
Textbox which
contents I need to display in the 3th form. This 3th form I connect with
button
OK. I wont that user in 1st form input name, date of bea... more >>
Listview vertical scroll
Posted by saurabh at 1/28/2005 2:51:43 PM
Is the listview (not listbox) not vertical scrollable?
I have the style set as List and scollable = true but don't seem to get the
vertical scroll.
... more >>
Adding an event handler using reflection?
Posted by John Dumais at 1/28/2005 1:15:38 PM
Hello,
I'm trying to create an application that can allow users to extend the
menu by supplying the event handlers in their own libraries. My first
thought was to use reflection to specify the event handler, something
like this...
// The user's assembly has already been loaded and we have... more >>
Custom Control
Posted by seshu at 1/28/2005 12:37:12 PM
Hi,
Can any one help me in creating the custom control in C-Sharp .Net.
I want to create a transparent resizable rectangle which when placed on any
window should be able to see the contents of the window.
Thanks in advance
... more >>
datagrid vertical scroll bar
Posted by oscar at 1/28/2005 6:51:10 AM
when the datagrid gets enough rows a vertical scroll bar shows up, but is
there a way to make the vertical scroll bar always show up? i do not want
to add a vertical scroll bar component, since the datagrid already has its
own scroll bars. i just need the vertical scroll bar to always sh... more >>
The splitter
Posted by Bogdan Nedelcu at 1/27/2005 5:50:53 PM
Hello all,
Few days ago I participated in a conference here in Bucharest, about .NET -
CLR and Forms - where we had the pleasure to meet some people from
Microsoft (Jason Zander (PUM CLR), Brandon Bynum (Test Manager .NET Client),
Ronald Laeremans )
It was a nice evening, we had the chan... more >>
Moving an irregular shaped form in an MDI Container
Posted by Roger.Smith at 1/27/2005 1:23:23 PM
Overview:
I have been creating custom shaped forms using a bitmap to set the form's
region. This has worked well, and I have had a lot of success finding
resources to help out. However, most of the examples that I have located
have been stand-alone forms, where the single form is the entire... more >>
Base64String
Posted by Fred Herring at 1/27/2005 10:41:01 AM
I am entering the world of encryption in my windows form application and have
a question or two about formats. I start out with a string that I would
like to encrypt and store in my sql server database as an encrypted string.
Dim MyString as string = "Now is the time for all good men to com... more >>
TreeView Positioning
Posted by Ivan Gibbs at 1/27/2005 9:40:33 AM
I have a treeview to show the status of a nework system.
Periodically, my application receives an update on the
status of the system and the treeview is updated. After
the update, the treeview resets its' scrollbar to the top
position. How can the treeview preserve the original
scroll ba... more >>
Application.Exit alternative
Posted by Rafa® at 1/27/2005 8:51:04 AM
I must run my Windows Forms APP from my local Intranet...
But when I use Application.Exit or End (in VB.Net) to exit the App, it gives
me an error when a run that from a file share...
It's a SecurityException, I know, it's because it must call some
UnmanagedCode and don't have permission to ... more >>
How to Force Push/Pull on Bound Object
Posted by darndt at 1/27/2005 8:15:04 AM
How can I force my form to re-read fields from the bound object?
In my case, I have a form that uses simple binding to bind to properties on
an object. I'm using the Format/Parse events to manage data flow in/out of
the object. Everything works very well.
Sometimes, I want to trigger the... more >>
Resize tabControl
Posted by at 1/27/2005 6:41:13 AM
Is there a way to resize a tabControl when the form itself is=
resized? For instance, I have a tabControl with two tabs. Each=
tab has a rich text box on them. If the form is resized as a=
whole, i would like for the tabs tobe resized accordingly, and=
then the text boxes resize according... more >>
Form ReSize Problem
Posted by TreeView Custom at 1/27/2005 5:13:03 AM
Hi
I Placed a lot of controls on forms.By default it is in maxmized position
but when i reize form i want to adjust form controls to screen postion
automatically but right now when i resize controls are staying like that.
i tried with setting anchor property also but it is not working.
... more >>
TreeView - Scrollbar problems
Posted by RichS at 1/27/2005 4:03:03 AM
Hi,
[ BTW I'm using C# .Net 1.1 ]
I'm using a TreeView and adding nodes programmatically. However even though
the text for the nodes doesnt require a horizontal scrollbar it is also
visible when I start my app. If i resize the TreeView so that I do need a
horizontal scroll bar I get a ... more >>
Text Display in MDI
Posted by podduturiniranjan NO[at]SPAM yahoo.com at 1/26/2005 9:23:22 PM
Hello Friends
Iam niranjan Developing MDI Application in vc++6.0
when iam displaying text in windows iam using OnDraw and OnChar
functions.
in OnChar function iam incrementing the x,y positions accoording to
Key strokes. and making the string buffer to empty in "Enter" Key
stroke
in OnDra... more >>
Browser Control in MDI
Posted by dmsy NO[at]SPAM yahoo.com at 1/26/2005 7:22:14 PM
I am writting a MDI application (like VS.NET) that uses the IE Browser
Control. This is in .NET envoironment, but I have seen this problem on
others (VB).
I have a "file menu -> new" that creates a new MDI Child that contains
the IE Browser Control. It loads www.yahoo.com and I can scroll righ... more >>
Newbie question about system font size
Posted by Hin at 1/26/2005 6:20:44 PM
After increasing the system font size (e.g. 96 -> 120 dpi),
the form will becomes larger.
How can i know by what ratio the form is enlarged?
At first i think it is 120/96 (= 1.25) but seems i'm wrong...
Anybody knows the solution?
Thanks!
... more >>
ContextMenu Popup event fires twice in RichTextBox.
Posted by jdlwright NO[at]SPAM shaw.ca at 1/26/2005 3:35:23 PM
Hi,
I can barely believe that searching for "contextmenu richtextbox event"
in google groups found only a handful of results and none relevant to
this problem... so it must be me doing something wrong (although, I can
double-barely-believe that ;-))
The problem is, if I press the Apps key... more >>
.NET WebControl security warning
Posted by Wells Caughey at 1/26/2005 2:39:50 PM
Hi everyone,
I have written a .Net WebControl that gets embedded in an Internet Explorer
webpage, and it seems to work fine most of the time. However, recently my
boss got a new laptop that came preloaded with Windows XP and when ever he
browses to the webpage that contains the WebControl he ... more >>
Running Macro in windows form application
Posted by Shahzad Atta at 1/26/2005 2:07:40 PM
Hi All,
I was reading msdn documentation pertaining to macros. It says that VS
macros currently do not support win forms. Actually I need to write a macro
which will call a COM component and pass it two parameters. I need to use
this macro in a winform application. Is above statement apply in... more >>
Open File Dialogbox
Posted by Charles A. Lackman at 1/26/2005 12:52:26 PM
Hello,
I am running VS 2002 and need a FolderBrowserDialog . I could create one
using a DirListBox and a DriveListBox but it does not allow browsing to a
network.
Is there a way to display the network using a DirListBox and a DriveListbox?
Is there a way to use the VS 2003 FolderBrowse... more >>
ComboBox DropDown does not display list item
Posted by DropDown list is invisible in Windows XP at 1/26/2005 9:01:02 AM
Problem: If I click to display list items in ComboBox, all list items are not
visible to select. However, if I select one of them, then I can see it on
ComboBox.
This problem only happens in Windows XP. In Windows 2000 it does work fine.
I can work around using DrawMode.OwnerDrawFixed and O... more >>
How do I terminate Application immediatly
Posted by msnews.microsoft.com at 1/26/2005 8:47:39 AM
Hi there,
I wan't to run my application with argument that causes the application to
do something without showing up gui.
It works but in the end shows blank form and does not terminate (see code
snippet).
How can I terminate my application immediatly?
--------------------
public Fyri... more >>
TabControl - Owner Drawn TabPage Dividers
Posted by RichS at 1/26/2005 2:33:02 AM
Hi,
[ BTW I'm using C# ]
I am trying to create a custom style tab control. I've managed to code it
so far so that I can custom draw the TabPage dividers ( the buttons at the
top of the TabControl that select the TabPage ).
My ultimate goal is to have fancy style TabPage dividers which ... more >>
Get Text from System Dialog Box
Posted by NightHog at 1/25/2005 10:27:00 PM
How do I programatically get the text from a popup dialog box?
Thanks.
... more >>
BeginInvoke / EndInvoke race condition
Posted by stork at 1/25/2005 9:03:40 PM
Because the results to BeginInvoke occur async'ly, it stands to reason
that each call of execute is actually a record on a queue, and
therefor, each asyncResult must actually be a separate item on that
queue. Conceptually, the nicest place to put the IAsyncResult to use
for EndInvoke is with th... more >>
Error in Form Constructor
Posted by Steve W at 1/25/2005 8:32:58 PM
We are hitting a problem that we can't explain and wondered if anyone has
seen this before or can suggest how we can stop it happening :
Form 'A' inherits from System.Windows.Forms.Form
Form 'B' inherits from Form 'A'.
Form C inherits from Form B.
Form B (the one in the middle) has a TextBo... more >>
1 form listening for event in another form?
Posted by oscar at 1/25/2005 2:03:03 PM
i have 2 forms and i would like to make the 2nd form listen for a change in
the first form. is there a way to do this? i'm already passing "this" to the
2nd forms constructor so it will update when it has focus again, but would
like it to change as form1 changes.
thanks in advance... more >>
adjusting the propertygrid's help panel
Posted by cOdEmOnKeY at 1/25/2005 1:41:08 PM
Does anyone know how to adjust the size of the propertygrid's help panel
programmatically? I want to increase/decrease the size of the help panel
when I load a specific object into the propertygrid.
I tried getting the help panel in the propertygrid's control collection and
adjusting the ... more >>
How to save preferences for an app?
Posted by Sam Hulick at 1/25/2005 12:19:54 AM
Before .NET, I used to use the registry to store app preferences. But
apparently now there's some other way.. like storing the data in .xml
files in \Documents and Settings\<user>\Application Data\<your app name>.
Could someone point me in the direction of some info or tutorials on how
to ... more >>
develop component like error provider
Posted by Ahmed at 1/25/2005 12:09:03 AM
I am developing validation component, I want to be able to expose a property
on every other control in the forms.
Error provider and tooltip controls are examples of what I want to develop.
when you add error provider to the form, every control in the form has few
additional properties realte... more >>
|