steveQ56's Q&A profile
Visual Studio Express Editions Help with SaveFileDialog and OpenFileDialog please!
Hello. Av got SaveFileDialog and OpenFileDialog in my next project but am stuck. Av not used SaveFileDialog and OpenFileDialog before. I want to be able to open a files in a RichTextBox and save files from a RichTextBox, Just like you can open and save files with Windows NotePad. How do I do this And How do I get the buttons to work In a MessageBox This is my code for the SaveFileDialog that I have so far: Private Sub OpenToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OpenToolStripMenuItem.Click OpenFileDialog1 = New OpenFileDialog OpenFileDialog1.Filter = "Text files (*.txt)|*.txt|Rich Text Files (*.rtf)|*.rtf|Visual Basic Files ...Show All
Visual FoxPro How to create FLL using C#?
is it possible to create FLL library using C# Regards, Lawr3nc3 You may check: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dv_foxhelp9/html/a185d080-15c9-4187-a534-c105108dbd15.asp ...Show All
.NET Development io serial port and withevents in a class
Hi, I have the following class, that i need to handle the serialport event see note below Imports System.IO Public Class Class1 Dim WithEvents serialport As New IO.Ports.SerialPort Function GetWeight() As String Dim ReturnData As String = 0 If Serialport.IsOpen Then Serialport.Close() End If Try With Serialport .PortName = "COM1" .BaudRate = 1200 .Parity = IO.Ports.Parity.Even .DataBits = 7 .StopBits = IO.Ports.StopBits.One .Handshake = IO.Ports.Handshake.XOnXOff .WriteTimeout = 5 End With Serialport.Open() Catch ex As Exception Return ex.ToString Exit Function End Try Try Serialport.W ...Show All
Visual Studio Team System [URGENT HELP NEEDED!] Unit Tests fail because of connection string problem
Hi all, I am part of a six member group which is developing a hospital information system in the .NET platform using ASP.NET 2.0 and VSTS. Our solution has a website (SMUHPMA), a class library (SMUHMPMALib) which stores the base classes and controller classes and test project with stores the unit tests(SMUHPMATest). Now a number of the classes in SMUHPMALib interact with our database (SMUHPMA.mdf) which is stored in the App_Data folder of the website project (SMUHPMA). We make a connection with the database in these classes using the following connection string: System.Web.Configuration.WebConfigurationManager.ConnectionStrings["SMUHPMADB"].ConnectionString; The web.config file which defines this ...Show All
.NET Development Best Practice: Activity status
I'm back again! For me this is a bit hard to grasp/tackle. My application has a UI and several other classes. I know that no class should interact with the other if its not needed, which is fine. I know about these things. If I have a class doing some work (not the UI), I want to be able to notify the UI of the status/activity that is going on in this work. Is it correct for me to say that I should create events which would be raised from this class, so that the UI will catch it and display the status to the user Obviously this "work" class knows nothing about the UI class, nor does it need to. All it needs to do is its work and then display the status of what its doing, wherever this status is displayed is none ...Show All
Windows Live Developer Forums MSN Messenger API without Windows Messenger
Hi all, I'm very confused right now. I made an application that grabs the contact list of MSN Messenger and imports it into an address book. This works fine untill I remove Windows Messenger for the system. I've clients that use MSN Messenger without Windows Messenger and the tool doesn't work for them. Is there a way to grab the contact list without Windows Messenger (and the Messenger API) installed Does anybody has some great code snippets rockmanxyj wrote: hi peter,if i remove Windows messager or rename Windows messager, would your Component work fine Of course. You can download a trail version in my web. Then run demo in computer without MS MSN messenger. It will work fine. My comp ...Show All
Software Development for Windows Vista It works.. there was great rejoicing
Hello Everyone, I've created my own custom PropertyBindDialog because the one that Microsoft provides is pretty deficient. Unfortunately my own custom PropertyBindDialog will not be used after I call Activity.SetBinding - after I do this for a given property my own custom PropertyBindDialog is ignored and the Microsoft BindDialog is used. Here's some of my source code... The problem occurs when I call SetBinding on the property Test. After I call SetBinding, my PropertyBindDialog is no longer used when I want to edit the Test property - the Microsoft BindDialog is used and my custom PropertyBindDialog is ignored. Anyone out there have any ideas namespace MyActivityLibrary { public partial class MySpe ...Show All
SQL Server Query optimisor out of stack space
Hi, I have recently upgraded to SQL Server 2005 (SP1) Developer Edition from SQL Server 2000 (SP4). Since doing so, i have been unable to delete any records from a specific table. I have found this is due to having approximately 340 foreign key constraints referencing the UserID column of the table. This functionality worked in SQL Server 2000. Do Microsoft plan to release any fixes for this issue Kind Regards, Martyn... Wow, 340 FKs ! I don't think there is going to be a fix for this. The cost for maintaining this constraint is quite large. You should consider simplifying the schema. http://msdn2.microsoft.com/en-us/library/aa337357.aspx ...Show All
Visual Studio 2008 (Pre-release) Sample code / Demo projects
Hi Due to the abscence of the Sync Designer, it will help immensely if you can post either or all of the following: Documentation for Microsoft.Synchronization.Data.Client, Microsoft.Synchronization.Data.Server and Microsoft.Synchronization.Data.dll Sample code : Any demo projects Regards, Kk Good suggestion. Thanks for pointing this out Roger! I've updated the package (v1.2) with a note in readme.txt + an error message that will pop up if the local database does not exist. ...Show All
Visual C++ Errors of LINKER
When I use a CWaveFile class and declaring an instance under a button1_Click event as example I have Linker's errors,and I include all requirements of using this class, if you want the code tell me at my email: aimnour@yahoo.com. The Linker's errors are: Error 1 error LNK2028: unresolved token (0A00000E) "public: __clrcall CWaveFile::~CWaveFile(void)" ( 1CWaveFile@@$$FQAM@XZ ) referenced in function "private: void __clrcall Capture1::Form1::button1_Click(class System::Object ^,class System::EventArgs ^)" ( button1_Click@Form1@Capture1@@$$FA$AAMXP$AAVObject@System@@P$AAVEventArgs@4@@Z ) Capture.obj Error 2 error LNK2028: unresolved token (0A00000F) "public: __clrcall CWaveFile::CWaveFile(void)" ( 0CWave ...Show All
Windows Forms Deploy web app on Win 2003 Server
Hi, I have developed a web application using VS 2005 on my machine. What are the steps needed to deploy it onto Win 2003 Server ie, do I need to Build/Publish Website on VS2005 1st I am not as familiar with VS2005 as compared to VS2003. Thank you for your kind attention Danny. ...Show All
Software Development for Windows Vista Vista ListView Focus/Selection style
How can I say that the ListView control should use the focus/selction style like in explorer My items have just the blue background, not the much cooler explorer 3d stuff. btw: I'm using the application manifest. Steffen I've tried adding this theme and it works - including custom drawing which an earlier post suggests won't work. However, I can't find any documentation other than this thread. Can someone direct me to it please Also, do any other control types support a change of theme in this way ...Show All
.NET Development System.Security.AccessControl Namespace
Hello! I need several classes from the System.Security.AccessControl Namespace (FileSecurity, FileInfo.GetAccessControl method...) and that namespace seems to be new in .Net Framework version 2.0. i have installed that version but my visual studio is using the old version of mscorlib.dll i.e. file version 1.1.4322.2032 and when i try to reference the new version of the file mscorlib.dll (which is part of .NET framework version 2.0) i.e. file version 2.0.50727.42 a get the message that the reference to that file could not be added with the explanation that the file is not a valid assembly or a COM component!! Please help! it is quite urgent... Goran. Yes I expect .NET 1.1 does not recognize an assembly compiled in .NET 2 ...Show All
Smart Device Development Problem receiving incoming calls
Hello All Cannot solve a problem for a long time. I want to intercept incoming voice/data calls on PocketPC and SmartPhone. Everything works fine except behavior of standard answering module. When application calls lineAnswer standard phone application disconnects the call. I have found some solution for PocketPC - I can kill phone process during call and run it again after call is answered, but this does not work on smartphones, because I cannot kill the Phone process. Please, give me some advice on howto resolve this. Thank you for your efforts! You are not supposed to answer incoming calls on phone devices. The overall design is crafted to prevent this. When you start trying to circumvent this limitation ...Show All
Visual C++ Explicit Interface Method Implementation
In MC++, I can do the following: - __gc __interface ICloneablePerson { Person* Clone(); }; public __abstract __gc class Person : public ICloneablePerson { private: String* _name; protected: Person() :_name(String::Empty) { } Person(String* name) :_name(name) { } Person(Person* source) :_name(source->_name) { } public: __property String* get_Name() { return _name; } }; public __gc class Student: public Person { private: String* _id; public: Student(void) :Person() { _id = String::Empty; } Student(String* name) :Person(name) { _id = String::Empty; } ...Show All
