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

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

Bravo2007

Member List

Jim J
PeterPan1120
G20
Jehan Badshah
DaveSussman
steveareno
Larkin Y
Vladimir Chtepa
bababab
CKa
RavindraPatil
Linton
Scott Masters
WingingIT
Catalin Zima
Alastair Q
spammer
Jassim Rahma
TSZ
Hendo
Only Title

Bravo2007's Q&A profile

  • Visual Basic region hit test efficiency

    I am designing an app that involves a display consisting of many rectangular shapes interconnected by lines. What I need is an efficient mechanism for hit testing mouse clicks on the lines. One way to do this is to create regions around the lines the length of the line and a few pixels wide on each side and then use Isvisible on the region to do the test. My question is whether or not this is a bad idea from the point of view of overhead The alternative is to develop my own or someone else's algorithm using the mouse location and the lines directly. There is certainly overhead connected with that approach as well. read this , you may find it useful. http://www.dotnet247.com/247reference/a.aspx u=http://www.bobpowell.net/gdiplus_faq.h ...Show All

  • Visual C# curve length & area problem

    greetings, can anyone help me about calculating the length and the area of a curve/closed curve I urgently need help, code or just the method ... I'm using .net 2005, c#. and I'm drawing the curve with using simply the points. thanks in advance. Hi,   to calculate the length of the curve you will need to know the length of the circumference of the circle and the angle of the arc, so: Circumference = Pi * diameter Length of arc = Circumference * angle of arc (in degrees) / 360   The area of circle = Pi * r^2 Area will be: (angle of arc / 360) * area   So in C# it would go something like: //Your values double circleRadius = 12; double ang ...Show All

  • .NET Development Shell Path Handling Functions in .NET

    Hi folks - I was wondering if .NET has any wrappers or equivalent methods for the complete set of functions included in the Win32 Shlwapi.h library This list of functions is at: http://msdn.microsoft.com/library/en-us/shellcc/platform/shell/reference/shlwapi/path/path.asp frame=true It includes funcs like PathFileExists(), PathFindExtension(), PathFindOnPath(), etc. These are pretty much convenience functions and I realize that there is *some* duplicated functionality in .NET Classes (The .NET System::IO::Path & Directory classes) but I was looking for a nice complete list of equivalent methods in .NET. Any pointers    - Zero There are a few places you might als ...Show All

  • SQL Server SQLConnection fails from Windows Service

    Hi, I'm currently writing a windows service which will generate XML documents for FTP upload. When running the service the goal is to get records from a stored procedure, then generate the XML documents. When running the service (lokal service account) the connection fails; instead of using the supplied connection string, it defaults to the LocalService account. How can this be solved Thanks in advance Thanks... but the SQL server authentication is running in mixed mode. So that isnt the problem. For some reason the service login overrules the login defined in the connection string.. the service is already running when I open the connection with a valid connection string. Still the service co ...Show All

  • Visual Studio Express Editions dataset fun

    i am looking for the quick and dirty way to work with the data set i can't seem to get it right. mds is my data set: Dim YES() As String = { "A" , "A" , "A" } Mds.Tables(0).LoadDataRow(YES, True ) Mds.AcceptChanges() Dim writer1 As New StreamWriter( "MDS.XSD" ) Dim writer2 As New StreamWriter( "MDS.XML" ) Mds.WriteXmlSchema(writer1) Mds.WriteXml(writer2) writer1.Close() writer2.Close() this part works fine (i think) i now have two files 1 with me schema (.xsd) and 1 with my xml (.xml) file with the information i put in it what am i suppoed to write to get that data back into my dataset later I tried: Dim reader1 As New ...Show All

  • Audio and Video Development Problem in Monitor Control API's in Vista

    I have ATI card on my VISTA system, I want to control the monitor parameters using Monitor configuration functions. As a result in my appilcation I have loaded the dll, like LoadLibrary ("dxva2.dll") I also get the proc address of following functions GetNumberOfPhysicalMonitorsFromHMONITOR = (tGetNumberOfPhysicalMonitorsFromHMONITOR) GetProcAddress (hModule, "GetNumberOfPhysicalMonitorsFromHMONITOR"); GetPhysicalMonitorsFromHMONITOR = (tGetPhysicalMonitorsFromHMONITOR) GetProcAddress(hModule, "GetPhysicalMonitorsFromHMONITOR"); GetCapabilitiesStringLength = (tGetCapabilitiesStringLength) GetProcAddress(hModule, "GetCapabilitiesStringLength"); When I try to use these function, follo ...Show All

  • Visual Studio Team System outputDirectory doesnt seem to work

    Hi All, FOr a test project I have in VS2005, I hand edited my locattest.testrunconfig to have the following: <key type="Microsoft.VisualStudio.TestTools.Common.DeploymentItem"> <path type="System.String">cfg</path> <outputDirectory type="System.String">cfg</outputDirectory> </key> Per my understanding that should copy over the cfg folder in my SolutionDir to the Out/cfg folder in TestResults, at the end of the test. Unfortunately it copies over the _contents_ of the cfg folder into the Out folder (no cfg folder created). Am I missing something very basic here Any help would be appreciated. Thanks. AM Hi David, Thanks ...Show All

  • Software Development for Windows Vista Tracking and Persistence Service

    Hi, I tried adding the SqlTrackingService and SqlPersistenceService to my runtime. I have two databases one for tracking and one for persistence When I add only one of there service, I am able to see the entry in the database, but when I have both the services added I do not see any entry in the database. This is what I am doing. string connectionString = "Initial Catalog=PersistenceDatabase; Data Source=localhost\\SQLEXPRESS; Integrated Security=SSPI;" ; SqlWorkflowPersistenceService persistence = new SqlWorkflowPersistenceService (connectionString); workflowRuntime.AddService(persistence); string trackingConnectionString = "Initial Catalog=TrackingDatabase; Data Source=localhost\\SQLEXPRESS; ...Show All

  • Visual C# Is it possible to leave variables uninitialized

    Hi! Here comes another rookie question. I was wondering if it is possible to  leave variables in a class uninitialized. I am making a class, historyElement, containing information about different events at  different times. The application is supposed to log various events through time by creating historyElements and storing them in an "history"-arraylist. Now, the historyElement contains an enum variable called CUE that can take various values. Sometimes the CUE is used, an other times it isnt. It would be nice (because then I wouldnt have to go back and change a lot of code), if it was possible to just leave the CUE variable uninitialized whenever the CUE isn't used, and only initializing it wh ...Show All

  • Visual Basic Notification area

    With Visual Basic 2005 How Can I add my Program into the notification area Look here To have your application show up in the system tray (Notifcation Area) use the NotifyIcon control from the tool box and set its properties accordingly ...Show All

  • Windows Forms "Specified <entryPoint> is not valid" while reading Application manifest?

    Hi all, I'm trying to deploy a .Net 1.1 application using ClickOnce. All clients have .Net 2.0 installed (on which the 1.1 application runs fine), its just that the client code *has* to be built on the 1.1 platform. Hence, I can't use VS2005 to generate the manifest and deployment files for me, because it will cause the client code to be built for .Net 2.0 before generating the manifest and deployment files. So I figured I should use the Manifest Generator tool (mage.exe / mageui.exe) to generate these files for me, since it doesn't require my code to be rebuilt first. This seemed to work pretty well: just have Mage create a .exe.manifest file that contains all assemblies used by my application, and then have it create a deployment f ...Show All

  • Software Development for Windows Vista HandleExternalEventActivity - XAML only

    Hi, I am writing a xaml only workflow. xaml file looks like this: <ns0:SampleWorkflow x:Name="SampleWorkflow1" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/workflow " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " xmlns:ns0="clr-namespace:CustomActivityBinding;Assembly=CustomActivity, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"> <ns0:CustomActivity1 x:Name="print1" NameToPrint="{ActivityBind Name=SampleWorkflow1, Path=NameToPrint}" /> <ns0:CustomActivity2 x:Name="print2" NameToPrint="{ActivityBind Name=print1, Path=NameToPrint}" /> <HandleExternalEventActivity x:Name= "ChildWFCompleted" EventN ...Show All

  • .NET Development Web Services Licensing

       Thanks all as I got the solution to it.   Here is one theory. you can pass a product ID or something from the caller, then check the ID in your database. if the ID has been found, then return true for successful authentication otherwise false as the ID does not exist on the database or has been classified as "blacklisted" or something of that nature. Also you could set a local variable on the webservice to true to indicate that on the next call to the webservice of the same instance, that the authentication is successful, so the caller HAS to call the authenticate method first before proceeding, and kind of pervents them from "hacking" in (in a certain sense)   hope this gives you some basi ...Show All

  • Windows Forms 2 tables in one form doesnt allow me to update

    hello. i have a problem with sql tables. i put 2 tables in one windows form. and when i try to update one of them like this: if (radioButton1.Checked == true ) { int a = Convert .ToInt32(label2.Text); label2.Text = Convert .ToString(a + 1); this .Validate(); this .cevaplarBindingSource.EndEdit(); this .cevaplarTableAdapter.Update( this .databaseDataSet.cevaplar); soruBindingSource.MoveNext(); } it gives error in this part: this .cevaplarTableAdapter.Update( this .databaseDataSet.cevaplar); saying: "Update requires a valid UpdateCommand when passed DataRow collection with modified rows." what should i do thank you. ozzy The tableada ...Show All

  • Visual C# library source code

    Is there a possibility to read the source code of the .net class library I'd need to know how a certain method of the webBrowser control works because I want to replace it. You can use things like ildasm and Reflector . ...Show All

©2008 Software Development Network