Patrick Flynn's Q&A profile
Visual Basic Date Sorting issues in DataGridView Column
Hi, I am converting a VB6 program to .Net/VB2005 as a learning experience. I'm testing the DataGridView control to display my data and have some difficulties. My data is in a single disk file with user-defined-data-type fixed length records. The first column in my DataGridView displays a transaction date. All the DataGridView columns are textbox columns. The dates load and display correctly but if I click the column header and use the built in ...Show All
Windows Forms how to set combobox selectedvalue property?
hi, my question is how can i set the selectedvalue of a combobox. i have a combobox and i want to set the selected value to the supplied id. thanks Yep, certainly more than one way to skin this cat. I can tell you that&nb ...Show All
Visual Studio Display selected data on crystal report
Hi everybody, I like to display start date and end date selected on the crystal report. How would I do that, declare what type of field, and how would I transfer the value from code to the crystal report Related to link: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=322645&SiteID=1&mode=1 den2005 1st u have to insert textbox in Crystal Report & give name e.g. StartDateTextBox & the ...Show All
Smart Device Development Debuggin tips
Hi, Just wondering what pratices people use to debug a smart device. With regular programming I used to just print out a bunch of stuff to console (like checkpoint1, checkpoint2), taht way I could track what steps where executed and what not. What's a good way to do the same in mobile windows app programming, that is being able to see what was executed, and in which order. Thank you Chino See this: ...Show All
Visual C# adding SQL records with a '
Hello, In my application I have an area where the user can freeform type information to be sent to a database server (or MDF on a few systems). if their text contains a ' the database complains that it is a bad SQL statement. I am using direct statements (INSERT INTO blah blah) instead of stored procedures as I cannot use stored procedures for this type of implimentation. is there a way that I can insert a ' into the SQL without it complainin ...Show All
Visual C++ Convert {1,2,3,4} into separate integers 1 2 3
I need to convert user input "{1,2,3,4}" into separate intergers 1 2 3 4. Can you give me some hints to get there Thanks. Hi, you have different ways of doing that: 1- use the strtok to split by ',' and go through each element and discard all unwanted chars like spaces and '{' or '}' and use atoi (for integers) or stringstream if you want to use streams. Example: int val[256]; // thi ...Show All
Visual Studio 2008 (Pre-release) Custom data source provider
I have some data that comes through a Web Service and it is cached locally using the isolated storage. For me it seems like a good scenario for implementing a custom data source provider: look for the data in the cache, if the data is stale get it from the web service. My questions are: 1. How is the error mechanism working For example, if an exception is raised during the connection to the web service, how do I notify about this err ...Show All
Visual Studio Oracle with Crystal: "Failed to Load Database Information"
I've already deployed the Crystal .msi and installed the Oracle Client on the server, and still getting this message: Temp\temp_294ca6ef-60f1-4511-b5a5-c6986817b96d.rpt: Failed to load database information. I gave permission to the ASP.NET user in all the folders it needs, Oracle, Ora92 and Ora92/bin, Temp... In the development computer it runs OK, but in Production server its crashs! Someone can help me Any ideas will be quite welcome! Th ...Show All
Visual Studio Binary files randomly corrupted after check-in in VSS RTM (8.0.50727.42)
With VSS RTM (8.0.50727.42), when we check-in binary files (.lib, .dll, .pdb) the file is randomly stored corrupted. Our investigation discovered that it seems that the final part of the file is missing. 1) Checkout the binary file 2) Modify it 3) Check it in 4) Get the file The file is corrupted. We were not able to deterministically reproduce the problem; we are absolutely sure that no error is reported during checkin, nor within Source Safe e ...Show All
Microsoft ISV Community Center Forums printing .doc, .xls, and .pdf files from a list of filenames using an excel vba macro
Hello all! I'm Jim from Western NY. Forgive me if I have posted in the wrong forum. If I have, just let me know and I'll comply. Here's my question: I am wanting to develop a macro for excel which will read (from a worksheet) a list of hyperlinks to pdf, .doc, and .xls files and print them using the appropriate application ( acrobat, word, excel). Theoretically, I know I would have to use some kind of for-next and/or case s ...Show All
Visual Basic Passing data from form to form in the same project
Hello, My project have multiple forms. How can I get a text entry from one form and have it display on another Is it also possible to do with Radio Buttons Thank you. Hi Christian, I'm not sure why this works given what you're saying, but it does. I took out the me.show in form2.vb like you said becuause it is redundant and it does still work. The code I used is just exactly the code I posted in my message. I don't have a variable called ...Show All
Windows Forms How do I handle multi-paragraph text display?
I have a situation where I need to display several paragraphs of text in a non-selectable, read-only block. I've spent about a week (off and on) scouring the web trying to find a way to do this. TEXTBOX: Using a multiline textbox works for the& ...Show All
.NET Development xml serialization problem
hi! I am new to xml serialization so please bear with me. Ilya on the smart device forum gave me a huge hand in guiding me to the right direction. What I want to do is serialize objects so I can transport it across a network (PC to mobile) running .NET 2.0. I have followed: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemxmlserializationxmlserializerclasstopic.asp ...Show All
SQL Server Management studio - extensibility?
Anyone seen any hints that the Management Studio will support an extensibility (i.e. Add-In) model Here's hoping so! Cheers, Paul Unfortunately not in SQL Server 2005. We will try to provide an extensibility model in the future releases. - Michael ...Show All
Windows Forms Howto: Insert Default Blank Item to DataBounded ComboBox
A very classic question for databinding of Combobox, but is there any easy way to do so in ADO.NET 2.0 Thanks, Q. How can I add a “null” or “DBNull” entry to my bound ComboBox When data bound, the Windows Forms ComboBox does not provide a general way to add a “null” or “not selected” value to its items list. The only generally supported way to do this is to add a “null” item to your data source list. ...Show All
