Atul Bahl's Q&A profile
Visual Basic Tree View
Hello, How do I add an item to a tree view under a specific child node under a root node in Visual Basic Thanks ...Show All
SQL Server ERREUR to open a data base with SSMSEE
I installed Visual Studio 2005 Standard Edition which contains SQL Server Express. I downloaded and installed SQL Server Management Studio Express. It run ! I established a connection server BellFixe\SQLEXPRESS (BellFixe is the name of my computer). Ok. The command " add " of the function " attach " of SSMSE allows to navigate on the disk and to attach diverse data bases but it refuses to open the directory D:\Documents and Settings\Alain (this path is the base of all my directories of data). This directory appears empty. I cannot thus attach the data bases which are under this directory ! I can open a data base only if it is elsewhere localised. Why this limitation of access and how to resolve this pro ...Show All
Visual Studio Tools for Office How to get a contorl instance of the ribbon UI?
Hi there, I am using VSTO SE and Excel 2007. I want to handle the ribbon UI and child controls. But' I don't know that how to get the a control instance of the ribbon UI. Microsoft.Office.Core.IRibbonUI didin't have any methods to handle(add/remove/visible/unvisible/set/get value) the ribbon UI and child controls. Has someone any solutions Hi Parang Unlike CommandBars, the RibbonX controls are not exposed at run-time. Everything must be predefined in the Ribbon XML code before the Ribbon is loaded. So you can't "get and control a child control" using code. Only the predefined call-backs, and re-loading the Ribbon or controls by invalidating, can affect what the Ribbon displays. ...Show All
SQL Server Remote messages not working – message vanishes
I need some assistance with getting service broker to work across servers. I have 2 separate servers and I am trying to send a message from one server to the other. No error is generated when sending the message and I get no records in the transmission queue of the sending server, however the message does not arrive on the receiving server. Where is the message going Here is the code I use to create the service broker objects that are being used… RUN THIS ON THE SENDING SERVER: CREATE MESSAGE TYPE [MyMessage] VALIDATION = NONE CREATE MESSAGE TYPE [MyResponse] VALIDATION = NONE GO CREATE CONTRACT [MyContract] ( &nb ...Show All
Software Development for Windows Vista Cannot lower a network interface IPV4 metric.
I am using IPhelper API to lower wifi interface default route to gateway metric. While, my code use admin or system rights. I am unable to lower the metric. In fact, I am only able to increase the metric I observed the same behaviour using cmd line tool “route”. To illustrate the problem here is a sample where two network interfaces are connected. LAN interface has a better metric so I wanted the wifi one to get a lower metric: C:\Users\User>route print =========================================================================== Interface List 6 ...00 14 22 be e5 9d ...... Broadcom NetXtreme 57xx Gigabit Controller 7 ...00 13 ce 5f 43 02 ...... Intel(R) PRO/Wireless 2200BG Network Connection IPv4 Route Table ======================= ...Show All
SQL Server Running Value with a chart in a subreport "RS - BUG"
When using running value in a chart as part of a subreport, it does not work except for the first record (chart). I added a table next to the chart to display the running value and that works fine. The same chart works fine when is in the main report. I spent a lot of time on this but the result is the same, I feel pretty sure that this is a Bug. ...Show All
Visual Studio Team System Upgrading Team Edition Software Architect to Team Suite
Hello, If both are at Version 2.0.50727, is it necessary to uninstall anything, or will Team Suite install over Team Edition Thanks, Eric ...Show All
Visual Studio Express Editions Get back to my program with keyboard
Hi, My program will be hidden and at times I want to come back to it with a keyboard combination, such as alt-u. Can anyone tell me how to do that Thanks in advance, Wayne There's more than one. I just wrote the full C# version, it is popular code: using System; using System.Windows.Forms; using System.Runtime.InteropServices; namespace WindowsApplication1 { public partial class Form1 : Form { private const int MYKEYID = 0; // In case you want to register more than one... public Form1() { InitializeComponent(); RegisterHotKey(this.Handle, MYKEYID, MOD_CONTROL + MOD_SHIFT, Keys.U); this.FormClosing += Form1_FormClosing; } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { Unregis ...Show All
Visual Studio Express Editions object not release
i having weird problem where object of an instance is not release and worse it use back example: private function test dim m_obj as new winTest ///wintest contain form with radio button to ask for user to select option and a close button m_obj.showdialog m_obj = nothing when run first time call the function (no problem) , the problem only show when second time calling the function , I found the winTest form still show what ever previously option user select .mean that somehow m_obj references back the privious instance of winTest . sound weird but really happen. the solution i come out is in winTest rather than use me.close (to close the form) , I need to use me.dispose (to close) . by using me.dispose then the next ti ...Show All
SQL Server "OR" Condition in MDX?
Hi! I'm new to MDX and have a simple problem with apparently no simple solution in MDX word, according to discussions, e.g. http://groups.google.com/group/microsoft.public.sqlserver.olap/browse_thread/thread/25ea010035f3f097/8ab30ca61c23bbfd%238ab30ca61c23bbfd Is it possible to get records from OLAP cube, using OR condition to members of different dimensions Below is an abstract example using [Adventure Works]: select non empty {[Measures].[Reseller Sales Amount]} on columns , non empty { [Employee].[Employee]. AllMembers * [Product].[Product Line]. AllMembers } on rows from [Adventure Works] where [Geography].[Country].&[Canada] OR SOMEHOW [Reseller].[Reseller Type].[Business Type].&[Specialty Bike S ...Show All
Visual C++ How to avoid Busy Waiting?
Hey everyone :) I wish to know how can I translate a "busy waiting loop" approach into an event driven approach Lets say I have a queue of tasks, whenever there are elements in the queue, a process has to treat these elements Now I do it like this: while(1){ if(MyQ.Size()>0){ My.Q.RemoveHead .... } } This approach causes the cpu to work on full load, even if there are no elements in the queue. Is there a way to avoid this loop and somehow to create an event driven approach. Something like OnQueueHasElements... Thanks in advance :) Delegate is a pointer to a function right But who will monitor this evenet something has to check that my MyQueue.Size > ...Show All
Visual Studio How to pass item lists as cmdline arguments?
Is it possible to pass more than one value for a property, or to pass a list of items as commandline arguments to msbuild I've got a setup which builds the configuration passed in, but one of the pre-build steps will regenerate a set of input files, which, if I could pass multiple configurations at the same time to msbuild, would only have to be generated once. So, basically, is it possible to call msbuild like: msbuild MyTool.proj /p:configuration=a;b;c Cheers, /axl Axl, Unfortunately this won't do what you want, since a property can only have a single value, not a list. Instead of this approach, perhaps we can change your project file so it is smart and knows when to update the generated files. Are those generated files based ...Show All
SQL Server record counts
Hi, I have 10 databases created. each data base has arround 100 tables . i need to keep track of the number of records in each table of 10 databases and the last modification date on that table. The solution should be programatically by running a T-sql program or any stored procedures or any other but mechinical. the output should specify the following: Table #number_of_recs Last_date database_name.Table_name ###,###,### DD/MM/YY I will appreciate any assistance in this regard. thanks, ...Show All
Smart Device Development Does Pocket pc 2002 emulator support web serives
I was calling ldap web method in my smart device application(visual studio 2003), it works fine on pocket pc 2003 emulator and others. But when it comes to 2002 emulator it gives an exception as "503 UNABLE TO CONNECT TO SERVER". Plz help me... I am sorry but this forum is dedicated to questions related to DeviceEmulator shipped with Visual Studio 2005. You may want to post your question to PocketPC newsgroup where it has got better chances of being answered. -Thanks, Mohit ...Show All
Software Development for Windows Vista Workflow Runtime (Beta 2) appears to lose rules file
I have a fairly complex state machine which has a few "ifthen" activities. All the rules are in the .rules file and can be seen by the designer, but when the program is run the runtime complains, saying none of the rules that I have input can be found, e.g.: Activity 'GIsStillInBreach' validation failed: Can not find the condition "ValuationIsBreaching". where ValuationIsBreaching is a simple != comparison. I have added a new comparison, deleted and re-added the if-then, recompiled several times and even shut down VS2005 in case it was an IDE problem. Each attempt seems to work fine in the designer, but not at runtime. Removing the condition completely generates the expected "condition is not set" err ...Show All
