shyma's Q&A profile
Visual Basic Create a wizard in my application?
Hi, I'm learning VS 2005 and developing an application that will include several wizards in it for the users. I can't find a tutorial for developing wizards with VB.NET - if you can help me, please email me a link or recommend a book that covers the topic I'd be grateful. Alternatively some advice would be useful: Should I just develop seperate forms that open and close in order of the wizard screens and make that my wizard Or is there a better/more streamlined method Thanks in advance AdrianB Hi, you can give this wizard framework a try and see if it suits your needs... Andrej ...Show All
Visual Studio 2008 (Pre-release) Suggestion: Full support for continuations
I think it would be a huge benefit to C# developers if some future iteration of the language allowed full support for continuations. The ability to call/cc and throw with arbitrary stacks would work wonders for certain types of algorithms (compression, for example). Additionally, allowing the C# compiler to emit tail-recursive function calls would allow programmers work in continuation-passing style without fear of smashing the stack. These are largely abstract concepts inherited from functional languages, true. But it seems that with the addition of functional language features into versions 2 and 3 of C#, this would be the logical next step. Tomas Petricek wrote: You mentioned support for call ...Show All
Software Development for Windows Vista Is it mandatory to use Thread's WaitOne() method for running a workflow?
Hi, I am using WaitOne() method for running the Workflow like the following Public thread_CompletedEvent As New AutoResetEvent(False) AddHandler workflowRuntime.WorkflowCompleted, AddressOf WorkflowRuntime_WorkflowCompleted AddHandler workflowRuntime.WorkflowTerminated, AddressOf WorkflowRuntime_WorkflowTerminated xomlReader = New XmlTextReader(System.Web.HttpContext.Current.Server.MapPath("RegisterPatientWorkflow.xoml")) ruleReader = New XmlTextReader(System.Web.HttpContext.Current.Server.MapPath("RegisterPatientWorkflow.rules")) objRegistrationInputParameters.Add("WfRegistrationRequest", Me._wfRegistrationRequest) objRegistrationInputParameters.Add(" ...Show All
Smart Device Development Embeded VC++ installation
Hello, I have downloaded embedded VC++ and tried to install it on my machine. But upon installation, it asks for a product ID (a serie of 5 numbers). I thought this product was free. Where can I get a product ID Thank you ...Show All
Visual Basic Date Problem
Hi everyone~ I’m stumped on something that I thought would be simple. I’m trying to figure out how to determine if the LastModifiedDate of a file was yesterday. Not 24 hours ago, but simply yesterday. I have a third party program that converts files and moves them to a specific folder. Anything converted and moved after midnight gets a new date in the file name (MM/DD) and continues doing it’s thing. I want to set up an event that will work with only files that were created yesterday, even if they are less than an hour old. I don’t know if I am on the right track, but so far I have one variable (TodaysDate) as 09/03/06, and the file’s DateLastModified (FileDate) as 09/02/06. But now I can’t figure out how ...Show All
Windows Forms Button Images
I am trying to make a form that has buttons with images on them, but I dont want the silver button with an image on top, I just want the image. How can I do this Thanks, Tyrael see follow code can redraw the button from a image using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace CS { class mybutton : System.Windows.Forms. Button { protected override void OnPaint(System.Windows.Forms. PaintEventArgs pevent) { Graphics g= pevent.Graphics; Image img = Image .FromFile( "C:\\logo.gif" ...Show All
Visual C# How to obtain current CPU Loading
Dear sir : who can tell me : How to obtain current CPU Loading Using C# Thanks you can use the performance counters to do this... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=773531&SiteID=1 ...Show All
SQL Server Visual C++ 2005 (C++/CLI) - Newbie with ADO
Hi, I've been working for about 20 years now with databases on other platforms but am at my first step with ADO. I created an application which is drawing as requested different forms on screen using GDI+, eventually DirectX. Now I'm at the stage of saving several infos into a Database. For simplicity, I would like to use a database for which there is no need to install any other components. I thought of using Access Database but I realized that I'm unable to create it except from Microsoft Access which is not installed on my machine... When programming with Clarion (SoftVelocity), apart interfacing with Oracle, any other files (ex: TopSpeed files) could be designed from within application designer and then created from scratc ...Show All
Visual Studio 2008 (Pre-release) JuneCTP_SDKDemos -> An error occurred in the application you were using. Any ideas?
Startup URI: D:\Temp\Demos\app.xaml Application Identity: file:///c:/WINDOWS/Microsoft.Net/Framework/v3.0/WPF/XamlViewer/XamlViewer_v0300.xbap#XamlViewer_v0300.application , Version=3.0.0.0, Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, processorArchitecture=msil/XamlViewer_v0300.exe, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, processorArchitecture=msil, type=win32 System.Windows.Markup.XamlParseException: Cannot create instance of 'Application' defined in assembly 'PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. Cannot create more than one System.Windows.Application instance in the same AppDomain. Error at Line 1 Position 2. ---> System.InvalidOperationExce ...Show All
Visual Studio 2008 (Pre-release) How to callback from a WCF service to Client
I am developing a sample in which WCF service is hosted in IIS. In this sample WCF service in turn is also communicating with Workflow. I want to add callback functionality from workflow to client through WCF service. In this sample, I have two interfaces, one of them i am implementing in WCF service itself and another is on clent side. For communication between workflow and WCF service, it is containing one class library with ExternalDataExcahngeService and Serializable attribute. Communication form Client to WCF service to Workflow is fine but the problem is with the communication from Workflow to WCF service to Client. My workflow is calling a method in Class library which is responsible for communication between workflow and WCF ...Show All
Visual Studio Express Editions linking between forms in the same project
is it possible to link between forms within the same project basically i want a button to load up another form, if this is possible what code will i need thanks How would I do the same in VC++. I have a form with Menu Items for eg. Customer->New. When I Select New I want to open another form i.e CustomerForm. Thanks ...Show All
Smart Device Development Programmaticaly (un)cradle a device emulator
Hello, is it possible to programmaticaly (commandline/API) cradle or uncradle a specific (running) device emulator Thanks in advance, Peter Vrenken. Mohit, thank you for the information. I guess i gonna have to find another way to automatically connect to the device. Just curious: What are the plans/timeperiods for future DEM API's comming available for the public Greetings, Peter Vrenken ...Show All
Windows Networking Development Winsock/RPC/SSL/Transport error: 0x90312 [SEC_I_CONTINUE_NEEDED]
I'm working with WinHTTP. WinHttpTraceCfg tool shows me this messages after calling WinHttpSendRequest function. And then I can't get the internet resource. Does anyone here knows how to fix this error And why it happens Are you seeing this error in the trace file after you enable tracing with WinHttpTraceCfg (WinHttpTraceCfg will not call WinHttpSendRequest on its own). In any case, that could be part of WinHttp establishing the SSL channel. What matters is the error code that you are getting right after WinHttpSendRequest fails - it will contain more info to diagnoze the problem. ...Show All
Windows Forms Catch all Exceptions
Hi I have a program with several Forms. What I need is to log all exceptions (save them into a database). Is this possible without having to write a "try{ ... } catch(...) {...}" everywhere (and call a static log-method within the catch-body). Kind Regards It all depends on how you want to handle each exception that has the possibility to ocurr. For example, say you have a processControl and it throws a FileNotFoundException, (wrong exception, but just an example). And you want to display a MessageBox saying to make sure the application is installed, handling everything in main() wouldn't give you that functionality. If I am wrong, yell at me for being too lazy to open up Visual Studio and try. ...Show All
Visual Basic hide form when it's not active
Hello again, can some of you post me a lil code sample or guide me into the rite direction how i could make the following: I have a form, it's visible.. i want it to be hidden when i click anywhere else outside the form. i tried me.capture=true property, but in this case i have to click on the form to be able to use its controls. in this case if i click outside the form nothing happens, it's still visible... can anyone solve this thnx I suppose you can issue a Me.Hide statement inside the form's Deactivate event: Private Sub MDIChildForm_Deactivate( ByVal sender As Object , ByVal e As System.EventArgs) Handles Me .Deactivate Me .Hide() End Sub Of course, I presume you have some event where you ...Show All
