Software Development Network Logo
  • Microsoft ISV
  • Smart Devicet
  • IE Development
  • Windows Vista
  • Visual FoxPro
  • VS Team System
  • SQL Server
  • Audio and Video
  • Visual C++
  • SharePoint Products
  • .NET Development
  • Visual C#
  • Windows Forms
  • Visual Basic
  • Visual Studio

Software Development Network >> Maheshsingh21's Q&A profile

Maheshsingh21

Member List

Jamaz
Tarh ik
IlCapo
managar
lidiya
DanBayley
ShAdeVampirE
b0bd0gz
JoseMacedo
ferdesceline
arse
AndyL
Romantic_touch
goh6613
Edmund
Henri Hein
thereaintnojustice
Kamii47
Jacky Yau
Spider-link
Only Title

Maheshsingh21's Q&A profile

  • Windows Forms question of DoubleClick on ListView in C#,need help!!!

    Hi, does anyone know to write the C# codes on how to create a double click event for ListView to delete/remove the item that i select from ListView control If you are using the Visual Studio Compiler, go to List View properties on the right hand side and there is a double click property. From there you can have that. Also try clicking on your ListView Control twice and it should do that for you in the Code. Manually, it should go in the designer code as well as C# code file.Should look something like this on both places. // In the Designer this .listView2.DoubleClick += new System. EventHandler ( this .listView2_DoubleClick); // In the CS Code file private void listView2_DoubleClick( object sender, System. E ...Show All

  • SQL Server Calculated members are unbelievably slow

    In general. Need help what are the top items I must check My client is Excel Pivot table I have one cal. member [NAV] from one fact table  I am getting POSN TOTL CURR NAV BAL PTFC and OWNSHP PRCNTG cal. mem [NAV] formula is below Iif (([Investment]. CurrentMember . Level . Name = "Investment Cd" or [Investment]. CurrentMember . Level . Name = "Investment Type Cd" ) and ([Investor]. CurrentMember . Level . Name = "Investor Type Cd" or [Investor]. CurrentMember . Level . Name = "Investor Cd" or [Investor]. CurrentMember . Level . Name = "Investor Desc" ) , [Measures].[POSN TOTL CURR NAV BAL PTFC] * [Measures].[OWNSHP PRCNTG] , Iif ([Investment]. CurrentMember . Level . Name = "Investment ...Show All

  • Visual Basic Working with RichTextbox control in vb.net 2.0

    Hi to all, I have a requirement like this, In my vb.net 2.0 Application, Im using a richTextbox Control. In this How can i add a short cut key to change a word to bold when i press ctrl+B.(Similar to in MS Word Ctrl+B,Ctrl+U,....) Please send me a solution. thanx in advance. Actually, its much more complex than just creating a new font from the current SelectionFont and setting the style. First, you want to be able to combine styles such as BOLD and UNDERLINE so you can't just set the style property - you have to add or subtract styles from the existing one. Second, if the selection contains more than one font type, the SelectionFont property will return NOTHING - this has to be handled... Her ...Show All

  • Visual Studio 2008 (Pre-release) Graphical Design Tools for WPF?

    HI, We are planning to use WPF for our next big project. From our research, we couldn't find a graphical design tool, which is integrated in Visual Studio. Is there going to be a graphical design tool in Visual Studio Thanks, bsg01 Thank you Michael. It's very helpful. Now, we are trying the WPF hands-on labs. All the labs teach us how to develop a WPF application by directly editing XAML files. Do we have to work with XAML files when we develop WPF applications Thanks, bsg01 ...Show All

  • Visual Studio 2008 (Pre-release) Dispatcher.BeginInvoke and application freeze

    Hi everybody, In my application, I use Dispatcher.BeginInvoke() to allow a long method to be run asynchronously. But this doesn't prevent my application to be freezed during the call of Dispatcher.BeginInvoke(): i click on a button which call the Dispatcher.BeginInvoke() method, but this button (and all of my app) is freezed and i've got to wait before being able to use my app again.... How can I launch a method asynchronously so even if it's a long method, I'm still able to use the app I tought Dispatcher.BeginInvoke() could do it but it looks like not..... Thanks That works fine most of time. But in my case, my method access one or more WPF controls so I can't use Thread (indeed, this one thro ...Show All

  • SQL Server Exporting the Report into Excel : Timeout Problem

    Hi, I have installed the SSRS 2005 beta version, when I am exporting the report into excel format it is working if my report has 1 to 3 pages. But the same report contains more than 10 pages then I will be getting the TimeOut error. The operation has timed out Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.WebException: The operation has timed out Any suggestions are welcome. Thanks in Advance Hi, I made the same experience, when exporting to XLS I got a timeout error message. This also happens when exporting to pdf, but not w ...Show All

  • .NET Development hashtable sorting weirdly

    Hi, I have an xml file that contains: < Project name ="A1"      value =" " />                   < Project name ="A2"      value ="K" />       < Project name ="A3"      value ="K2" />       < Project name ="A4"      value ="F"/>   and I am placing it in hashtable. one by one in a loop...   when I loop and view the hashtable it sorts them weirdly to:   Key: A3 Value: K2 Key: A2 Value: K Key: A1 Value: Key: A4 Value: F ...Show All

  • SQL Server INSERT command question

    I am working from C# VS2005 environment. My databases are in SQLEXPRESS. All tables have a unique Primary Key field. The key is just one field of int value that has seed 1 and autoIncrement 1. My question concerns a Stored Procedure that I just created. If "executed" fine. I did not get any compillation errors My question is: if I called this procedure from C# code with paramaters I specified will it create a NEW record for me which is my intent I did not specify the Primary Key field value: it is not among parameters. I hope that when the first record is created it will be seeded with value = 1 and the subsequent records will be autoincremented by 1 each time. Am I right If not then how shall I specify the Primary Key val ...Show All

  • Windows Forms DataGridViewComboBoxColumn selection

    Hi, I am developing a C# application in VS2005 and I've added a DataGridViewComboBoxColumn to a DataGridView in a form and set its DataSource, DisplayMembers and ValueMembers properties. When the form is loaded, the grid shows all bind and unbound columns data and it also fills the combo box with correct data, but the problem is that no item is selected in combobox. I have to click on the combo box to select an item. I'd be thankful if anybody guide me to solve this problem: How can I select an item in the combo box in the dataGridview programmatically Thanks in advance, Saeideh foreach ( DataGridViewRow r in dataGridView1.Rows){ foreach ( DataGridViewCell c in r.Ce ...Show All

  • Visual Studio 2008 (Pre-release) How to draw connector line between 2 shapes

    I have a WPF c# windows app and am creating custom rectangle shapes that I can drag around a canvas. My custom rectangle is actually a custom class (myShape) that inherits from Canvas. So far I can drag myShapes around the canvas and resize it by selecting the sides or corners and dragging them in or out. Now I need to connect them with lines. My first step is to just learn how to drag the end of a line and drop it on the side of myShape. When that happens I envision creating a custom port object that is responsible for holding information such as location and keeping the end of the line in that port when myShape gets dragged to a new location. Ultimately I want to create custom connector objects where I can add specia ...Show All

  • Visual Studio Brace Matching and User Types color in VC++

    The new Fonts and Colors settings* in the code window in VS are great! For example red text for strings and a blueish color for User Types. (Brace Matching is invaluable!) But only some of the settings seems to apply to C++: User Types remains black whatever color I choose and Brace Matching won't work. * Tools/Options/Environment/Fonts and Colors/(Text Editor) I have the same problem. I'm using vc++ ee. And syntax coloring for user types dosn't work. You would think that: class A {}; //... A a; would make A color you've chosen, but no. It’s treated as normal text. In vc# ee it's working as it should but not in vc++ :/ . It's ignored no metter if you restart IDE or not :(. ...Show All

  • Visual Studio Express Editions VB Express aborts when adding data source

    I have a brand new VB Express project - one form, a menu strip - very simple. I attempt to add a data source - SQL Express database - using the data source wizard. The DB is also very simple - a few tables, no views, or queries as yet. At the last screen of the wizard sequence, I specify just the tables as data objects to add, and click finish. After a few seconds, the entire VB Express IDE disappears - gone! No abort message, nothing. Things don't work too well after that on an IDE restart without a reboot. Has anyone seen this behavior before Any suggestions greatly appreciated! You didnt say if anything was in the system event logs. I'd uninstall both, restart the machine and reinstalling ...Show All

  • Visual Basic How to create an instance of a C DLL.

    Hi. I want to know about creating an instance of a C DLL and how to use that instance in a VB function on VB6.0. Thanks in Advance.   I am aware of that. But since VB is the language in which you are trying to use the DLL, you should ask people who know their way around VB. If you were trying to use a DLL in C/C++, this would be the place to ask. ...Show All

  • SQL Server Database files free space (SQL Server 2005)

    Dear friends I need to report the amount of free space in each datafile of a database. I have tried sys.dm_db_file_space_usage , but the documentation says that it only works for the TempDB. Please help. Regards Parviz Here's some code, cribbed from a sqldbatips report designed to mimic the taskpad in SSMS. ( http://sqlblogcasts.com/blogs/sqldbatips/archive/2006/11/21/custom-ssms-reports-in-sp2-enterprise-manager-taskpad-view.aspx ). All I did was add some code to show the amount free. Seems to work well. Posting here because this was one of the top results in Google when I went looking for code myself. create table #data ( Fileid int NOT NULL, [FileGroup] int NOT N ...Show All

  • SQL Server SQL Server Performance Problems

    Hi, I am running SQL Server 2005 SP1 on Windows Server 2003 SP1 on an Intel Xeon 3GHz CPU, with 2GB of RAM, and a 100GB hard disk. The database engine, analysis services, and reporting services are all on the same server. I now have a number of databases and cubes on the server, and am starting to run into performance problems. When a spreadsheet tries to query the database engine the same time that an Analysis Services cube is being processed or an SSIS package is updating some database tables, the query will often timeout. I realise that the best solution is probably to place Analysis Services on its own server, although the extra cost means that this is not a possibile solution. Are there any recommendations for improving th ...Show All

©2008 Software Development Network