QasimRaza's Q&A profile
Windows Forms why are the forms properity reset itself?
I create a form using vs2005 - vb, there is One more language (culutre) for this form. The form properity (Design) reset it self for the original form not for the culture design. ex. Form1 form1.formborderstyle= fixtool... now, create new culture, it should inhirt same value (form1.formborderstyle= fixtool...) if I rebuild the project the main form will return to the default value for that property (form1.formborderstyle=sizable) so, what is up Nope, I followed your steps carefully but the FormBorderStyle property doesn't change. This might be specific to your default culture setting, mine is EN-us. If you don't get an answer on this thread, try posting your problem at Product Feedback . Don't expect miracles.. ...Show All
Visual Studio Adding fields to report at runtime! (in CR for VS.NET) any chance?
Hi How are you ;-) How is it possible to design report structure, specially report fields, at runtime , in CR.NET for VS.2005 shall i pay for another edition of CR, like Developer Edition :-( Thank you. I hope i could help you some day. Nope, you cannot add fields at runtime to the report. You will need to have access to the RAS SDK and a RAS server, which means you need either Crystal Reports Server XIr2 or Business Objects Enterprise XIr2. ...Show All
Windows Forms How can I keep the same color format when I increase the font size in RichTextBox?
I am using Visual Studio 2003 version RichTextBox. I have a colorcoded formatted text like this one in RichTextBox. SELECT VALUE FROM v$parameter WHERE name='db_name'. When increase the font size or decrease the font size of richtextbox, the colorcoding goes away, and it look like black and white like this. SELECT VALUE FROM v$parameter WHERE name='db_name' How can I retain the color when I increase or decrease the font size The text I have given is sample, while actual text may have 10MB data. Thanks, ...Show All
Visual C# How to get folders opened by explorer.exe
Everytime when user double-clicks on a folder in my computer window, explorer.exe process opens the folder. Is there anyway from which I can get the list of folders opened by user Also can i get the path of the currently opened folders Hi Voga, Thanks a lot for the useful response. Those articles from ur blog really took me one step ahead. To make things clear for you, I am developing an application which sits in the taskbar and monitor the system. Kind of spy application which tracks system. Ex: opened windows etc. I specifically want to get list of open explorer windows and the path. Ex: if c:\Windows\System32 folder is open by the user i should get 'System32' as title (in winXP) and path as ...Show All
SharePoint Products and Technologies User Information List
Hi I created a custom column to User Information List. (say "IsInactive") now I want to access them using the following code.. SPList = web.Lists["User Information List"]; itemList = userList.Items; foreach ( SPListItem item in itemList) { //try to access this column throws the exception (says argument out of range...) item["IsInactive"]..... } Does anybody know how to access this custom column Thanks Manu ...Show All
Smart Device Development Native Exception Error - 0xc0000005
I am running the following code - which takes the data from an XML file and updates a SQL Mobile table - it seems to consistenly throw a native exception error (ExceptionCode: 0xc0000005) Here is the code: #region DataRefreshFromXML public void RefreshDataFromXML() { if ( File .Exists(appPath + @"\data\HandheldInventory.xml" )) try { DataSet ds = new DataSet (); ds.ReadXml(appPath + @"\data\HandheldInventory.xml" ); if (ds.Tables.Count > 0) { using ( SqlCeConnection cn = GetConnection()) { SqlCeDataAdapter da; da = new SqlCeDataAdapter ( "SELECT * FROM MobileInventory" , cn); SqlCeCommandBuilder cb; cb = new SqlCeCommandBu ...Show All
SQL Server SQL 2000 DB restored to SQL 2005 Express
I have a *.bak file I backed up from SQL 2000. Now I'm trying to restore it into SQL 2005 express and this is what I get: System.Data.SqlClient.SqlError: Directory lookup for the file "C:\Program Files\Microsoft SQL Server\MSSQL\data\ansa.mdf" failed with the operating system error 5(Access is denied.) On the file listed above, I have network services, everyone, administrators permissions set to full control My *.bak file is in a folder called "backup" - My *.bak file and folder both have network servies, everyone, administrators permissions as full control. What gives I can't restore this db. I read some other thread about someone having the same problem as me, but their solution didn't fix my problem. May ...Show All
Visual Basic Disabel or Enable the DELETE key programatically
I wander if any body has a VB.NET or C#.NET code for disabling and enabling the DELETE key programatically; this problem is giving me a headache when using master detail relations using datagrids; please help thank yoy ziad dodin HI I got the same problem, but when some one deleting the text in a combobox using delete key on the keyboard. can you suggest me how to disable the delete key on comboboxes and text boxes in vb.net ...Show All
Visual Studio Express Editions What is the Best Method?
What is the best method to get file names from a directory in order to rename them I used a combo box and a numeric up down..and you will have to do some padding but this should get you started.... Dim RootPath As String Dim TheFiles () As String Private Sub Form3_Load ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Me . Load For x As Integer = Keys . A To Keys . Z Me . cboAlphaSequence . Items . Add ( Chr ( x )) Next Me . cboAlphaSequence . SelectedIndex = 0 If FolderBrowserDialog1 . ShowDialog () = Windows . Forms . DialogResult . OK Then 'FolderBrowserDialog1.SelectedPath = SelectedFol ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help with Help
When I open the help contents, and goto Visual C# Express Edition I don't see an XNA category, just MSDN, DirectX and Help on Help. How do I get this to appear, as I want to go through the starting tutorial. I've tried all three, and it does not appear in any of them. When I do the filtered by XNA, nothing at all shows up. And I did a full install... it was there when I first installed it at release. I haven't had time to read it till today though. I sat down, and it was no longer there. ...Show All
Community Chat My creation: Galaxy war (2D game using DirectX)
Hello there. This is my game: Screens: Selecting a map, lets start on Easy Shooting stars in game, fun multiply backgrounds Lets see my score Download game: Galaxy war Official website (for more information) The game saves progress as you advance (the save is encrypted so forget cheating ;) There are multiply backgrounds and multiply ships. The design of the game is so good that the user can create ships himself. It takes about 2 second to add another level on the map, the information is kept in an array inside the program. I have created a version containing songs in the background (the ending background music was set to Back to the Future theme song) but first: It was a .wav file over 30 mb and I still haven't learned how to play m ...Show All
Visual C# How can I create an empty XmlElementString with XmlWriter
I am trying to dump out a collection of values from an editor I am writing. There are some elements that I need to write out, even though they are empty. Whenever I try something like... writer.WriteElementString( "variable" , "" ); or writer.WriteElementString( "variable" , string .Empty); I get <variable /> instead of <variable></variable> I tried a WriteStartElement("variable") followed by a WriteEndElement but that gave me... <variable> </variable> Does the line separation make any difference to having it all on one line LeeC22 wrote: I get <variable /> instead of <variable></variable> Hi, just wondering what's w ...Show All
Visual Studio Tools for Office Error loading VSTO project
Hi All, I have a VSTO Addin I created with VS2005. The Addin was installed on Windows 2003 Server with SP1 & Office 2003 with SP2. The Addin worked for a few months. Now, when the client tries to run it he gets "Office document customization" error (see snapshot). http://img403.imageshack.us/img403/4074/vstoerrlr7.jpg I got the message error by setting VSTO_SUPPRESSDISPLAYALERTS to 0. Pressing the 'details' button gives nothing. I tried to reinstall the Addin - didn't help I tried to create a new public key, rebuild the project and reinstall - didn't help When I install from the same setup program on other computers (Windows 2003, Windows XP) - it works without any problem. All keys in registry/casp ...Show All
Visual Studio Express Editions unhandled exception message
is there a way to aquire the message that the details of the exception makes. Not the exception.message property i am talking about the part that says "arguementexception was unhandled" In addition, there is a global routine already in place that will handle any exceptions which haven't been handled: Select MyProject, Application Tab, Application Events, select MyApplicationEvents and add code to the MyApplication_UnhandledException() event. You can also prevent the application from closing after an unhandled exception. ...Show All
Visual Studio 2008 (Pre-release) x:shared doesn't share all the way
Hi, I've been trying to do a proof of concept of using XAML as a basis for IOC (Inversion Of Control pattern, or Dependancy Injection). The closest I got was by using ResourceDictionary . I've found the MergedDictionaries feature that would allow a solution to scale and x:Shared="false" that would allow new instances to be created at every access. Unfortunately, I found a rather disturbing behavior. Allow me to demonstrate the problem I found in boiler-plate code. Let's say I have the following App.xaml: < Application x:Class = " WindowsApplication2.App " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " ...Show All
