Muralee's Q&A profile
Visual Basic Cross thread call error
I am using VB.NET 2005 I have the following application structure: UI form, a middle layer and a low level layer. They are all running in the same thread. The low-level object creates a serial port (the .NET one): New SerialPort(port, 57600, Parity.None, 8, StopBits.One) and handle its events. Some of these event handlers throw events that are handled by the middle layer that in turn throw events that are handled by the UI. The serial port is running on a different thread than the application and hence the event handlers are not running within the low level's thread. The end result of the chain of events mentioned a ...Show All
Visual Basic Add connection wizard fails with Access database
I have the RTM version installed. I am quite puzzled at this wizard. It works fine with SqlClient. But for Access databases, this wizard completely fails. In this wizard, I only have one option to do - setting the ConnectionString. I set it to Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\path\abc.mdb, which works fine in my code. But when I click OK, it complains: --------------------------- Microsoft Visual Studio --------------------------- Format of the initialization string does not conform to specification starting at index 0. --------------------------- OK --------------------------- And more, the Advanced button is dis ...Show All
Visual Basic Adding a new column to an opened database.
Hello, I would like to know if it is possible to add a collumn to an already opened access data base using vb in the datagridview without changing the initial database. I am trying work out a functionality in my final year project which enables teachers to analyse student test scores without having prior knowledge of using Access. I am using vb.net to desing and code this enabler/tool. With my limited skill in vb programming I have managed to get the tool to connect and display a sample database. What I would like to able to do next is to allow the user to compare two different test scores as an indicator of student performance. Thi ...Show All
.NET Development Updates are not written to the database - please tell me why!
I am at my wits end! I am creating a simple web application in Visual C# 2005 Express Edition Beta 2 by dragging a table from a data source onto a windows form. I have reread numerous articles on MSDN but with the exception of adding a try block this is as far as I can tell all I need to do to create a working form. When I run it all looks good, I can edit fields and click on the save (disk) icon. But when I look in the database again - it is unchanged. No exceptions are thrown. As far as I can tell from stepping through the code it is doing everything that it should - except that the update method ...DataObjectMethodAttribute(...Dat ...Show All
Visual C# Rename Folders
I want to rename folder temp to a specified name/ string name private const string dir1 = @"C:\Customer Passwords\Temp\" ; System.IO.Directory .Move( "olddir" , "newdir" ); ...Show All
Windows Forms Keeping settings between ClickOnce updates
Hi I am using ClickOnce deployment and application settings. I am developing a small pice of software for my friends and using click once to update it, but after every upddate the app loses its user settings (my.settings) How can I persist them through updates im sure im missing somthing simple. Thanks Simmy The default provider will upgrade only user scoped settings, not application scoped ones. Application scoped settings can be upgraded by simply deploying a new app.exe.config file with the new version of your application. ...Show All
Microsoft ISV Community Center Forums create command button that holds a procedure to another workbook
I have a code to create a chart and put it in new workbook (then i "save as" AdvanceReport.xls). Assume that the current workbook i'm working on is oldWb, and the new workbook as newWb. The first sheet in the newWb contains the data and additional information about all charts. I need to add command button that holds a macro to copy all chart from excel to word in newWb's first sheet. I made the code already,that is: The code to create command button in newWb 1st sheet. The code to copy all chart in workbook and paste it to word document. The problem is: The code to copy and paste is in oldWb's module. This code shou ...Show All
Microsoft ISV Community Center Forums tables
Hi, I'm trying to write a few procedures in VBA concerning tables - is there any way of accessing the text contained in the tables without actually having to select it in the document akso, is there way through which I can detect where I am in a table, i.e if the cursor is in cell (2,3) is there any way of detecting this same about foot/end notes - Is there any way of finding out which footnote I am editting (for instance, if I should want to make a list of end note numbers which containinf a certain string). Thanks. Per one of our support engineers: Please find answers below to the partner’s two questi ...Show All
Smart Device Development WinCE C# project: Menu occupies too much space
I have a menu in my C# NETCF 2.0 application. There are only 2 menu items in the top row. If I put a label beside them it's invisible, blocked by the menu eventhough the area is free. The menu seems to occupy a standard area no matter how many top menu items there are in the menu. Is there any way of making a menu occupy only 30 % of the top row instead of 80 % (what it seems to be right now) A device my company manufactures themselves. It runs Windows CE 5.0 and NETCF 2.0. I've also been using the Platform Builder Emulator. ...Show All
Windows Forms MissingManifestResourceException when trying to access resource file
I have c# 2.0 winapp. I am trying to use a resource file filled with strings. I created two resource files: 1.Messages.he-IL.resx 2.Messages.resx Both has a String1 key with some value. This is my code: ResourceManager rm = new ResourceManager("Messages", System.Reflection.Assembly.GetExecutingAssembly()); string defaultValue = rm.GetString("String1"); I get MissingManifestResourceException exception- Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Messages.resources" was correctly embedded or linked into assembly "TestResource" at compile time, or ...Show All
Windows Forms contextmenustrip?
why is that the first time the user right clicks the context menu apears at the top under the main menu instead of where the user clicked addressed in this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=154486&SiteID=1 ...Show All
Visual Studio Express Editions Help Uninstalling Please
Hi All Earlier this month I downloaded WD, VB Express, the .NET Framework amd associated files. I now have decided this is not for me at this time and started uninstalling various components via Add/Remove to free up some valuable space. When I reached SQL Server I found I coudn't uninstall and I inadvertemtly removed the component from Add/Removes list. How can I add it back to the list and more importantly how do I then uninstall when it's back in Add/Remove's list. All the other components uninstalled fine. Cheers! Please see Aaron's blog entry: http://blogs.msdn.com/astebner/archive/2005/10/30/48709 ...Show All
SQL Server Synchronizing Very Large Database from PDA to SQL Server 2005.
What is the best way to synch with a very large database (e.g. 40,000 products in Inventory Master) in connection oriented way and also offline mode for remote synchronizing the Data from PDA to SQL Server 2005. Kindly provide us some of the best practices on this concept. Thanks There are a number of considerations in choosing a data synchronization strategy that include network bandwidth, mobile device capabilities, the degree to which the unit of work that your mobile users is performing is logically partitioned between devices, the amount of centralized control and admin you want to have, etc. I have done 30+ Windows Mobile a ...Show All
Windows Forms Setting DataGridView.DataSource = null erases the columns I set up in design mode
Based on the user's selection in a combo box, I want to update the contents of a DataGridView from a stored procedure. So I set its DataSource = the DataTable that has the data. The user can also have nothing selected in the combo box (SelectedIndex == -1). In this case the DataGridView should be empty. So here I set the DataSource = null. The problem is that after I set the DataSource = null, I lose the columns that I had set up in design mode and can't get them back. What is the "correct" way to do this so I don't lose the columns Presuming that you are always binding to the same D ...Show All
SQL Server Sending Report Through FAX
Hi, i'm Using SQL reporting Server 2000 .The Problem i 'm facing is ,i want to send a report to a fax machine.When i put the fax number to the "To" Address option available in the "New subscription" page of the Report Manager, it gives an Error saying that " The e-mail address of one or more recipients is not valid. " I tried the Format [fax:+23232823234] which works fine when you send it fromOutlook.But when i try the same format thru Report Manager New Subscription,It fails." The e-mail address of one or more recipients is not valid. The e-mail address of one or more recipients is not valid." ...Show All
