MaX911's Q&A profile
Visual Studio Express Editions Non-working Starter Kits
Hi, Unfortunately, I recently tried to use the RSS Screensaver starter kit, and (due to a bad internet connection) the files were corrupt. Also, the Skype kit doesn't seem to work. If any one has these and they work, please could you e-mail them to me (dan.maniac@gmail.com). I would really apprecite this because I need to use these in a demonstration at School. Thanks. ...Show All
Windows Forms List Box not updating it's datasource
I am having a problem with updating the datasouce of the listbox. I have a list box and I bind to an ArrayList of strings. When I add a new string to the arraylist, and rebind it to the listbox, the listbox doesn't show the new string I have added. I tried the update, refresh method in the list box, but none worked. Anyone know why Following is the code I tried to bind and refresh the list box : ltbFilters.DataSource = filters; ltbFilters.Update(); ltbFilters.Refresh(); I found the problem. Just in case if anyone is having the same problem, the solution is simply clear the datasource first then reassign the new datasource to it. That will cause the listbox to update it's element. ...Show All
SQL Server doctors' appointments - please advise
i am developing a clinci software and i guess i reached to the most difficult part of it which is the appointment module.. I have made it as explaied below but not sure if i am doing it the right way or if i need to redesign my tables' structure.. please advise.. i have create doctors' duty table: USE [shefa] GO /****** Object: Table [dbo].[staff_duty] Script Date: 11/16/2006 02:25:27 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[staff_duty]( [duty_id] [int] IDENTITY(1,1) NOT NULL, [staff_file_no] [int] NULL, [staff_name] [varchar](255) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [duty_from] [datetime] NULL, [duty_to] [datetime] NULL, [record_locked] [varchar](50) COLLATE ...Show All
Visual Studio 2008 (Pre-release) Generating client proxy for msmq service
I am struggling with svcutil (or "Add Service Reference") usage on a msmq service. I see examples with two endpoints, one for net.msmq and one for mex. When I try this, then hit the service.svc using a browser, I get an error of: "The protocol 'net.msmq' is not supported". What is the best way to expose the metadata on an MSMQ service so that I can generate the code that I need for the client Thanks, Michele. I had that at one time, and took it out when I saw some example that did not have it. I put it back in, but I still get the same message: The protocol 'net.msmq' is not supported. ...Show All
Visual Studio Loading Help slow...
On my Dell Dimension 8200 (1.8 GHz, 512 MB RAM, Windows XP/Pro) loading help in Visual Studio 2005 is very slow. It takes up to two minutes (!) before the help screen opens in its own window after choosing Help from the menue or pressing Ctrl-F1, H (or some other letter). Once opened, performance is o.k. until I restart Visual Studio (having closed all instances). During load I can't do anything in Visual Studio 2005 whithout getting a "Delay Notification". A strange thing is, if I look at the task manager during the load process it doesn't show much CPU usage most of the time (it goes up to 100% for a few seconds short after beginning and a second time up to about 80% for a few seconds short before finished; for the rest of the time almos ...Show All
SQL Server Queued update
Dear friends I have a simple doubt. 1)What is the difference between Queued Updating & Immediate Updating in Transactional Relplication. 2)What is the difference between Meged Replication & Peer to Peer replication.Because in both each node will Act as Publisher/Subscriber.So load balancing is possible both type replication na 3) how to replicate views,stored procedure & functions.Beacuse when applying intial snapshot the copy is getting in subscriber.But afterwards whatever changes occurring in view,procedure not propagating ...Show All
Visual Studio Team System Master solution in TFS
Hello, I would like to use TFS build server to execute daily build process. I current have around 260 solutions in my project. I know that TFS works only with solutions. but since i cannot create a build order of the solutions (too messy) i created master build solution which includes all the relevent projects. Since all my projects exists in the master solution, i don't have project reference issues. My questions are : 1. are there any disadvanges while working with master solution in TFS BUILD. 2. how do i execute the tests projects (they are not included in the master solution). another thing, i would like to register at run-time to the post build event of the projects compiled from the TFS. my goa ...Show All
SQL Server Setting width of parameter text box?
Is there a way to set the width of the parameter text boxes in the Report Server UI As luck would have it, I need it to be just a few characters wider. Thank you, Dick Campbell Ah... Many apologies, from a user perspective yes you are right, there is no way to adjust the textbox width, its a designer issue that has to be set in SSRS designer (VS2005), you may like ot have a workaroung though. You can export the whole thing to Excel and then set the width's as you need. this is a good workaround if you are only after printing the report or something like that!! ...Show All
Visual Studio 2008 (Pre-release) Measuring "rich text"
I have textual information that is currently stored as RTF. I need to display this text in a drawing element for a diagramming product that I'm working on. What I can't seem to find a solution for is how to determine the width and height of this text. I've tried using a RichTextBox - the ExtentHeight seems to be accurate, but ExtentWidth is just what I sized the control width to. I've read up on the FormattedTextClass which would give me the sizing information that I need, but I don't know how to load RTF into it. Can anyone assist Thanks in advance! I am doing a project where, to remain backwards compatable, I may need to deal with a lot of rich text files. So I used ...Show All
SQL Server Substracting MDX
Hi, Imagine you have a Measure called MONEY, and a dimention called TRANSACTION, now in transaction you have two members, one MONEY_RETURNED and the other one MONEY_SPENT, now there are many more dimentions that I want to display but I want to display MONEY while MONEY_RETURNED is substracted from MONEY_SPENT. I have like $1000 in MONEY for MONEY_SPENT and $200 for in MONEY for MONEY_RETURNED, I wanna make MONEY not just display the MONEY_SPENT of $1000, I want to display $800. How can I do this Sorry but I'm using AS2000 and RS2003 to write the MDX for some reports, and the cube is already done, would I have to change the cube to change the rollup ...Show All
Visual Basic create sql table in vb.net code
Hi, create a table in vb.net connect with sql server. i know create a sql table in sql server 2000. but i don't know vb.net using runtime create a table. pleasew help me. thanks Hi yes. create a table in an application written in VB.NET but not in a database. but store in sql server 2000 or 2005. ...Show All
SQL Server How can I get Actual Operation Cost from Actual Execution Plan?
I have a view in SQLServer 2005. It took 30 sec. to finish. Then I deleted 4500 records from one table that is used in view. It took 90 sec. to finish now. I did a comparison on Actual Execution Plan between before I deleted data and after I deleted data, they are almost same, only different is Actual Number Rows become less after deleted data. So, I wonder why data become less but time become more. When I look closely on the Actual Execution Plan, the ridiculous thing is, there are only Estimated Operation Cost on each step, no Actual Operation Cost. I guess there are something wrong with optimizer because reuse same Execution Plan, but how can I tell which step wrong without Actual Operation Cost. Thanks! Henry ...Show All
Visual C++ Problems just adding a message to WndProc in a Win 32 API code.
Hi to all, I have add the WM_XBUTTONDOWN message in my WndProc() in this way: switch (message) { case:WM_XBUTTONDOWN: WPARAM wParam; LPARAM lParam; break; ... } but it gives these errors in the same line: (line 151) error C2065: 'WM_XBUTTONDOWN' : undeclared identifier (line 151) error C2051: 'case expression not constant ' I have added "Windows.h" and the folder where it is. Whats the problem Ben Anderson MSFT wrote: Did you add that define before any includes Yes Ben Anderson MSFT wrote: Make sure you're not setting it to a different value anywhere else in your code. If ...Show All
SQL Server Is there something similar to SQL 2005 row_number() in sql mobile?
Hello, I am wondering if somone could provide me with a sample SELECT for an auto number query. For example I have a table called People with two columns first_name, and last_name. There isn't a unique id to correspond with the table but would like to dynamically make one during the return of the query. I know this is possible in the full version of sql 2005 using SELECT ROW_NUMBER() OVER (ORDER BY last_name), first_name, last_name from People But within sql mobile is there a way So if there was 5 rows in the table it would return 1 John Alpha 2 John Beta 3 John Cat 4 John Delta 5 John Echo John ...Show All
Visual C++ Collection
Programming C++ standalone code - thus .NET technology is not indispensable. There are several options to create collections of data: - MFC: using classes such as CArray, CTypedPtrArray, etc. - STL: using classes from <array>, <list>, <map>, ... - .NET framework: using classes from System::Collections Generally speaking, which solution is the best performing in terms of speed and memory usage Are they in the end the same thing, after they are compiled to executable code My apologies if this question is just a silly one. Your answer was very professional. However, since you declared that you are "not too familiar with the MFC containers", I decided to do a ...Show All
