cutie's Q&A profile
Visual FoxPro Imagelist control
I want to add the imagelist control to the treeview control(ocx) but I keep getting a message that I have to initialize the imagelist control first. How is this done The treeview works fine. Both ocx controls are dropped on the form but I have been consistently getting the error. Appreciate the help. >What is the website Dave's site is at: http://www.geocities.com/df_foxpro/ ...Show All
Smart Device Development How to retrieve SMS content??
I would like to retrieve an incoming SMS content to a textbox., but i don't know how to retrieve the SMS content.... Any one can give me your hand Thanks !!! I've never tried it but take a look at this: http://msdn.microsoft.com/library/default.asp url=/library/en-us/mobilesdk5/html/T_Microsoft_WindowsMobile_PocketOutlook_SmsAccount.asp http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=408382&SiteID=1 ...Show All
.NET Development Please suggest a method for issuing encrypted files
We have an application that periodically requests a couple dozen bytes of data via web service on our web server. The data is specific to the client running the app. We want encrypt the data with a private key on our web server before sending it out. The application would then decode the data with the public key and know that it came from our server. The public key was to be embedded in the application as a resource. The .NET implementation of asymetric keys only allows encryption with the public key and decryption with the public key/private key pair. This is the opposite of want we want to do. We're looking for a suggestion as to how to accomplish this. What we need is for our applications to know that if they can successfully d ...Show All
Visual Studio Team System Missing TfsReportDS and TfsOlapReportDS
Some time ago I noticed that the Reports folder in Team Explorer had a red x in the lower right hand corner and would not expand to show reports. Since I was not really using them yet I just ignored this error. Today I tried to create a new project and received this error. Error TF30004: The New Team Project Wizard encountered an unexpected error while initializing the Microsoft.ProjectCreationWizard.Reporting plug-in. Explanation TF30171: The Microsoft.ProjectCreationWizard.Reporting plug-in used to create the new team project could not be initialized and returned the following error: TF30222: The New Team Project Wizard could not find the data source TfsOlapReportDS on the SQL Server Reporting Services server k ...Show All
Visual C# How can you beautify your code?
I am using Visual studio 2005 attempting to write some code in c#, I believe you can beautify your text Any help do you mean the syntax keywords/back color etc... if so, this can all be configured in the Visual Studio environment options. Go to Tools > Options and select the "Fonts and colors" item from the Environment treenode. Is this what you are after ...Show All
Windows Live Developer Forums Virtual Earth: Drawing Lines from each Pin
I am using virtual Earth and reading from a xml file to display coordinates on Virtual Earth. I want to draw a line from each coordinate which is displayed by a push pin. Is there any way of doing this My xml looks like: < xml version="1.0" encoding="utf-8" > < rss version =" 2.0 " xmlns:geo =" http://www.w3.org/2003/01/geo/wgs84_pos# " > - <!-- This is a XML document generated for to Read Longitude and Latidute Co-ordinates --> < channel > - < item > < geo:lat > 53.0775816666667 </ geo:lat > < geo:long > -7.2556 </ geo:long > & ...Show All
Windows Forms Update a form
I have the main form Form1 and I start Form2 to add an item to Form1. How can I update Form1 when I have selected the item. you can either create and raise events from form2 when you selected an item or you can pass a reference of the main form to form2, which will then call the reference and add the item or whatever. can you explain a bit further - what are these items what control you want form1 to have the item dealt with FROM form2 correct ...Show All
Windows Forms Saving from RichTextBox in .rtf or .txt??
Hello, I am trying to save file to either .rtf or .txt from my RTB. When I save to .rtf it works fine, but when I try to save to .txt it saves the file but it doesn't put the '.txt' extension to the end of the fileName. So when I try to open the file again it doesn't appear as a .txt file, but it works if I manually add the '.txt' file ext. into the filename at savetime. Here's my code: Dim textType As RichTextBoxStreamType If (SaveFileDialog1.ShowDialog() = Windows.Forms.DialogResult.OK) Then If (SaveFileDialog1.FilterIndex = 1) Then textType = RichTextBoxStreamType.RichText Else textType = RichTextBoxStreamType.PlainText End If End If Dim fs As New FileStream(SaveFileDialog1.Fil ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Spacewar slow build
I just tried to build the Spacewar starter kit and it took quite some time to build (5-10min). It spent most of its time building the content. Now, I could perfectly understand the slow build time since there's a lot of content to process (50MB output), but what bugs me, is that my computer becomes nearly unusable during the build. It takes about half a minute to alt-tab from C# to an explorer window while the build is busy. The thing is, I have a dual core processor (which was only at 50% during build) and neither the HDD nor the RAM were actually stressed during the build, so I would expect it to be responsive. For example, when I use the windows calculator to calculate 80000!, the taskmanager shows the same situation as when build ...Show All
Visual Studio Display the original file name how to set to open different files with different editor
After working with sourcesafe, I am a hard believer that it sucks. I have all kinds of files checked in sourcesafe like xml, java, jsp, txt,pdfs and css. Each time I double click the file it asks me how to open a file. i.e. with which editor. (I know I can set the options using options to open/edit or check out). I have set one editor as default. But if I have to open a different types of files, I have to choose editor from radio buttons. Isn't it a pain Software should allow us to define what type of file we want to open with which editor. i.e. we should be able to define that after double clicking Source safe should open the file with editor defined in options based on type of file. So it should open doc,xls,ppt file ...Show All
.NET Development How do I create a nested class with CodeDom?
I can create an assembly ok with classes in a namespace 'spaceX'; e.g. 'spaceX.classY', but I need a nested class 'spaceX.classY.classZ' I create the CodeTypeDeclaration with the name 'classZ' (I tried 'classY.classZ' and it will not compile), then set the TypeAttributes to NestedPublic. I think I need to add this to the namespace 'spaceX.classY' - but when I search in CompileUnit.Namespaces for 'spaceX.classY' it is not found If I add 'spaceX.classY' as a new namespace - there is an error on compiling 'namespace already defined'! So how do I create a nested class using CodeDom (this was so easy using Reflection!) - Tracey You need to associate your nested class with its parent class. A ty ...Show All
SQL Server SQL Everywhere SLSErver to SQLEv without SSI & IIS
Due to client requirements i have found it necessary to write an application that moves data from SQL Server to SQLEv To do this I open the SQLServer table and using a FOREACH Statement track through the table I then cast each of the fields I require into a variable Each record then calls and INSERT INTO statement to insert the data into SQLEV One serious problem is how do I get round NULLs ie if contents = ( string )ditem[ "CONTENTS" ]; returns a NULL it crashes So I want something like IF ditem[ "CONTENTS" ] = NULL contents = "" else contents = ( string )ditem[ "CONTENTS" ] It is very slow the insert statement takes about .7 of a second (although it does ...Show All
Visual Studio Team System The internal state of the database project is inconsistent
I got this error Error: The internal state of the database project is inconsistent Unload the project and then reload it to resolve the issue. i already Unload and reload the project but not solved any help Please expand how to delete the Designer Database... I'm not finding this (no doubt not looking in the right place)! Thanks, Scott ...Show All
Visual C# Dispose question
I have a form with a private member that implement idisposable. Therefore i need to dipose the members. But the dispose code is generated by the designer. How can i dispose the member The way i did was to handle the Form_Closing .. and in that handler .. i call the dispose .... is there another way that is better/cleaner/good practice GoDaddy wrote: I have a form with a private member that implement idisposable. Therefore i need to dipose the members. But the dispose code is generated by the designer. How can i dispose the member The way i did was to handle the Form_Closing .. and in that handler .. i call the dispose .... is there another way that is better/cleaner/good practice ...Show All
Software Development for Windows Vista Pipes won't work with limited accounts
I am using Named Pipes to commmunicate between a Windows Service and one or more client applications (depending on the number of users logged in). Everything works fine if the client app runs under a user with administrator rights. When it runs under a limited user account I get the ERROR_ACCESS_DENIED message when the client is trying to connect to the Pipe Server (created by the service). This is the code section generating the error message: hPipe = Win32API .CreateFile( pipeName, // pipe name GENERIC_READ | // read and write access GENERIC_WRITE, 0, // no sharing IntPtr .Zero, // default security attributes OPEN_EXISTING, // opens existing pipe 0, // default attributes IntPtr . ...Show All
