Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. moongirl129

    Problem programmatically opening docx file

    Ok it took a while to find out the correct answer to this- I'm posting the answer to hopefully help anyone else coming up against the same problem and not wanting to *hack* a rough solution. Here goes: Firstly you should never reference a path in your code like...
  2. moongirl129

    Problem programmatically opening docx file

    Jason, thanks for your suggestion, however...... Sorry I'm feeling a bit stunned. Surely one of you C# developers out there has developed an app that either saves or references a document on a Vista PC. Has no one else come across this? And I can't believe that there is no way of doing this...
  3. moongirl129

    Problem programmatically opening docx file

    But I try and avoid hard coding any file paths if I can - is there really no other way to reference this path? Doing it the way you have suggested will mean having to have an XP version of the software and a Vista version! Any other suggestions?
  4. moongirl129

    Problem programmatically opening docx file

    I am opening the document like this: string fullPath = rootFolderPath + Properties.Settings.Default.reviewFolder + "\\" + thisReview.Reference + "\\"; string WordfilePath = fullPath + thisReview.Reference + "_Manual.docx"...
  5. moongirl129

    Problem programmatically opening docx file

    Yes that may be but I don't believe it is - has anyone else experienced this??
  6. moongirl129

    Problem programmatically opening docx file

    I developed a C# app last year which has been used on 4 or 5 pcs regularly during that time with no problems. Part of the app copies a Word document (docx 2007) then dynamically appends a few pages then saves it in a set place on the PC. The app has been installed on XP, Vista, with PCs that...
  7. moongirl129

    Databinding to second form

    I am building an app which consists of two forms - one for data entry (datagridview databound to a custom object) and one for display on a separate display screen (hence the separate form). Is it possible to use databindings across forms when using a custom user control? The problem I have is...
  8. moongirl129

    datagridview customization

    If I understand you crrectly I don't think you need to do this.... open your form which has the datagridview and click the datagridview once. You'll see a little black arrow top right hand corner of the datagridview. Click it and then click the 'edit columns' option. Select the column that you...
  9. moongirl129

    Remote Display Question

    I am looking into building a C# app that will let the user enter information which will then be formatted and displayed on a separate screen. I guess I could either show the formatted data in a new windows form or in a web browser. The system will be set up on a lap top so the user will be...
  10. moongirl129

    datetimepicker control returning 1/1/0001?

    Oh dear I knew it would be simple. Actually realised it was because I wasn't setting the objects date propertuy to a default value of today. Thanks though!
  11. moongirl129

    datetimepicker control returning 1/1/0001?

    I'm using a datetimepicker control and it's text and value properties are databound to a datetime property of a custom object. The date value defaults to todays date. If I open the application and enter other data, but don't change the date value in the picker (because I want todays date and...
  12. moongirl129

    CheckedListBox Bound to Object - Problem

    Ok so you're getting a list of values out of a database? I would be inclined to putting the results of the db query into a BindingList of objects eg: BindingList<Record> records = new BindingList<Record> where the Record object would something like: class Record { private int mainTypeId...
  13. moongirl129

    Generics - List&lt;&gt; - returning a value

    I found the following article really useful for Lists - it might be worth a look. http://www.c-sharpcorner.com/UploadFile/camurphy/csharpLists03302006170209PM/csharpLists.aspx
  14. moongirl129

    Custom Collections

    I've been using a bindinglist to databind a list of objects to a datagridview in the project I am working on. The bindinglist type is 'Issue' where 'Issue' is a custom object. However, there has been a small change in the spec and I think I am now going to have to use a custom collection as the...
  15. moongirl129

    CheckedListBox Bound to Object - Problem

    eb24 - can you explain what it is you are trying to do? What is it you are trying to show in the checkedlistbox? To databind an object to a control the normal process is to set a bindingsource up in your project with the object as the data source. You then use the bindingsource to bind to the...
  16. moongirl129

    Datagridview checkbox column question

    I didn't think you could use templateColumns with a datagridview (Windows Forms)? I thought you could only use them in a datagrid in asp.net. If I'm wrong could you point me to an example? Thanks.
  17. moongirl129

    Datagridview checkbox column question

    I have a datagridview which is databound to an object. There are 4 properties in this object all boolean which are shown as checkboxes in the datagridview. I want them to act like radiobuttons so when one is checked the others are all unchecked. So I added a method to my class so that whenever...
  18. moongirl129

    C# code rewrite / redesign question

    Thanks for all the great tips people!! I have rewritten the code and it is so much easier to follow!
  19. moongirl129

    C# code rewrite / redesign question

    I have a bit of code here which looks really awful to me - what would be the best way to redesign/rewrite this? public ImpactType ImpType { get { if (costD) { if (r1) {...
  20. moongirl129

    Programmatically set anchorstyles on user control

    I am programmatically adding a tabpage to a tabcontrol, and then adding a user control to this tab page. The application starts maximized and I need to make sure that this user control stretches to fill the tab page by setting it's anchorstyles. However my code just doesn't seem to be having any...

Part and Inventory Search

Back
Top