-
- process.start("winword", filename) can not open file with space in the path and name
by BLiu
- 1 Replies
- Last post
by BLiu
- Hi,
I am trying to write a class which can open file with selected application. for simplicity, now I just hard code the varaibles.
the problem: if the path or file name has space in it, even it exist, winword still can not open it.
could someone kindly show me what I did wrong and how to do it properly.
Thanks in advance.
Belinda
________________
public static c
-
- Pagination for printing
by swapna_n
- 2 Replies
- Last post
by swapna_n
- Hi,
I am printing around 5 pages of contents from a windows application.
I am using e.hasmorepages for specifying what are the contents to be printed on which page.I am actually hardcoding the number of pages and the ocntent in each page. I am using the graphic.DrawString to print all the text to the printer.
But now, I need to automate this paging.
I mean, the content should automatic
-
- Thoughts on Drag Once Databinding.
by cclements
- 1 Replies
- Last post
by cclements
- MSDS Forums Gang,
After watching a couple MSDN TV tutorials on "drag-once" databinding I decided to try and implement it in a "real world" application. It has had its moments of beauty, but it has also been a struggle in some respects. I have two major issues with this method of databinding. I am interested to hear feedback from some professionals in the field.
Fi
-
- connect datagridview with datarow
by venp
- 1 Replies
- Last post
by Gavin Jin - MSFT
- Hi
How to connect datagridview with datarow. I have a set of rows after selecting from a datatable.
Those rows i need to display in datagridview. Right now i'm using
liike this
foreach ( DataRow dr in drs)
dtTemp.ImportRow(dr);
Adding each row to temp table and connecting that to datagridview. Is there any alternative. Beacuse i might have more than 10000 records in data
-
- Invisble checkbox in datagridview
by Ehab_Hosny
- 3 Replies
- Last post
by Solar9
- hi guys,
i have a datagridview and i added checkbox column to it but i need the checkbox to be visible in some rows and invisible in other rows, i tried to find a way and all i could reach is to make the checkbox read only
/////By this way
datagridview1[2, 5].ReadOnly = true ;
but the Visible property is Get only , so is there anyway to make it invisble in some rows
Wish to
-
- Deleting and creating controls via code
by Yahya
- 9 Replies
- Last post
by EvilPenguin
- Hi Is it possible to enumerate all controls on a form and then save the info in an xml file via code Is it possible to reverse the process i.e. read info from and xml and recreate all controls on a blank form I am just trying to find a way to cerate "templates" so users can choose which controls they want to see and with what attributes; position, size, colour etc. A code example would b
-
- Height of Title bar and more?
by Michael J Brown
- 11 Replies
- Last post
by leoport
- I am trying to determine how I can get the height of the title bar of forms and the width of the border. See image below. I did not define the border, its there by default. By doing some tests I determined the title bar is 29 pixels regardless of screen resolution and the border is 3 pixels. I would think there was a property to access these but I am not seeing one. Does anyone know a handy litt
-
- Switching forms in Visual C++
by Alxenen
- 2 Replies
- Last post
by alxandr
- Ok... I've been reading this forum for an houer now and i can't figure out to do this... I have created a new windows forms project in VC++... Then i added a second form (named Form2) and i added a button on each of the forms. The buttons are both named button1. What i want is when you click button1 on form1, form1 dissapares and form2 shows up and versa vi. The problem is only I need to know acca
-
- Nested Forms, better button graphic, layout???
by TwilightBrigade
- 6 Replies
- Last post
by TwilightBrigade
- I am trying to design an application where I can register students, then register courses for registered students. I am having hard time figuring out a way, on how can I load one form inside the other at a certain position. Then, Is there any ways to get better button graphics and form graphics. Also, what would be a good layout for me to use, where I have a collection of buttons and each of them
-
- Undo option not working.
by Dave S. Anderson
- 1 Replies
- Last post
by Dav? S. A???????
- Any changes I make in the designer do not seem to allow me to use the Undo feature. (IE: Edit -> Undo).
So for instance if I create a tab control, then delete it, I can't undo that delete action because the undo option is not enabled or allowing me to use it. Is there a way I have possibly disable the undo feature or a way I can enable it again for the designer
-
- Translate bindingNavigatorCountItem text...
by anders_sms
- 4 Replies
- Last post
by anders_sms
- Hi all, I am trying to translate the text in the bindingNavigatorCountItem. It seems that everytime the bindingnavigator is refreshed the original text appears. Does anyone have an idea of which event the text should be translated in If I set the text in e.g Form_Load, the text is translate to what I set, e.g "av {0}" (Norwegian), but as soon as the datagridview gets focus the text is r
-
- Default display index of Datagridviewcombobox Cell
by desifunde
- 6 Replies
- Last post
by Rong-Chun Zhang - MSFT
- Hi, I am using a Datadridviewcomboboxcolumn which is using a childtable-parenttable relationship for a datasource, the data is being added to the datasource at run-time. Be default all the comboboxes created ( in all rows) show an empty cell, what event/default index setting can I use to display the first item in the combobox for each datagridviewcomboboxcell by default Thanks
-
- Text can't be fully displayed on a button
by zheny.lu
- 2 Replies
- Last post
by Salman
- I have a few buttons which have been added to a groupbox. Some of the buttons have pretty long texts (3 or 4 words) assigned them. I've written this application on a desktop and set the size of each button so that it can well fit its text. But when I run the application on a laptop which has a smaller screen the texts on the buttons can not be fully displayed(e.g. only two and half words
-
- detect user inactivity (idle, timeout)
by sovande
- 9 Replies
- Last post
by sovande
- I know this question has been addressed recently but bear with me.
My application (vb.net 2005) consists of several forms in a hierarchy that present
info to the user. Form1 calls form2 (showdialog) which calls form3 etc...
I want the forms to timeout and return to form1 if the user walks away (ok, its a kiosk app)
Each form has its own timer(system.win.forms.timer). When t
-
- monitor files being dowloaded from a server using a progress bar.
by steve1_rm
- 2 Replies
- Last post
by Ðãv? S. Â??????
- Hello, VS 2005 My program will download files from a server that is on a local network. I would like to monitor the download by using the progress bar. Currently the files are downloaded using a separate thread. I am just wondering how would I display a progress bar, as the progress bar will be on the UI thread and the files will be downloaded on a separate thread. The method I use to start my thr
-
- Flash objects on c#
by haydendo
- 14 Replies
- Last post
by haydendo
- Hello! I tried to insert shockwave flash object on my form using the traditional way of com objects, but an error appears stating that "it is not registered" Could you please please help me fix this problem or instruct me the proper way of inserting flash objects on my form.
Thanks.
-
- Help in displaying local time in datagridview from UTC time format
by akaRickShaw
- 2 Replies
- Last post
by akaRickShaw
- Hi, I can't seem to find a good help for this one. In the table (from database) that I am querying, the dates are all stored in UTC format. My problem is, how can I show those dates on the GUI/datagridview as local time In my googling, I found that someone mentioned something about DateTimeMode property of datatable column that might help. From my understanding, when you specify DateTimeMode = Da
-
- Microsoft User Interface Guidelines/Conventions
by Floris Verstegen
- 3 Replies
- Last post
by Derek Smyth
- Hi,
I'm looking for some guidelines and/or conventions on how to create User Interfaces that have the same look and feel as most Microsoft applications have like Microsoft Office. In the past I did found something about this but I'm not able to find anything anymore.
On this page there is a link called Official Guidelines for User Interface Developers and Designers and I think that it is
-
- How do I know when an item has been added or removed to the listview control?
by Paolo Ponzano
- 13 Replies
- Last post
by Damiaan
- Hello, I was trying to update the number of item present into a listview (in detail mode), but I was not able to find in the Listview an event that does what I need. I've item that are being added and removed and I wanted to show how many are still present. I've tried to use the event ControlAdded and ControlRemoved, also CacheVirtualItems. Do I need to extend the ListView control and add an event
-
- Threadsafe calls for a dialog messagebox?
by Snixtor
- 9 Replies
- Last post
by nobugz
- I'm having a bit of trouble making thread-safe calls on a Form I've written for use as a dialog. Basicly the form I've written is for display printing progress. The user chooses a bunch of documents to print on the "PrintForm", and then "PrintProgressForm" is displayed as a dialog of the PrintForm. Within the PrintProgressForm I want to occasionally display a message box indica
-
- User Control for Junction Table
by Chris Molland
- 3 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi, and thank you for reading this. I am creating an application (Visual Studio 2005 - VB) which will guide the user through a number of screens asking them to choose from items in ComboBoxes. The first choice by the user will influence the items available in the second ComboBox, and the second in the third etc. The principle by which this works should be simple. I have created an SQL database wit
-
- Custom User interface during setup
by Prtssr
- 0 Replies
- Last post
by Prtssr
- Need help regarding setup and deployment using VS2003
I have created a web setup for my project using MSDE BootStrapper and VS2003 and its working fine. Now the issue is the MSDE becomes a prerequisite for setting up my project. What I really want is to bring in a custom form and ask the user his preference to install the MSDE or he just want to just setup the project alone. So I need t
-
- Getting info from 2 db's into a datagrid
by Korsten
- 6 Replies
- Last post
by Korsten
- Hello,
First, I hope I put this on the right forum.
Second, I hope someone can help.
I'm working on VS2005 C# PPC program and am using SQLServer 2005
My problem is this:
I have a Datagrid on my form and when the form loads I want the Datagrid to show 3 collums out of 2 db's
example
db1 db2
aName bNumber
aNumber bName
aSt
-
- Binding to an SQL Database Column
by Trekkie_SG9
- 2 Replies
- Last post
by Gavin Jin - MSFT
- I have created an SQL Databse, and have been able to display data from 3 of its 4 columns in my Visual Basic form. However, when I attempt to databind a Label's Text to the 4th column in my database's table, I only get the option to bind it to any of the first 3 (the 4th column doesn't show up among the options).
And when I go to "View Table Data", I can see that there are 4 columns,
-
- Tooltip in statusStrip
by mEErEck
- 6 Replies
- Last post
by Rhapsody
- Hello, I am trying to show a tooltip of components in a toolStripStatusLabel of a statusStrip. I have found how to set the tooltiptext: this.toolTip1.SetToolTip(this.button1, "Tool Tip text"); but i have no clue how to bind the text to the toolStripStatusLabel to show it whilst a mouse is over the button and hide it after the mouse goes out of it. Thanks in advance, Best regards M.