webrod's Q&A profile
Visual Studio Express Editions create numbers
Hallo I 've got a problem with a kind of numbers. I want to have the code to create the following: 1: 1 2: 12 21 3: 123 132 213 231 312 321 4: 1234 1243 1324 1342 1423 1432 2134 2143 2314 2341 2413 2431 3124 3142 3214 3241 3412 3421 4123 4132 4213 4231 4312 4321 5: 12345 12354 ... So al the possible numbers you can create with a limited number of numbers. I want to do this until 9: 123456789 .... 987654321!!! Is there someone who can help me to get the code to create that list of numbers Thx PS: sorry about my english you can consider it like that It isn't necessary, but it woud help me very, very much So if someone want to do it ... I'll be very grateful ...Show All
SQL Server AMO: Hanging on Partition.Update
I am using AMO to manage partitions. I am trying to create a partition then use the Update method to create the new partition.. snippet of code below: 65 //create the new partition 66 Partition newPartition = mg.Partitions.Add(partitionName, partitionName); 67 newPartition.StorageMode = StorageMode .Molap; 68 newPartition.Source = new Query ...Show All
Windows Forms Modify displayed value in a Gridview
Hi, In a gridview populated by a sqldatasource. In a varchar column, I would like to show in my website a string which depends of the values (shows A if the value >1 and shows B if value<10) How can I do this without modify my sql table I know how to do in Reporting services but how doing this with Visual Studio 2005 (I hope is enough clear) Thx ...Show All
SharePoint Products and Technologies SHAREPOINT INSTALLATION ERROR
Hi, I tried to install sharepoint 3.0 in win 2k3 sp1 with all Req hardware.While installing the setup files are extracted properly.But when i run the configuration wizard,i encounter an error, Failed To Start database service MSSQL$Microsoft##SSEE.Repair this product by selecting it from theAdd/RemovePrograms menu. At this particular step the installation terminates.... I have tried by 1.Uninstalling all related programs and reinstalling 2. repairing the sharepoint package. 3.Even using regedit to remove the installation files of MSSQl ..... Guys plz provide me a solution coz i got fiddled with this installation.....Suggest me what i have to do . i even tried with command line util ...Show All
Visual Studio AspNetCompiler not copying references
Hi, I am using the AspNetCompiler task in my msbuild script. If I build from VS then everything works fine. However, if I build cleanly from the command line it fails because my references aren't being copied into my web project's Bin folder. What is responsible for copying references into the /Bin folder I noticed that project references are stored in the solution file - but is msbuild supposed to look at them and copy them in Or am I supposed check the assemblies under /Bin into source control Thanks for any help, Kent To answer my own question, don't try to do this yourself. Instead, use the new web deployment project support via this download: http://msdn.microsoft.com/asp.net/reference/inf ...Show All
Software Development for Windows Vista Delay activity - 60 days timeout perid error
Hi , I have delay activity that is set on period of 60 days. Code for timer initialization: daWaitingForDocuments.TimeoutDuration = TimeSpan .FromMinutes(60*1440); //60 days Value from quickwatch inspector: daWaitingForDocuments.TimeoutDuration {60.00:00:00} System.TimeSpan this code is inside constructor, and it doesn't throw exception. But when state machine workflow enters state with delay activity it throws exception Time-out interval must be less than 2^32-2. Parameter name: dueTm Is there some other way to assign timeout period to delay activity that will work Thanks, Indigo Cowboy Bit confused here, glad you found that it is a bug, but who are you saying should su ...Show All
.NET Development UDP Broadcast Problems
Greetings all! I'm having problems recieving UDP broadcast packets. I've looked over all the code I can find on MSDN and elsewhere but I can't find what I'm doing wrong. I've got a sending thread and a recieving thread using the same socket to send and recieve the packet. Bellow is a copy of the code I made up to test it out: public Form1() { InitializeComponent(); server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); server.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.Broadcast, 1); IPEndPoint localhost = new IPEndPoint(IPAddress.Any, 2305); server.Bind(localhost); Thread t = new Thread(new ThreadStart(Listener)); t.Start(); t = new Thr ...Show All
Visual Studio Team System Database error SQL error 2627 on tf merge /baseless
What's up with this error on a 'tf merge' We think our IT folks applied a patch this weekend - we think it was a SQL server patch... Should we expect baseless merges to work or not tf merge /recursive /baseless . C:\destDir A database error occurred (SQL error 2627) ---> Violation of PRIMARY KEY constraint 'PK_tbl_Lock'. Cannot insert duplicate key in object 'dbo.tbl_Lock'. /baseless doesn't compare changeset numbers. It doesn't compare anything, really, hence the term 'baseless' -- it ignores file history entirely (which is good, because there isn't any history between these files) and uses the beginning of time as its base. Nothing existed at changeset 0, so naturally it tries to merge every s ...Show All
Windows Forms How can i make a program run in the background?
hi please anyone tel me how can i make my program run in the background. i am making a C# server program and i need to run it always and tat too in the background. thanx hi.. yes thats it.. tats wat i want.. can u pls tel me how i can do it... i need to make the form appear wen the user double clicks on the sys tray.. thx. ...Show All
Software Development for Windows Vista Ownership supposed to be released during unload?
I thought that the workflow is supposed to unlock an instance when it is unloaded yet I am having the following problem (with the July CTP): I have a web form application that hosts the WorkflowRuntime and loaded the SqlPersistanceService with an ownership timeout of (1,0,0) set in the constructor. I create a new StateMachineWorkflowInstance and then wait for it to be idled (where I call tryunload()) then persisted and unloaded. Then I exist the application. When I run the application again it iterates throught the persisted workflows and attempts to rehydrate them using new StateMachineWorkflowInstance(wfRuntime, wfInstance) but I get an Ownership Exception! Is there a bug, or am I missing something. ...Show All
SQL Server Cache calculated member
hi, i have several calculated mebers in my cube that take a long time to be evaluated. so i would like to evaluate the the calculation during processing my cube and store it directly in the cube. So far i only found the "CACHE" statement that would fulfill my needs but i dont get it to work correctly my calculated members looke like this; CREATE MEMBER CURRENTCUBE.[MEASURES].[Kaufpreis je Wohnflaeche m2 Max] AS MAX({descendants([Immobilien].[Geographie].currentmember, [Immobilien].[Geographie].[Immobilie], self)},[Measures].[Kaufpreis]), VISIBLE = 1; the [Immobilien].[Geographie]-Hierachie looks like this: Immobilien Land PLZ Immobilien Immobilie what would the CACHE-Statement look like to cache this calculated m ...Show All
Visual C++ Smartbridge Alerts
I too am receiving the "entry point not found" message. I have very little technical knowledge and would appreciate assistance in any fashion. thanks. Helen McLaughlin Andy I have the same situtaion IE 7(not beta) SBC DSL provider. Smartbridge motivesb.exe psapi.dll error right after startup How did you indentify the correct file Thanks Larry ...Show All
Windows Forms Calculating Total
hi everybody, i have a datagrid and it has many columns out of which amount is one column, and i have a textbox outside the grid, if i fill the amount column automatically textbox should be filled with the total amount, i did the coding part for calculating total, but the issue is i want the textbox to be filled after i leave the amount column in the datagrid, i have tried currentcell changed event, navigate event, tab index changed event, leave event, tab stop changed event, almost the events i tried out, but the value is not catching on the textbox, but the value catches in the textbox after i leave the whole row and then come to next row, i want the value to be catched after i leave the amount column ....... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How can I convert a DirectX surface to a bitmap?
I am currently generating an image in DirectX using things such as Line.Draw() etc. and I need to get the image out as a bitmap. I Have managed to accomplish it using SurfaceLoader .SaveToStream( ImageFileFormat .Bmp, _surface0) ; however, this is too slow, I need something I can do in real time. Does any one have any suggestions for another way to get the image from a DirecX surface to a bitmap You have a render target surface. Depending on the creation you can’t lock it or it will be slow. Because of this you should use GetRenderTargetData as an accelerated way to copy the data to the system memory surface. Than you can use LockRectangle on the surface and LockBits on the Bitmap. This will give you access to the raw ...Show All
Visual C# Converting Visual C# to Visual Basic
Hello everyone! I am new here at the forums. I have a simple question. Does anyone know of a free accurate program that converts Visual C# coding to Visual Basic I tried using Google before posting, but I can't seem to find one. At least a free one... Thanks for the help! - Jason - to VB.NET or Visual Basic 6 If its VB6 - very hard to do as C# uses the framework ALOT, which means not all features will be available to the VB6 area. no tool is accurate - bear this in mind http://www.developerfusion.co.uk/utilities/convertcsharptovb.aspx http://www.carlosag.net/Tools/CodeTranslator/Default.aspx http://www.kamalpatel.net/ConvertCSharp2VB.aspx http://sharptoolbox.com/tools/convert- ...Show All
