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

Software Development Network >> Jehan Badshah's Q&A profile

Jehan Badshah

Member List

Alain de la Kethulle
rternier
softwarejaeger
Chris G. Jones
Singersinger
limssd
Kevin Hoffman
billqu
Aaron Eden
Jive Dadson
Nirm
Pockey
e. ogas
Thomaschr
Yustme
Dylan Smith
TA123
xRuntime
ahmedilyas
BradyGuy
Only Title

Jehan Badshah's Q&A profile

  • SQL Server Login failed for user ''. Reason: Not associated with a trusted SQL Server connection.

    Hello, I have some problem here. I have a sql server installed on one machine and I have another development machine for my asp application. How could I actually access the asp application and sql server at the same time from another machine within the network. I kept on getting the error message above. Thank you for your help :) So you have: Clients -> Development (ASP) -> Sqlserver right This is very much a typical 3-tier app. The login/authentication Sqlserver sees is from the ASP app. Whatever you set in your connection string for your ASP app is what Sqlserver uses to authenticate. If you post the connectiong string here, we can tell you more. When you say, you've successfully connected to the sqlserver from the dev box, a ...Show All

  • Visual C# Custom Attribute and it influencing all my controls part 2.

    Hi, I have a custom attribute in my library (OnOffAttribute, to turn off or on a property) and it's behaving a little oddly. Basically, all my controls use common classes for their drawing and such. I do not always need certain properties in these common classes, so i created an attribute (which is is used through ICustomTypeDescriptor and a custom TypeDescriptor) to do this based on (very vague) information found on the web. The thing is, that if i set, for example, my "DisplayBorder" property to be 'off', it is off for ALL controls that use the common border class instead of just the control i set it to be off for. The border class is always instantiated in each control using the 'new' command and as thus i figured it'd be off ...Show All

  • Visual Studio Bugs (?) in July version

    I have upgraded to the July DSL Factory and have the following errors/changes 1) Can no longer stop users resizing shapes 2) Can't create a new relationship shape (had to edit XML) 3) Can't create user types (used to use CLR attributes) 4) 2 instances of validate/validate all in menu 5) Error if adding item to validate menu 1) In the language designer you could set a property on a concept to prevent users changing colour size etc 3) Previously you could specify an object type (other than int etc) for a concept attribute e.g. make an attribute store HTML 4) The menu I am referring to is in the designer when you right click on the diagram. I used to have code to call my validation routi ...Show All

  • Visual Studio Team System Calling Multiple webtests from a webtest

    Hello, I would like to call several webtests from a 'master' webtest so that I can modularize my test suite to some degree. I did see a previous post that stated that it was possible to call a single webtest from another webtest. Am I correct in assuming that this should extend to calling several webtests from a webtest. Also, can these calls be nested Can a webtest call a webtest that is calling yet another webtest Finally, the previous post I am referring to ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=191144&SiteID=1 ) refers to an attached example of a coded web test (in C#) that calls another web test. This would be very helpful, but I cannot find it. Could you please re-post it Thanks. Glenn ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Question on XNA Beta 1 Performance

    Hello I have downloaded the XNA Beta 1 and created my first little test application. At the moment I am rendering a quad as the floor using a triangle fan and a rotating cube above it (indexed triangle list). My FPS are being drawn using a bitmapped font i wrote up real quick. Assuming I am doing everything correctly I am only getting ~400 fps. The same application (albeit using ID3DXFont) in C++ runs at ~800 fps. That's a 50% decrease in performance :\. I understand this is only a beta and may not be fully optimized but even then a 50% drop is fairly hefty. Could some of this be attributed to the fact that I'm inheriting from the high level Game class for window management instead of writing my own Maybe I'm just doing something very wron ...Show All

  • SharePoint Products and Technologies AggregateDataSource and AggregateDataSourceView

    Has anyone had a go at using AggregateDataSource or AggregateDataSourceView I'm hoping they can aggregate list data but there is no doco on how to use them and Google reveals nothing. Thanks for any assistance, Alex. Alex, I was also looking for AggregateDataSource and have found the example of using this stuff in Employee Training Scheduling And Materials on http://www.microsoft.com/downloads/details.aspx FamilyId=B5206277-550C-44DA-A2D5-D7E32E3B6B8F&displaylang=en , you can see Courses customized DispForm.aspx there ...Show All

  • Visual Studio 2008 (Pre-release) How to assign Multiple endpoints

      Hi,        Problem statement: I have 2 services hosted on 2 diffrent machine. Thier is a Web Client on One machine which will access either of the 2 services. Now I have to assign the endpoint (ip address of particular machine). How can i assign this dynamically depending on a contratint. if possible please provide some code samples for both service and client Thanks in advance.             then you would use option 2 as i stated above. because if the service is on two different machines, it's two different services regardless of whether or not it's the same code. So therefore you'll have to ...Show All

  • SQL Server Index usage statistics report

    Has any body else had this problem. In SQL Server Management Studio in the report tab when I choose Index Usage Statistics all I get is just these messages and no info at all. Is this a bug. It does tell me the name of the database. Index Usage Statistics Shows how the users and system use the indexes. Index Operational Statistics shows details of the no. of operations performed on the indexes The release version of SP2 contains the fix for this issue. You can download the SP2 from: http://www.microsoft.com/sql/sp2.mspx ...Show All

  • Visual Basic Issues in converting a usercontrol project from VB 6.0 to VB 2005

    Hi, I'm converting a VB 6.0 project to VB 2005. There are few issues, where i got stuck up. They are 1. 'Ambient' is not a member of 'System.Windows.Forms.UserControl' This is the code that gives this error. If (mbHasFocus Or MyBase.Ambient.DisplayAsDefault) And m_Style <> 0 Then 2. AmbientProperties property Ambient.Font was not upgraded. Ambient.Font is not recognised. How to get his issue resolved 3. UserControl property UserControl.AccessKeys was not upgraded. How to set the AccessKey property for a usercontrol 4. ObjPtr function is not supported. This is the code that gives the error. gcTimerObjects.Add(ObjPtr(Me), mnTimerID) - Me refers to object of objTimer class. How do i find the address of a object 5. ...Show All

  • Visual Studio Team System Error when viewing workitem details over web

    I have my build server runingnicely, but when an exception occurs, it creates an email to me with a link similar to the following: http://<tfsserver>:8080/WorkItemTracking/WorkItem.aspx artifactMoniker=283 However, clicking the link displays the message: "The given key was not present in the dictionary." I understand that this is probably a mis-configuration of the data warehouse data, but I'm unsure where to look. Can anyone offer suggestions as to where to look first I'm very sorry, you are right again. For me, it was important that I have the same problem "Error when viewing workitem details over web" and I've ignored fact that Tim Dallmann reported the problem in context of ...Show All

  • SQL Server aggregation using lastchild

    Hi there I'm using the following MDX function and it works perfect. iif([Ledger Date].CurrentMember.Level.Name = "Year", ", [Ledger Date].CURRENTMEMBER.LASTCHILD, ([Ledger Date].CURRENTMEMBER, [Measures].[Value])) But now I want to add another dimension namely Accout Type to the scenario containing Asset, Liabilities, Income and Expence. The lastchild must only work for "Year", "Liabilities" and "Assets" How do I achive this Thank you in advance. Try : iif( ([Ledger Date].CurrentMember.Level.Name = "Year" and [Account Type].CurrentMember is [Account Type].[Liabilities]) or ([Ledger Date].CurrentMember.Level.Name = ...Show All

  • Software Development for Windows Vista In July CTP, using StateMachineWorkflowInstance to obtain CurrentState freezes workflows in that State

    Dear all, I have a working StateMachineWorkflow hosted under asp.net 2.0. I have written a simple routine (shown below) to interrogate the current state of a workflowinstance: public string WfCurrentStateDescription(string WorkflowInstanceId) { // Get the workflowRuntime which was started in global.asax WorkflowRuntime wfRuntime = (WorkflowRuntime)Application[WorkflowRuntimeKey]; StateMachineWorkflowInstance wfInst = new StateMachineWorkflowInstance(wfRuntime, new Guid(WorkflowInstanceId)); return wfInst.CurrentState.Description; } I find that, once I have called this on a workflowinstance, that instance gets "stuck" in the current state and never transitions to the next state, even though code appears to get c ...Show All

  • Visual Studio Express Editions Newbie Scope Question

    Please could someone explain the flow on loading a form please. When you open a new form with the form show event does the class run before the load event If something is within the load event does that have form wide scope or is it only things in the class if I understand correctly, say you have a class called ClassA. In the form, you wish to make this global so anyone within this form can access it. Is this correct if so, then yes! private theClassA as new ClassA() .. .. just as you would do with any variable declaration really. for any other classes to access this "classA", simply change private to public so its visible outside the form class is this what you are after ...Show All

  • Visual Studio Express Editions about bounding dbase to textbox,combobox,richtextbox?

    hi there... i have a problem regarding bounding dbase into textbox, combobox, and richtectbox.... i know there's an easy way using wizard to make it detailed but i want is coded. i have a sample program here but there are somthing wrong with it. dim con as new oledbconnection("connectionstring") dim sqlcom as new oledbcommand("select command",con) dim myadapter as new oledbadapter(sqlcom) dim bind1 as new bindingsource dim ds as new dataset sqlcom.connection.open() myadapter.fill(ds) sqlcom.connection.close() textbox1.databinding.add("text", ds , " table_column ") <-- i got an error on this ...Show All

  • Windows Forms Proper way to invalidate using a Region

    Hello, I have a user control that uses a graphic path to draw itself. The control just draws a line with two points. The user can grab on of the points and move it around to change its location. While the user is moving the point, the control is supposed to re-draw itself so the endpoint of the line will be attached to the mouse. This works fine when I do an Invalidate() on the control, but it flickers, so I want to only invalidate a specific part of the control. I'm doing a Invalidate(new Region(_InvalidatePath)); Where _InvalidatePath is is the the combination of the path I just drew and the new path that I want to draw. I get left over garbage on the screen and I don't get a line between the two points. I'm certain I'm ...Show All

©2008 Software Development Network