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

Software Development Network >> Anu Beniwal's Q&A profile

Anu Beniwal

Member List

Jim Johnson - MSFT
southwynd
milocr
urbinaben
SunilBansal
mihkeltt
David Walp - Microsoft
thedigitalpioneer
Rajesh Giri
LyleUK
Vitali Lesheniuk
BillyM 2005
portlond
MyNameHere
Corsario007
J.R.Cash
Matejko
Alex Bransky
Joeouts
RpM
Only Title

Anu Beniwal's Q&A profile

  • Visual Basic How to use unmanaged com dll in VB.NET

    How can I use an unmanaged com dll in VB.NET. I used Add Reference to use it in my project but can't seem to get it to work properly: Public Sub AccessDll( ByRef objMyDll As MyDll.IMyDll) Trying the above I get a curly green line under objMyDll with a message that Type of parameter 'objMyDll' is not CLS-Compliant. When I get to the MyDll. the Intellisense shows the Interfaces available. I've tried numerous unclear explanations about interoperability but I can't find a clear, straight forward explanation. I know .net has its advantages, but considering the massive changes vb.net brought, there really& ...Show All

  • SQL Server Package Configuration in SQL

    I have an OLEDB SQL Connection that has a connection string that is set as and Expression using a User Variable (@[User::server_name]).  I pass the server name as a command line option.  The Package Configuration table is being accessed using the setting for User::server_name in the package and not using the parameter entry for it. The command being issued is similar to: dtexec /FILE "packagename.dtsx" /SET "\package.variables[server_name]";dbserver I am wondering if this by design   I would think that all parameter variables would be set prior to any other configuration entries are processed. Thanks, Mike ...Show All

  • Visual Basic disable and enable spacebar

    Hi is it possible to disable and enable the space bar in your program  === Edited by Greenjedi @ 25 Apr 2006 6:29 AM UTC=== mmm maybe I must be more clear.   I have a program that does something when I hit space bar, I want it to be impossible to press space again if the function is not yet ready, but I donmt want a program freeze zo I just want to temporarily disable the spacebar   I don't know of a way to disable the spacebar, however, you could set your function so that it will exit itself it is called a second time while still running. for example; Public Sub so ...Show All

  • Visual Basic Tabbed Browsing in VB .Net

    Hi, I have a question regarding tabbed browsing. I am writing my own custom web browser in vb .net studio 2005. I can create, dynamically at runtime, additonal tabs on a tab control, which will - in each - have a dedicated webbrowser control. So what will happen is 5 search engines will be searched and the results be placed in seperate webbrowsers under 5 dynamically-created tabs. The user can then tab throw each set of results. The problem is, I cannot crack for the life of me the creation of the dynamic webbrowser controls in line with creating the tabs. I will need to send a URL to each webbrowser too, to show the resulting searc ...Show All

  • Windows Forms TreeView TreeNodeCollection RemoveByKey broken

    Is there something wrong with TreeNodeCollection.RemoveByKey or is it me The following code does not remove nodes from my treeview string sNodeKey = GetNodeKey(); this.treeView1.Nodes.RemoveByKey(sNodeKey); So for debugging I changed it to this: string sNodeKey = GetNodeKey(); TreeNode[] oNode = this.treeView1.Nodes.Find(sNodeKey, true); if (oNode.Length < 1)     MessageBox.Show("Node Not Found"); else     MessageBox.Show("Node Found"); this.treeView1.Nodes.RemoveByKey(sNodeKey); This showed the "Node Found" message box every time.  So I know sNodeKey is valid and the no ...Show All

  • SQL Server Login failed for user '<<domain>>\<<server>>$'.

    I am working on asp application which basically is an interface to the report server. I am currently unable to determine the source of the problem so it may have nothing to do with reporting services. Currently the back in off this application consists of a reports and web server on a machine named tango and a SQL database server on a machine named tango. The SQL logs show a failed login for user organization\polo$ (organization is a made up domain as i don’t what to give away where I work). There is no logon in SQL for the user polo$ and as far as I can see there is no user polo$ in the domain. Has anyone seen this before Can anyone a ...Show All

  • SQL Server String measures in Analysis services cube

    Hi, I am having the requirement where I have to use string as measures. Is this possible in Analysis services 2K. Any help on this will be greatly appreciated Yes, it will increase the size of dimension, but you won't have more members then you have distinct comments. So if someone typed 3 million comments - dimension will have 3 million members. I would think that this streches the reality, but in any case AS2005 handles 3 million members in dimension easily. ...Show All

  • Visual FoxPro Cannot 'USE' two tables in VFP90 - XP ONLY?

    I am using a stand-alone exe in VFP90 and I am trying to create a new form with the following in the init: SELECT 0 USE 'accntdb' ALIAS 'accntdb' SELECT 0 USE 'presetdb' ALIAS 'presetdb' I am compiling with VFP90 S/P 1.  Now, this will open both tables when run on Win2K just fine, but when run on XP (latest s/p) only the data in the 'presetdb' table is visible in the browser.  The alias is still recognized, but there is no data for 'accntdb'. I have used this method to open tables for 10 years and have never had this problem before.  Any suggestions       Sorry, none. I do n ...Show All

  • Visual C# navigating between web forms in a web app

    What is the syntax for navigating between web forms in a web app   When the user clicks a button, I want it to load a seperate web form.  They are all in the same project.  Thanks Hi, the code for your button would be protected void Button1_Click( object sender, EventArgs e) { Response.Redirect( "PageYouWantToLoad" ); }   PageYouWantToLoad stands for a filename of the page you want to load no matter where this page physically is. Response.Redirect("http : // www . google . de") //remove the blanks made those because of an forum problem in code blocks   wou ...Show All

  • SQL Server SQL Server 2005 Stored Procedure inserting duplicate keys into table that is uniquely indexed

    I'm having a problem in SQL Server 2005 Developer Edition where I am calling a stored procedure to insert a row into a table. In the example below there is a table called "Machine" with three columns, MachineID, MachineName, MachineIPAddress defined. MachineID is the table Identity and pk. MachineName is setup as a unique index and can not be null. MachineIPAddress can be null - it can also be ignored for the sake of this example. When I run the following stored procedure, inserting a MachineName that already exists, the insert occurs without error. However, when I try to insert directly into the table view in SQL Management Stu ...Show All

  • Software Development for Windows Vista ASP.Net, SQL Persistence Issues.

    Hi, I have several questions / issues so I'll attempt to put them in order. First off I'm using Feb CTP and SQL 2005, VS 2005 I have a need to create several (very) long running workflows, so I set out creating my host. Initially I used a console app for testing etc... and the test workflows that I created persisted, dehydrated and rehydrated fine. BUT, the workflows need to accessed from inside a web app. So I started using the WorkflowWebRequestContext to get to my instance of the runtime. The config used for the runtime is as follows: <WorkflowRuntime Name="WorkflowServiceContainer"> <Services> <add t ...Show All

  • .NET Development What is remoting?

    Please suggest a book or some example   Vikram wrote: Hi, While I agree with Hussein and Nicholas, I would still recommend you read the blog of Matt Tavis where he has some recommendations regarding the usage of .NET Remoting. http://blogs.msdn.com/mattavis/default.aspx Regards, Vikram http://dotnetupdate.blogspot.com/    It should also be noted that remoting is not going to be enhanced beyond 2.0, and that EnterpriseServices has been noted as being the easiest in terms of upgrading to Indigo.  For all intents and purposes, Remoting is now a dead end.         & ...Show All

  • Windows Forms TableAdapter.Insert and Identity

    Is there a way of returning the identity from the stored procedure when doing a TableAdapter.Insert() or will it only return the return value eg I want to be able to do something like this int newrecordid = MyTableAdapter.Insert("new record field1","new record field 2",...); Thanks Amit ...Show All

  • SQL Server SQL Server 2000 and SQL Server 2005 on the same computer

    Hello. Is it a possibility to install two different instances on the same computer, one from SQL Server 2000 and another from SQL Server 2005 I've installed first SQL Server 2000 and I didn't want to upgrade it to SQL Server 2005. I don't want to upgrade SQL Server 2000 to 2005, because I'm working at two applications who uses different instances. Is there possible to appear conflicts between SQL Server 2000 and 2005 on the same computer ...Show All

  • Visual Studio Team System Unable to connect to this Team Foundation Server

    Hi,    Can anyone tell me how to connect Team Foundation Server from a client machine where Visual studio 2005,Team Suite is installed on windows server 2003. I have installed Team foundation server perfectly and while trying to connect from a another machine, getting an error "Unable to connect to this Team Fondation Server". I tried to open Visual studio as TFSService or TFSSetup by right clicking and Run as...but it did not open, geetting a message to repair the Visual Studio. Is TFSServerScheduler service is required for this when i open my server it gives Unexpected Exception error.Is that causing problem Also i m able to acce ...Show All

©2008 Software Development Network