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

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

CirdanCelebrindal

Member List

mikewo
GoDaddy
ShEi
Chaz Clover
ssfftt
Netmaster0000
Adam Miles
swapna_n
Dasa
cheesenhomer
kymaita
ahmedilyas
RichHamilton
Kamii47
simsen
Jean-Pierre Fouche
danych
McGeeky
mkfl
Matt24
Only Title

CirdanCelebrindal's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. Clipping Layered Sprites (UI Related)

    You know how in a panel if a child button runs off the side of the panel, it gets clipped. Does anyone know how one might go about doing that with XNA Or how they do it in OpenGL/DirectX Are they doing something with the stencil buffer Would this work Rectangle GetClippedRectangle(Rectangle rect, Rectangle clip) {     int clipX = Math.Min(clip.Right, Math.Max(clip.Left, rect.Left));     int clipY = Math.Min(clip.Bottom, Math.Max(clip.Top, rect.Top));     int clipWidth = Math.Min((clip.Right - clipX), (rect.Right - clipX));     int clipHeight = Math.Min((clip.Bottom - clipY), (rect.Bottom - clipY));     return new Rectangle( ...Show All

  • Visual Studio 2008 (Pre-release) Context menu @ specified position

    Hi all! I have to open context menu at special position disregarding where the mouse click was performed. Is there any way to do this ContextMenuService .SetPlacement . In addition ContextMenuService also has functions for setting the horizontal and vertical offset. ...Show All

  • Visual Studio 2008 (Pre-release) Getting list of all dependency/attached properties of an Object

    In Visual Studio, in the XAML view when we add a element tag say <Rectangle...> and hit the spacebar, we get a list of all the attached properties and dependency properties of the object. (For e.g. Canvas.Left). How can this be achieved through procedural code I tried using Reflection (on a Rectangle object in above case) but it did not help. Thanks, Niranjan Hi Josh, Thanks for the response. Here is my specific requirement - In my logical tree, I want the user to be able to provide any object name and any property name on that object as string inputs. Based on these inputs, I need to set a value on that property for that object (more specifically I want to set a bi ...Show All

  • Visual C++ How to trim all space character in a string?

    I want to trim all space character in a string, for example there is a string " 1000 + [101001] + [101002] ", how to get another string like this: "1000+[101001]+[101002]". Are there better method to do that thks pintu* wrote: void trim2(string& str) { string::size_type pos = str.find_last_not_of(' '); if (pos != string::npos) { str.erase(pos + 1 ); pos = str.find_first_not_of(' '); if (pos != string::npos) str.erase( 0 , pos); } else str.erase(str.begin(), str.end()); } std::string name = " Hello new World " ; trim2(name) You can out it much simpler than that: std::string str = " 1000 + [101001] + [101002] " ; ...Show All

  • Visual Studio Team System Which VSTS to buy?

    Hello, I have been evaluating VSTS which is about to expire in the next few days. I am contemplating buying a license, and need some help in determining which is the right one for me. I am an independant software developer. I currently have Visual Studio .Net 2003 Professional. I am also interested in setting up Team Foundation Server on my network. Looking at the Purchasing Visual Studio 2005 page on MSDN, should I contemplate buying Visual Studio 2005 Team Edition for Software Developers with MSDN Premium Subscription upgrade listed at $2,299 In particular: 1. I assume my current VS.Net 2003 Professional entitles me for an upgrade 2. Am I right in assuming that it includes Team Foundation Server Workgroup Edition 3. How m ...Show All

  • Visual Studio 2008 (Pre-release) DataView Cell wraping

    Hy, I have writhed a DataGrid using ListView and GridView, my main problem now is that text in text in going out off the cell and I can't find a way to make it wrap, here is the xaml for the datagrid: <Grid> <StackPanel> <GroupBox Margin="1"> <GroupBox.Header> <Grid VerticalAlignment="Center"> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <TextBlock Grid.Column="0" Name="headerText" VerticalAlignment="Center"> Grid header </TextBlock> <Grid Grid.Column="1" HorizontalAlignment="Right"> ...Show All

  • SQL Server API Store SQL Authentication in an embedded data source?

    I have some code that creates RDL, that has an embedded data source, which gets up-loaded to a report server via the web services API. My problem is the data source has to use SQL Authentication within the connection string of the embedded data source; is there a property or setting I need to set when I am calling the createreport function or is there an API call I need to make to get the report server to store the username and password securely ...Show All

  • Visual Studio 2008 (Pre-release) Why can't I set the SSl setting on when trying out the sample?

    Hello, well, I've been trying to use https as transport with the WCF. I've been trying this forever and never got it working yet. Since Vista was released, I'm using IIS7. (over http, I've been running the samples successfully)And I'm trying WCFSamples\TechnologySamples\Basic\Binding\WS\TransportSecurity sample. I read the following page about HTTP Transport security. http://msdn2.microsoft.com/en-us/library/ms734679.aspx Then, I read how to configure SSL setting on. http://technet2.microsoft.com/WindowsServer/en/library/70c33ea8-4192-4110-be70-a11e11984f1e1033.mspx mfr=true However, when I open IIS manager and try to set the SSL features on, all the buttons are disabled and there's warning on the right hand corner which ...Show All

  • .NET Development code and logic generation from xml

    Hi, Is it possible to generate a working code with a working logic in it from a xml file. If yes then how I have to build a class with methods and attributes from XML on some machine. So machine updates the code in run time and then receives objects from various sources and do some algorithm on them Any idea Regards Ash The question is too-general, so the answer is of course, yes. For example, I have a stylesheet, which accepts a definition of a LR language (its rules, sets of terminal and non-terminal symbols, action and goto tables) coded in an xml file and can produce the code (in any programming language) to parse a sentence of the LR language thus defined. Cheers, Dimitre Novatchev. ...Show All

  • Visual Basic How to scroll content in an OLE

    Just i need to scroll content in an OLE For sorry that is not what i want, Ok, any way, now i want to extract the OLE content to a .rtf file format, i have a Wordpad embedded ole type, and i want to export its content and save it to a file on the hard disk. ...Show All

  • Architecture What is the most valuable principle in design?

    In looking at SOA, earlier component based design, separation of concerns, etc. It seems to me that architecturally they can all be lumped in to various flavors of abstraction. So, it occurs to me and seems to hold true in my designs that the most valuable principle in software design is abstraction. Does anyone feel that a different principle is more critical Are there different schools of thought (SOA, SOC, Interface based design, etc.) that are contradictory when dealing with abstraction New to the forum, but have been wanting to talk with people that make an effort to further their design knowledge. I disagree with you EAX (with all respect of course). KISS may be right for your own tool that you ...Show All

  • Visual C# problem with making query wich contains parameter

    I'm trying to make a program to manage my moviedatabase a little more user friendly. Now i'm trying to add a new query to the adapter with the paramater. But every time i do this i get this error saying error in WHERE clause near '@'. Cannot parse query text. This is my query: SELECT ID, MapPos, Naam, Soort, Kwaliteit, Genre FROM Films where Naam = @naam It adds the method but without the parameter. Can anyone please help me, or say what i must do exactly :/ Thanx in advance Thanx anyways ahmedilyas Very good to have people like you here one other question though , a bit more sql oriented but still.. if i want to use the like statement, how can i do that SELECT ID, MapPos, Naam, Soort, Kwal ...Show All

  • .NET Development multiple select

    Using .net 2.0 Is it possible to have a stored procedure with several select statements so that a dataset can be populated with all of the select statements. So the dataset will end up with several tables (One table for one select statement). At present I use the dataadapter to fill the dataset. I do this for each stored procedure which holds a select statement each. But rather than repeating this method several times (One for each select), I would like to do all this in one stored procedure and populate a dataset with the results of these tables. Is this to do with MultipleResultSet (MRS) Any suggestions please Thanks Yes, you can and it is indeed better to get all the data with one go rather than querying ...Show All

  • Software Development for Windows Vista WinWf, SharePoint and OnActivated

    We have an InfoPath form in SharePoint that is triggering a workflow. When referencing the InfoPath form as such: private void OnActivated(object sender, ExternalDataEventArgs e) { // Read the association and initiation data. XmlSerializer serializer = new XmlSerializer(typeof(WorkflowStages)); StringReader initReader = new StringReader(this.workflowProperties.InitiationData); WorkflowStages initiationData = serializer.Deserialize(initReader) as WorkflowStages; } everything works fine if it is instead coded as public WorkflowStages initiationData; private void OnActivated(object sender, ExternalDataEventArgs e) { // Read the association and initiation data. XmlSerializer s ...Show All

  • Windows Forms ClickOnce - Find out server from within downloaded application

    Hi, How can I find out which server was a ClickOnce application downloaded from I want to connect to it without having to ask user for server name. Thanks in advance Thanks Fran, Your tip saved me a lot of time getting started but I wasn't able to use .ActivationUri.AbsoluteUri as my app crashed every time I tried to display its value in a Message Box. Instead I ended up using: System.Deployment.Application.ApplicationDeployment.CurrentDeployment.UpdateLocation.AbsoluteUri which allowed me to infer the path I required. Regards, Anthony ...Show All

©2008 Software Development Network