AlpanaDhole's Q&A profile
Visual Studio problem
i want to print a report in web application in custom paper size as A3 used asp.net we application ...Show All
Software Development for Windows Vista Advanced Activity Design
I have an already existing workflow in production that runs a call external method activity only and needs to be enhanced to run an optional invoked workflow on the other side of an added ifElse Activity that runs a new custom composite activity. I have chosen to create a custom Invoke Workflow activity that accepts a TargetWorkflow type at runtime, and I understand I need to use the WorkflowQueuingService to pass the data that the invoked workflow has completed. However the examples I've seen has a standard InvokeWorkflowActivity on a main workflow used and not a custom one. I can't seem to get my Custom one to work with this situation. I keep getting "Invalid workflow parameter value" when I try to Create the Workflow Instance ...Show All
Windows Forms Draw round border?
Is there any way to create a rectangle with a round border Thanks, Hi Evan Not with one call... You'll need to draw lines and arcs. Something like this: g.DrawArc(Pens.Black , 34, 34, 30, 30, -180, 104); // Upper Left Corner g.DrawLine(Pens.Black , 51f, 33.5f, 253f, 33.5f); // Across the top g.DrawArc(Pens.Black , 237, 33, 30, 30, 260, 105); // Upper Right Corner g.DrawLine(Pens.Black , 267, 50, 267, 256); // Down the right side g.DrawArc(Pens.Black , 237, 237, 30, 30, 0, 105); // Lower Right Corner g.DrawLine(Pens.Black , 48, 267, 253, 267); // Bottom g.DrawArc(Pens.Black , 33, 237, 30, 30, -270, 105); // Lower Left Corner g.DrawLine(Pens.Black , 33, 48, 33, 250); // Back to the top Wh ...Show All
SQL Server SSIS Import/Export flat file
Firstly, I hope this question isn't asked too frequently but I found no existing reference to this situation.... I had a bunch of stored procedures in SQL 2k which imported and exported data to and from flat files using TEXTPTR, READTEXT, UPDATETEXT etc... The flat files were continuously changing so the filepath was a parameter for the sp. The reason I used the pointer to flat files is because I didn't want to load the files in memory before commiting them ie. with TEXTPTR and UPDATETEXT I can import a 1Gb binary file 80000 bytes at a time and keep (precious) memory usage down. I was accessing this procs from a C# application. Since these methods are going to be phased out by the guys at MS what is the best way of importing/exportin ...Show All
SQL Server Filtering a Hierarchical parameter list
I’m hoping an MDX guru can help me out. I've solved some tough MDX problems, but this seemingly simple one has caused me to lose too much sleep already, so I'm throwing in the towel and asking for help. I'm trying to come up with an MDX solution to writing a query to return a filtered hierarchical parameter list. The list returned is of all the levels above the leaf level. The query is used to drive a parameter drop-down in SQL Reporting Services 2000, which in turn is fed into another MDX query to return data for a report. The report query returns sample data for all the leaf nodes of the selected hierachy level. SRS 2000 does not handle empty results from MDX queries too gracefully, so the goal is to present the user with onl ...Show All
Visual Studio Express Editions error after wizard import from old VB 6.0 application...
After import from wizard in vb express 2005 have error in select.vb: MODIFICHE_USER.ENTER_PROVA1 = Text1.Text attached old vb 6.0 and new project http://www.mytempdir.com/838111 http://www.mytempdir.com/838115 code complete: Option Strict Off Option Explicit On Friend Class SELECTION Inherits System.Windows.Forms.Form Private Sub CLEAR_Click( ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles CLEAR.Click Me .Text1.Text = "" Me .Text1.Focus() End Sub Private Sub SELECT_Renamed_Click( ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles SELECT_Renamed.Click Dim MODIFICHE_USER As N ...Show All
Visual Basic Help - How can I runa VB program without runtimes installed
Hi, I'm new here and I was wondering, is it possible for me to run a VB 2005 program using the Framework 2.0 on a computer without the runtime I want to do this because for a project I've decided to make a program but the computer I wnat to run it on and show teh class does not have the necessary runtimes installed. If I'm running it off a USB Flash Drive is it possible for me to do something such as install the runtimes to my USB Flash Drive and have the program use the files from the Flash Drive As you know, this is a school so I'm not allowed to install any software and this is the reason I ask this question. Thanks. spotty wrote: Simply create your application and use a click once deployment ...Show All
Smart Device Development Programmatically terminate a phone call
Hi. I'm using VS2005 and CF2 to write an application for Windows Mobile 5 Smartphones. Is there a way to programmatically (managed or P/Invoke) terminate a phone call ie. Hang-up the phone. Thanks, Tony 0x73 is how VK_TEND is defined so this key code is indeed standardized. It should be the same for PPCPE. One obvious problem that I can see is that on PPCPE the same button works as "Show Desktop" when there is no active phone call ...Show All
Windows Live Developer Forums Making something like Msn messenger?
Hi, Im trying to make a program that is like msn messenger, but I dont understand that much. I read http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=620650&SiteId=1 But didnt understand, so i Tried copy the code and paste in Visual basic, but I got errors like: MessengerClient is not declared IncomingMessage is not declared outcomingMessage is not declared and more errors, can anyone help me ...Show All
Visual C++ BUG? auto_ptr assignment crash in VS2005
I've just experienced a crash with VS2005 with the following: #include <memory> class Foo { public: Foo* MakeFoo() {return new Foo(*this); } }; void TestCrash() { Foo f; { // either of the next lines crashes std::auto_ptr<Foo> fooPtr1=NULL; std::auto_ptr<Foo> fooPtr2=f.MakeFoo(); } } This same sample doesn't compile on VS2003 as there is no assignment operator for auto_ptr. Changing these lines to use the constructor form: auto_ptr<Foo> fooPtr1(Null) fixes the problem. It seems that auto_ptr is using the wrong constructor -- it's implicitly casting to an auto_ptr_ref type. Is this a known issue Assigning to an auto_ptr doesn't at all have a nice ring to it in my ears. C ...Show All
SQL Server Web App Failover problem
Hi, I have successfully set-up a DB mirroring. When the pricipal goes down, the mirror picksup and the other way around too. So the mirroring part is working great. However, when I use my web applicaiton (dot net 2.0), it is not able to connect to Mirror server . I get the following error: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) My connection string in web app: "Server=serverAAA;Failover Partner=serverBBB;Database=TestDB;User Id=testUser;Password=testPasswo ...Show All
.NET Development Save a pdf file with c#(windows forms) in sql server
I would like a sample of code to do this. Can anyone help me Well i want to pick a pdf file (using a windows form) and save it into sql server using c#, and then read that file from slq server and put it in a windows form not quite sure I understand: "Save a pdf file in C# in SQL Server" - what are you trying to do save a file into SQL Server or save a PDF file (Create one) in C# based on data given from SQL ...Show All
Smart Device Development Map HardwareButton to TAB button
Is there a way to use the HardwareButton component to emulate a TAB press Unfortunately, I don't see a way to set up that mapping within WM5. Thanks, Matthew Belk Matthew, I'm assuming that by "emulate a TAB press" you mean that pressing one of the hardware buttons should activate the next control in the tab order. The HardwareButton control sends KeyUp and KeyDown events to the active control. To move from one control to the next by pressing the 'Enter' hardware key, add the following event handler to your form: private void control_KeyUp(object sender, KeyEventArgs e) { if ((e.KeyCode == System.Windows.Forms.Keys.Enter)) { Control control = sender ...Show All
.NET Development MS access database used but client does not have access is this possible??
I am developing a program using visual studio 2003 and c# and want to use access as the database. The client does not want to install access on all the workstations is there still any way for the program to still use an access database Thanks in advance Lorne you should have the MS Jet engine/ODBC drivers installed and it should be ok. Try it on a virtual machine system, just install a plain Windows OS and .NET Framework, run your application and see if it will work. ...Show All
Visual Studio Express Editions Different Coloured Brushes
How do I change the brush colour so that each square is different I was thinking of using an array, Dim arrCol() As String = {"Red", "Yellow", "Green"} but string can't be converted to system.brush. I tried Dim arrCol as System.Brushes, but that doesn't work either. So any ideas please. Here's the code, Dim B1 As New Bitmap(146, 92) Dim G1 As Graphics = Graphics.FromImage(B1) Dim PB As New PictureBox Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim X, Y, W, i As Integer X = 0 Y = 0 W = 128 For i = 1 To 40 G1.FillRectangle(Brushes.Blue, X, Y, 16, 16) X += 18 If X > W Then X = 0 ...Show All
