Helen999888's Q&A profile
Visual Studio Debug is really slow in VS2005 how to fix it ???
In VS2005, it is very slow when debugging. Do anyone know how to fix Thank you. a faster computer will probabely do the trick.. sorry, I don't think there's much to fix about it, the debugger hasn't a lot of settings. ...Show All
Microsoft ISV Community Center Forums Once copied, can we export as a GIF file?
How to convert MS Excel to jpg or gif and paste/insert to MS Word thank you very much Not my cleanest code... the only way I can see doing this is by "tricking" Excel into thinking the copied range is a chart. The attached is a quick & dirty run to see if this would work or not. It does. When I use this in a real application I'll create a new workbook, perform the chart, etc., in that work and then delete everything. The current application I'm working on could use variants of this code 100+ times per session, so I'm very worried about the source workbook(s) becoming corrupted due to the constant adding and deleting of sheets & charts. We're using Office 2003 her ...Show All
.NET Development Help with xml files (noob to xml)
Alright, I'm a total beginner to XML, I just started yesterday, and have been reading some walkthroughs & FAQS. Here is the code, that was in a faq , and i'm not quite sure if it will do what i need it to do. System.Xml. XmlNodeList secondreader = reader.GetElementsByTagName( "weapon" ); for ( int i = 0 ; i < secondreader.Count; i++) { this .listBox1.Items.Add(secondreader .Attributes[ "weapon" ].InnerText); < xml version = " 1.0 " encoding = " utf-8 " > < Weapons > < weapon name = " this one item " > gold = "1" silver= "28" copper="16" </ weapon > < weapon name = " ...Show All
Windows Forms i want to get the table values in the dataGrid checkbox column
i want to get the table values in the dataGrid checkbox column mTable = objDB.GetData(strquery) DGrid.DataSource = mTable mTable = New DataTable("BrokSlab") PercentageCheck.DataType = System.Type.GetType("System.Boolean") PercentageCheck.DefaultValue = False mTable.Columns.Add(PercentageCheck) DGrid.DataSource = mTable PercentageStatus_Col.MappingName = "PercentageStatus" TableStyle.GridColumnStyles.Add(PercentageStatus_Col) DGrid.TableStyles.Add(TableStyle) For each dr as datarow in mTables.Rows Debug.WriteLine(dr("PercentageStatus") next ...Show All
SQL Server Setting up SQL Server Encryption between multiple servers and databases
Greetings. I have a setup/deployment question regarding SQL Server Encryption. Internal database encrypts data in 3 different tables. This could execute on any one of 6 different servers. The tables with encrypted data are replicated to another database on different servers (3) How should the keys/certificates be created so that the data in the replicated database can be decrypted In my test scenario so far, I have been unable to have the second database decrypt the data that was encrypted on the first database (currently on the same server). -- Create Database Master Key CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'p@ssw0rd' GO -- Create Certificate CREATE CERTIFICATE MyCertificate WITH SUBJECT = 'My Data Encrypti ...Show All
Visual C++ Converting HEX to String ?
Hi, I have an hexadecimal value stored as an unsigned long (C++ .NET), I use the value to extract data from an XML file therefore the file contains hexadecimal values also. I use SelectNodes to extract the necessary information and therefore I need to change the Hex value to a string. However, as I convert it to a String the value changes, and as the XML file contains hexadecimal it can’t find the hex value in the XML file. My question is therefore can I convert a Hex value in .NET to a string without changing its value otherwise I can’t extract the necessary information from the file. Thanks in advance for your help! " I have an  ...Show All
Visual Studio Express Editions saving from a textbox and opening .txt files into a textbox
hi i'm working on an application and i'm fairly new to vb 2005 so here goes. basicly i want it so when i click a menu item it opens a SaveFileDialog where i can save whats in the textbox to a .txt file then click another button which opens a OpenFileDialog that when i open a .txt file it puts the contents in a textbox. Thanks for your help Very Simple. The complete application. Put a texbox and two buttons on a form. Public Class Form1 Private Sub LoadTextbox(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x As New OpenFileDialog If x.ShowDialog = Windows.Forms.DialogResult.OK Then TextBox1.Text = My.Computer.FileSystem.ReadAllT ...Show All
SQL Server Bulk Insert fails to import data files created on Unix
It seems to me that files created on Unix machines with line terminator \n, or chr(10), cannot be imported using the Bulk Insert statement. Is this a bug, or an oversight by Microsoft Does this mean that unless one replaces all \n with \r\n, there is no way to use Bulk Insert to import Unix files This is a very strange behavior by MSSQL. Even lessor programs such as Excel and Word automatically recognize chr(10) as a line termination character. Am I missing something, or is this just the way MSSQL is I have never succeeded to convince BULK INSERT to read Unix files, and I find one of these solutions usually works: 1. See if the process that moved the files from the Unix machine can correct the line ends (for example, ftp can ...Show All
Visual C++ MFC SendMessage and PostMessage
Hi, Does anyone have an example of how to use those methods (oh... and not the MSDN reference ) tnx Ok, Maybe I was not clear in my question before, but the solution to what I was searching for is very simple and it looks like this: // get the wanted CWnd instance (could be a button, toolbar etc...) CWnd* pwnd = SomeWnd; // get the wanted commad id (like: ID_FILE_CLOSE etc...) UINT commandID = SomeID; // than just send it :) pwnd->SendMessage(WM_COMMAND,commandID); that's, it! ...Show All
Visual C# Displaying a Web page from a specified point
Hi, This may not be for the correct forum please advise if so. I am trying to display a web page at a specified point (different each time) depending on the actions/choice of the user. At present I am building a javascript function call within my C# code: <script>setHash('" + _Hash + "');</script> This is then inserted into my html and automatically calls the javascript funtion: function setHash(elementId) { window.location.hash = '' + elementId + '' ; } This does not work all the time. The call 'window.location.hash' is looking for the id of an html element - for example a <tr> Can anyone advise any other ways to achieve my goal - I have used this before without problems ...Show All
Smart Device Development Windows PPC 2002 running Pocket PC 2003 apps???
Is there any way to run Pocket PC 2003 Apps(built with visual Studio 2K5) on a Pocket PC 2002 device This is a Smart Device win32 or mfc app that is being built with visual Studio and the target is Pocket PC 2003. Any help would greatly be appreciated... I tried to build and run on the pocket pc 2002 device but get the following error: Cannot find: <appname.exe> (or one of its components). make sure the path and filename are correct and all required libraries are available. This exe works on Pocket PC 2003 and up devices... Thanks again in advance! It turns out it's missing items in coredll.dll(ordinary 1492, 1474, 1556 and 1645) to be exact. Does anyone know where I can download a coredl ...Show All
Visual C++ WinApp() issue.
Hello! The issue is: As we know, only one instance of 'WinApp() ' can be created in a project. for eg , name of my project is 'Universal Loader', and hence the class 'CUniversalLoaderApp' is created by default. An instance of this class is also created. This instance used in program to access the dialog class' members. I have created a reference of the 'CUniversalLoaderDlg' class , so that the Dialog class can be accessed by other classes. This is how i have done it: *********************************************************** CUniversalLoaderApp theApp; InitInstance() { CUniversalLoaderDlg dlg; m_pMainWnd = &dlg; } ******************************************************************* And this piece of ...Show All
.NET Development Instance of DataSet
hi guys, how to make a DataSet instance because the red comment is a Exception that I don`t know to solve. This Exception appear when I hit F5 to execute, in compilation time appear"build suceed" this solution is a WinApp in Visual Studio 2005. thanks!!!! using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Data; using System.Data.OleDb; namespace waTr325 { public partial class frm325:Form { public frm325() { InitializeComponent(); } private DataSet dset; private OleDbDataAdapter oledb_da; ...Show All
SQL Server Should query against sys.database_principals return same number of rows as query against sys.sysyusers?
I notice that query against sys.database_principals returns less rows than query against sys.sysusers or sysusers if alias is added to a database. Are there any other way to find all the alias added to a database besides querying sys.sysusers or sysusers Hi PCSQL66, Ashvin is right. this feature has been deprecated. If you do want view the alias apart form querying sysusers. You can use the following command: use databsename go sp_helpuser go regards Jag ...Show All
Visual Studio 2008 (Pre-release) ComboBox Binding
I bound ComboBox to products' collecttion and ComboBoxItem to product name. But when I select an item I get in Selection box the name of object, not a product name. How can I manage this problem protected Products list; public Window1() {InitializeComponent(); this.list = Fill(); MyComboBox.DataContext = list;} < ComboBox Margin = " 8 " Width = " 120 " Name = "MyComboBox " ItemsSource = " {Binding} "/ > <!-- SimpleStyles: ComboBox --> < Style x:Key = " {x:Type ComboBox} " TargetType = " {x:Type ComboBox} " > < Setter Property = " OverridesDefaultStyle " Value = " true " /> < Setter Property = " ScrollViewer.CanContentScroll " Value ...Show All
