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

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

sureshv

Member List

bstoker
jackrudolf
Michael Carty
SanderS
Niehls
upgraders
Dirk Junghanns
Ayman metwally
Mach1
MrZap
Gurpreet Singh Sawhney
PLeopard
jschroeder
ManishMenon
World Piece
summerwind
KitWest
markse
Al6200
leozworld
Only Title

sureshv's Q&A profile

  • Visual Studio 2008 (Pre-release) How to measure control using particular template without applying it?

    Hi all. I have control instance with some template applied. Then I need to measure this control with other template _without_ applying it. I need something like "predict" control's size with other template without changing current visual appearance of the control. Is it possible Nice one! Don't know if it couldnt cause wierd dependency issues if a rendering happens at the same time you change the template, potentially forcing a Measure / Arrange while you swap the template. Maybe wrapping that code between BeginInit and EndInit would be a good idea. ...Show All

  • Visual C# Need help with enum and color assignment

    Hi, I need help with some enum and color assignment. This is what I need to do. I have an enum like: public enum statusFlag { Unknown = 0, Easy = 1, Medium = 2, Hard = 4, ExtremlyHard = 8 } From xml: (not sure how this is repesented) Unknown = Black Easy = Green Medium = Yellow Hard = Orange ExtremelyHard = Red Now, I have a set of color for each of the different status flags. These colors are user definable. Possibly will reside in an xml file. I am wondering how am I doing to do this requirement in C# assuming the color matching color of each status flag will be coming from an xml file (probably, app.config file) So, depends on the status variable, I need to pass back the equivalent color. ie. Is is probably going to ...Show All

  • Windows Forms Bindingsource.Filter fails

    When I filter a bindingsource that is the data source for a grid I get no records even though applying the same filter to a regular query gives the expected results. barCodeJobsBindingSource.Filter = "Job='" + sJob + "' AND Task='" + sTask + "'" ; this.barCodeJobsBindingSource.Filter = "Job='CS-3229' AND Task='201'" The grid shows nothing and this.barCodeJobsBindingSource.List.Count = 0 If I run Query Analyzer with SELECT * FROM barCodeJobs WHERE Job='CS-3229' AND Task='201' I get the correct number of rows. Any ideas Thanks! Paul If you bindingsource is bound to a DataTable try using the DataTable.DefaultView.RowFilt ...Show All

  • .NET Development Find Method

    Hi, Can someone give me an example of the BindingSource.Find Method I have tables with 2 and in some case 3 fields defining the table key. I cannot find any example on how to look for a row this way!!! Is it possible All the examples refer just one filed to look for.... Thanks, Pedro Public Function Find (ByVal propertyName As String , ByVal key As Object ) As Integer Member of: System . Windows . Forms . BindingSource Summary: Returns the index of the item in the list with the specified property name and value. Parameters: key : The value of the item with the specified propertyName to find. propertyName : The name of the property to search for ...Show All

  • SQL Server Booi.ini switch

    Hello, I read a lot of artical but still can't understand. I have SQL 2005 ent edition 32BIT on Windows 2003 Ent R2 32 bit. I have 4GB on my machine. What switch I need ton the boot.ini /3GB /Userva=2900 /PAE (is this only if I have more than 4GB ) Thanks PAE is only required for SQL Server to use more than 4 GB of physical memory - you don't need it Generally, for a standalone SQL Server, AWE is preferable to 3GB as it allows only SQL Server to take advantage of more than 2GB of RAM The account used for SQL services will have to be given Windows " lock pages in memory " administrative credentials. and then running this query to set AWE ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. boundingsphere not on centre

    ok, going mad here, might be doing something wrong, i dunno i have a problem. when i display a model in my scene, i want the camera to zoom and focus in on it. all the models im displaying are imported .x files. to get the target for my camera to focus on, i use the boundingsphere property of the modelmesh. to eliminate all other coding problems i thought i may have had, i created a new project, with just one cube that is 8x8x8f and its position is just 0,0,0. now if i focus the camera on the boundingsphere.centre property from the cube, it is off to the left. you would expect it to stay focused right on 0,0,0, but no can anyone explain this any programmer should be able to emulate this problem in less than 2 minutes. if you cant emulate ...Show All

  • Visual Studio Team System workItem user id

    Hi, I'm trying to integrate the workItem traking system with my database, so I need to get the users "IDs" out of the workItems objects like (changed by, Activated by ...). could you help me please Nobl Hi, Thanks a lot, yes this is very helpful. but can I get these information programmatically I mean is there any object that can get me these information without interacting directly with the database Thanks in advance Nobl ...Show All

  • Smart Device Development DesignerSerializationVisibilityAttribute - Workaround

    Hello, i have got a public property which should not be set in the ...Designer.cs. Is there any workaround available to prevent the property from Designer serialization thanks Hi Add an attribute to that property to hide from VSDesigner. So when the Designer dosent see it it will be unable to set the Value. [System.ComponentModel.Browsable( false )] public string YourProp { get; set; } ...Show All

  • Smart Device Development detect connection

    Hi! I have to detect what kind of connection ( usb, ir, bluetooth ). I searched a lot about it but nothing was found... Anybody has any idea Thanks! Celso Yes, ActiveSync Both of them, but which connection i am using is more important. thanks for replying. Celso ...Show All

  • .NET Development Accessing/Editing SQL Server Database using VB.net program via TCP/IP

    Hey everyone, I have a SQL Server 2005 database up and running on a server and I have it set so that there can be remote connections using Windows Authentication (we share the server with some other accounts so this is the most convenient way for us to do it) and I also made sure that our XP Firewall allows connections to SQL Server. We have created  program using VB.net (Visual Studio 2005) that reads/writes/and deletes items from our database on the local machine.  What we want to do is now make it so that we can run the VB program from other computers around our building and remotely connect to the database via TCP/IP using Windows Authentication. I have tried altering our data source that writes to the database locally ...Show All

  • Windows Forms MessageBox doesn't do anything on Application Exit

    i'm not sure why this is, maybe some of you guys can help me out. i have an MDI application. i have a MDI child inside the parent. i click the "X" of the MDI window to shut down the application. i have a call to MessageBox.Show in the Dispose(bool) method of the child. nothing shows. i put a break point, and i can actually step through it and it hits the line where i show a message box, but it passes through it and nothing comes up. i need this functionality because when the application closes i need to ask a question for each MDI child. it works fine if i close the child inside the MDI parent. is there some event i can listen to or something like that the ApplicationExit event occurs too late. thanks! ...Show All

  • Visual Studio Hi, how can remove a empty column from preview of crystal reprot?

    I have a Crystal report with 700,000 records. I grouped this by fields "PROCESS"  and "OPERATION". Under the Grouped Operation field there are many duplicate numbers such as 10 or 20. I want to suppress the duplicate numbers and only show each distinct number once for each Grouped Process & Operation. Example: Process     Operation LEFC710     10 LEFC710     10 Process     Operation LEFC730     10 LEFC730     10 LEFC730     20 LEFC730     20 LEFC730     30 LEFC730     30 In this example I would like to see only: LEFC710 &nbs ...Show All

  • Community Chat ok it,s done...update

    ok guys I have tried everything to publish my new web browser on to my site.... thanks spotty for all your help.... much appreciated.... I think my isp is not configured for click once.... I have clicked a thousand times to no avail....... so I am wondering if there is some other way to post my application... I would like to put my app on show and tell and get some feedback... any advice on how to do this thanks cheyenne But it's your first app, so this is good to begin, make it evolve as your knowledge evolve, someday it will be great ;) (My first app wasn't very useful, not good, didn't follow any programming rule.... But I like it!) ...Show All

  • Visual Studio 2008 (Pre-release) blend project to VS to xbap - how?

    I have created a project in Blend. It has a xaml file and some codebehind which is c#. I now want to create an xbap. I have VS installed but have no idea how to create the xbap. I open up the project in VS and get lots of warnings and the project will compile and run. I then right click the project and choose publish and go through a wizard which creates a bunch of files that dont mean a great deal to me. On one site I saw that it was possible to look manually create the xbap instead of using the wizard - could someone point me in the right direction in VS on where this is or better still any tutorials out there It used to be nice and easy as I used EID to create the xbap but with Blend its not possible and you have to now learn V ...Show All

  • Visual FoxPro Report: Counting / totaling groups.

    Is there any new fetures in VFP report designer which will allow me to easily count the group bands I have some reports which I need to show the number of items in one of the group bands (In other words the number of times a group band is printed). Thx. There's nothing new for this. You can do it the same old way, with a pair of report variables. One keeps count and the other tracks the current value of the grouping variable. Set it up like this: Name: nGroupCount Initial Value: 0 Value to Store: IIF(uGroupVar = <the grouping expr>, 0, 1) Calculate: Sum Name: uGroupVar Initial Value: <an impossible value for the grouping expr> Value to Store: <the grouping e ...Show All

©2008 Software Development Network