xiaomaolover's Q&A profile
Windows Forms How can I format a richTextBox?
Hello, Can you please tell me how can I format a richTextBox using bbcode! How can I search in the whole richTextBox content and put every occurance of text between [ b ] & [ /b ] in bold. Bla Bla Bla Bla Bla Bla [ b ]IN BOLD1[ /b ] Bla Bla Bla Bla Bla Bla [ b ]IN BOLD2[ /b ] Bla [ i ]ITALIC[ /i ] Your help would be greatly appreciated. use RichTextBox.Find (String, Int32, Int32, RichTextBoxFinds) to find any occurences in text find method selects found text and after this you could execute richTextBox1.SelectionFont.Bold = true ; hop ...Show All
Windows Forms ArrayList problem
Hi i am having a bit onf a difficulty understanding this.. I have this code in a form For intCounter = 1 To dropMultiChoice.SelectedItem.Value strAnswers.Add("txtChoice" & intCounter) &n ...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 C# Memory leak
Hello Guys, Recently, i had used a tools to detect memory leak for .net And, it's said that i had a memory leak on exiting program. The leak is mainly on hpz2ku10.dll and hpzpm310.dll but on different line/offset. My question : How to avoid this memory leak since i don't know which code causing this leak. also, it's said that the total bytes leak is 75.104 bytes (75Kb), is this leak bad Thanks guys for the answers. hi, i want to ask you which tool is this because i'm suffering here in something like that but my problem is bigger than 75kb best regards ...Show All
Smart Device Development Some clarifications required in .Net
Hi, I have to develop a GUI application for an embedded platform(WinCE or Windows Embedded). That application will contain guages/dials and similar controls which is going to be hi-fi one and will be used in automotive industry. I am planning to develop it on .Net framwork. I have the following queries. 1. how to improve load time of .NET framework for embedded systems ( MSCOREE.dll is what loads the framework I guess) 2. which is the best language under .NET -> C# or VB or for display Incab embedded application – in terms of resolution, graphics etc 3. any recommended architecture for embedded displays using .NET ...Show All
SQL Server Directly editing data in results pane with SQL 2005 Management Studio
In SQL 2000 Enterprise Manager, one was able to edit and commit data on-the-fly directly from the results pane. Action->Open Table->Query with the SQL Pane shown gives you an interface similar to Query Analyzer. One could write a complex select statement with where clauses and joins, and the results pane would show the resulting data. The data is editable and instantly updated. We are now planning to migrate to SQL 2005 , and so will need the same capabilities that were availiable from its predecessor. I believe there to be an option/configuration setting or panel in Management Studio that would expose thi ...Show All
Architecture Is the MVC is good practive for developing window appication
Hi I m developing windows appication, i need to decide about the architecture for this app., i want some suggestion regarding the architecture i should use for this. Can someone throw some light in this. Note : I m planning to use NHIBERNATE for Data Layer (ORM mapping). Please start the following guides S mart client Architecture : http://msdn.microsoft.com/practices/apptype/smartclient/default.aspx Building windows based composite applications: http://msdn.microsoft.com/practices/apptype/smartclient/default.aspx pull=/library/en-us/dnpag2/html/cab.asp ...Show All
Visual C# making toolbox available at runtime
hey guys, i'd like my windows form to contain a toolbox that has some controls like text boxes, labels and etc. when the application starts and the form loads, i want this toolbox loaded as a part of my windows form so that the users can drag and drop the toolbox controls onto the form, alter their sizes,.. etc. can you guys please guide me about how to do this or if you know any related tutorials or something, i'd appreciate that, too. thanks in advance for your help... The toolbox you’re creating is really just a Windows Form. You will end up being responsible for all of the functionality and the interact ...Show All
Visual Studio Express Editions How to disable the space bar in maskedTextBox?
I have a masked text box of an IP address. the mask is set as 099.099.099.099 and it allows user to enter space bar. I' like to know how to disable the space bar key i.e. when a user press space bar then nothing happen, the cursor is still at the same position.. I've tried to use the keyDown and keyPress with the e.handled = true; but it dose not work. Can anyone help me Thank you The '9's in your mask mean numbers 0-9 or space. For an IP you probably want a mask of "990\.990\.990\.990" Using "\." instead of '.' should avoid having the decimal point being globalize ...Show All
.NET Development Displaying XML Project 2003 file in Project 2003
Anyone, I can create an XML file from a Project 2003.mpp file. I want to be able to double click on the XML file and display it in Project 2003. What additional tags/fields in the XML file are required to make this happen An example file/code would be great. NOTE: In Word XML files, the field progid=word.document is found, and when you double click on the word XML file, it is opened in word. Excel works the same way (progid=excel.sheet). I am looking for the same kind of functionality for Project 2003. Thanks. Kevin PS: If there is a Project 2003 forum that I should also be posting to, please point it out to me ...Show All
Windows Forms Clean shutdown of app
Hi, I am trying not to allow user to run 2 instances of the same application. I am handling it like this If Process.GetProcessesByName(Process.GetCurrentProcess.ProcessName).Length > 1 Then MessageBox.Show("Another Instance of Application is already running", "Multiple Instances Forbidden", MessageBoxButtons.OK, MessageBoxIcon.Warning) Now, I cant seem to shut down the application cleanly. I added following line after the message box Application.Exit() but that does'nt shut down the app. I tried doing this Me.Close() It closes the application ...Show All
Microsoft ISV Community Center Forums Error refencing DLL in XLA
Hi ! I have prepared an MSI Installer for my XLA to be deployed on the server, the MSI contains all the DLL referenced by the XLA. The MSI runs fine but when I try to open Excel on that server it gives me a reference error, I have to *explicitely* go in VBA Editor and set the reference for the erroring DLL, after that the XLA works fine. The strange thing is that in the MSI I have set the path to D:\ Prog Files\... but strangely the MISSING reference in the Refernce dialog box shows C:\Prog File \.... Can this be because the server registry has not been cleaned up or perhaps there are more than one DLL registered Do we need to Unin ...Show All
SQL Server Error codes and how to trap certain ones
I have a system using asp pages & ADO & SQL Server 2000, which processes files, builds a SQL insert statement from the file content and then executes it. If the insert SQL fails, I need to know whether there was something wrong with the insert SQL, or something wrong with the database (e.g. SQL Server times out), and handle those differently, Questions ======= 1. Is there an easy way to do this without checking against a list of error codes 2. Can anyone point me to a list of errorcodes Can't find this anywhere thank you Thanks Joey, but this isn't exactly what I need, this system is a batch proce ...Show All
Windows Forms Display a form's icon in a button control
I want to display a form's icon in a button control. I tried using the following code: Button1.Image = Me.Icon.ToBitmap It sort of works but the image size changes. The image in the button is now much bigger than it appears in the form. Am I doing something wrong Why does a form's icon appear so small in the form, but is severa ...Show All
.NET Development Creating new tables using DataSet....
Hi All, I have one datatable in my dataset that is not in my DB. I want create this new table using DataSet. Is it possible to create a new table via DataSet using ADO.Net concepts. If possible means how to do this I don't want to use SQL create statement. Thanks in Advance, Arun Hi, The only way to do this is to connect to your database using a connection object and execute a script that would create the table using a command object. You must use the CREATE TABLE t-sql to create tables. Search the BOL for reference on how to use CREATE TABE functionality... cheers, Paul June A. Domag ...Show All
