Software Development Network Logo
  • Visual J#
  • Visual FoxPro
  • Visual Basic
  • Windows Vista
  • VS Express Editions
  • Architecture
  • Visual Studio
  • .NET Development
  • SQL Server
  • Microsoft ISV
  • VS Team System
  • Windows Live
  • Visual C++
  • Visual C#
  • Windows Forms

Software Development Network >> Dishan Fernando's Q&A profile

Dishan Fernando

Member List

BobPaul
Friendly Dog
jlspoels
geanyee
Ryan Lamansky / Kardax
Kobe
LookingforHelp
Natiq
John Carroll
JonneeZ
Jimmy M Joy
eappell
Alemir
Don Jayamanne
hooosiers123
Yassir Zoheiri
Peter Villadsen
Michael_SQL
Haashole
w84me
Only Title

Dishan Fernando's Q&A profile

  • Visual Basic Can you do algibra in Visual Basic?

    I'm writing a program that trianglulates the loction of a point based on the distance from 3 other points.  The program's code is fine except I get a stupid "end of statement expected" error message.  Could you please help me fix the error   Here's the code: Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim out_put As Double Dim x As Double Dim y As Double Dim A As Double = TextBox1.Text Dim B As Double = TextBox5.Text Dim C As Double = TextBox2.Text Dim D As Double = TextBox6.Tex ...Show All

  • Visual Studio Team System % Time in RT checks threshold

    Hi (slumley :)), I am loadtesting a sample ASP.NET web site with 4 requests. All of them extract image blob from the DB, through asp.net handler, and show it along with simple additional data. I get critical threshold value of 25% for the '% Time in RT checks' counter. How can I further investigate where the problem is located Thanks, Martin Sometimes the threshold rule on % Time in RT checks will be fired when there really isn't a problem, so before you spend a lot of time trying to figure this out, you should also look at the value for the performance counter "Total Runtime Checks" in the same category (both are ...Show All

  • Visual Studio warning MSB4056

    Hi all How this warning effect the compile process I can't understand from the text " warning MSB4056: The MSBuild engine must be called on a single-threaded-apartment. Current threading model is "MTA". Proceeding, but some tasks may not function correctly. " Thanks Certain COM Interop scenarios don't work with MTA threading, so when the MSBuild Engine is called from code with MTA set, the MSBuild Engine logs this warning just as a heads up in case any weird behavior results. Are you hosting the MSBuild Engine in your own app What sort of app is it Console app ...Show All

  • Smart Device Development Is it possible to trigger KeyPress event manually?

    can anyone tell me is it possible to trigger KeyPress event manually if yes can tell me how Private Sub textbox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles textbox1.KeyPress         MakeAcceptDecimalOnly(e, textbox1.Text)     End Sub above is my own code which is use to trigger user keypress and let the textbox accept integer only if user key in character the MakeAccpetDecimalOnly function will do nothing (i use e.Handled = True). i want to create a button so when user click on the button, system will a ...Show All

  • Visual Basic How to get the user/owner name of a process in vb.net???

    Could anybody tell me How to get the user/owner name of a process in vb.net The reason I need it is because I developed an application, which I will put on the winnt enviroment, I want to allow multiple instance. but only allow one single instance per user. I am using Application.Run(MyMainForm) to start my application Thanks, Joseph I'm glad you had a positive experience with NGEN . I just wanted to confirm that you do indeed get a single instance per login (my >90% hunch was correct) Best regards, Johan Stenberg ...Show All

  • Visual Studio Express Editions Making Visual Studio Project Wizzards

    Hello... I am looking for information on how to make project wizzards for Visual Studio Express 2005 but have had no luck. Does anybody know where I might find such information Thanks Aristotel Hi there, could you give me more information about what kind of wizard you are trying to create Do you mean an IWizard to be used with custom templates or some other kind of wizard More information could help us direct you in the right direction. Thank you, -Prasadi ...Show All

  • Visual Studio 2008 (Pre-release) DataType

    hi all, when writing a single data (f.e. 'F' or '2') in a textbox, is it possible to get the type of this data when i try to get the type by myTextbox.GetType() everything is a string... is there any way, to get the type of the data, that is written in a textbox thanks in advance, .k you can use the static methods in the Convert class to check type. Convert.To*() where * is a type Convert.ChangeType() ...Show All

  • Windows Forms Looking for a quick and smart way to recreate a project.

    Hi, I think I have some problem with a project of mine.  It was probably converted from the older VS.Net to VS.Net2003.  I am having those corrupted metafile database link error.  I was told that I should start from a clean VS.Net2003 project and import the old files back.  The problem is that the files for Windows Forms look different in the solution explorer than before.  In the old project, I can see the form icon next to the header file and a resource file show as a child under it.  Now these related Windows Forms files seem to be unrelated in the Solution Explorer and I can no longer double-click on the h ...Show All

  • Visual Studio Express Editions How to use C# sqlConnect.connectString for MS SQL server 2005 Express?

    what's wrong with these lines String connectionString = "Data Source=(local);Database=loler;Integrated Security=SSPI" ; SqlConnection cx.open(); it give me exception as: {"An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"} System.Exception {System.Data.SqlClient.SqlException} Is that I have to set something in the SQL server configuration manager ...Show All

  • Visual Studio constrain the number of a specific shape

    hi, i have three different shapes that i could 'drag&drop' from the toolbox: shapeA, shapeB, shapeC how can i constrain if there is already a shapeA within my designer workspace, that a second shapeA cannot be drag&dropped to the designer workspace The constraint should be, that only one shapeA within the designer workspace is allowed. Any ideas Thanks! Hi, I think your best option is to wait for the upcomming CTP that has a new "validation framework" included. It should take to long for this CTP to arrive. The validation framework makes it possible write constraints for a concept in pure C#. I ...Show All

  • SQL Server Query Analyzer to SQL Server 2005

    For testing purposes, I installed SQL Server 2005 (September CTP Developer edition) on a Windows XP Pro machine whoch does not belong to a domain.  I have a Windows 2000 Advanced Server ruiing SQL Server 2000(SP4) and used Query Analyzer to connect to SQL Server 2005 in the XP machine. I am encountering a [DBNETLIB] General network error.  I already used an IP address instead of the server name, I can PING the IP address of the SQL Server 2005 machine, chanegd the authentication mechanism to SQL authentication in SQL Server 2005 but still come up with an error.  If I use SQL Management Studio to connect to the SQL Se ...Show All

  • Windows Forms error during some WindowsForms component creation

    I get the following exception when running the following code  (c#): new TextBox(); or new ComboBox(); or new DataGrid(); The exception shown here is from new TextBox(); but it always boils down the Font.Initialize(..) code. ArtithmeticException :  Message = Overflow or underflow in the arithmetic operation. StackTrace:  at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUni ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Is there a matrix stack?

    I'm new to MDX though old to OGL. I'm wondering is there a facility in MDX like the matrix stack in OGL Say, in OGL we can simply push and pop matrix which is extremely convinient. I haven't see anything clear about that. Did notice there are a lot of world matrices in device, are they used for this purpose How to use these many world matrices Thanks! ...Show All

  • SQL Server Dynamically changing Web Service Task parameters at runtime?...

    Okay, this one might stump you guys. I am trying to access a web service that has parameters (three of them, all strings). But I want to access this service repeatedly, and drive the thing from a table. I've got the Foreach Loop correctly getting variables from the recordset I populate from the table. That works and I can run a script with msgbox showing all the correct values being read from the table. My problem is taking these variables and sticking them in the Name / Type / Value entries in the Input tab of the Web Service Task. There doesn't seem to be any mechanism for dynamically updating these at runtime, and if there isn't, that ...Show All

  • .NET Development Print file using Microsoft Office Document Image Writer

    If Microsoft Office Document Image Writer is installed on IIS can asp .net be used to call it and write out a file in its format which would be saved to the server If so any code examples Thanks In Win32 you could set the lpszOutput member of a DOCINFO structure to the filename and that FileDialog won't pop up but I have no idea how to do this in .NET (except PInvoke of course). ...Show All

©2008 Software Development Network