csaavedra's Q&A profile
Visual Basic custom control Error on delete
Hi everyone I have created custom user control. It's a picture slide control On a user defined interval and user defined picture height (width is calculated proportionaly) it shows a slide of images wich are moving in right or left direction On mouse move event it when a one of displaying pictures is pointed control raises an event with an index of selected image (index is of an arraylist of images that must be passed before timer starts) So as you can see it's quite simple control and its working perfectly execpt one thing When i delete an instanse of it from any form with desiner the whole visual studio gets an error and realods. When i use it enable it disable and so on everything is ok. So where is my problem Should i manually dispo ...Show All
SQL Server how can I substract a SUM from a SUM?
first, I am using stiored procedure and here is my table structure: [item_id] [int] IDENTITY(1,1) NOT NULL, [item_guid] [uniqueidentifier] [company_reg_number] [int] , [file_no] [int] , [visit_id] [int] , [item_code] [varchar](50), [item_price] [decimal](6, 3) [created_date] [datetime] [created_user] [varchar](50) and I have debit and credits in the same table but I want to get the difference.. my stored procedure to return the result is: USE shefa set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================ ...Show All
Visual Studio Express Editions what's happening in this code?!
I have written this code, but when i debug it, loads of MsgBox fill the screen. How do i prevent this Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim dr As DialogResult = MsgBox("Do you want to delete this expired time now ", MsgBoxStyle.Question) lblNow.Text = Now 'check if it is is time to alarm Try If lblNow.Text = Label1.Text Then dlgAlarm.ShowDialog() If dr = Windows.Forms.DialogResult.Yes Then varTime1 = "" varMsg1 = "" Me.Label1.Update() ElseIf dr = Windows.Forms.DialogResult.No Then Return End If ElseIf lblNow.Text = Label2.Text Then dl ...Show All
Smart Device Development Disappearing Inputpanel
Hello, My problem is: After Messagebox.Show() System.WindowsCe.Forms.InputPanel has gone, it can be back only on new instance of Form, I use .NET Compact Framework 2.0 and ToolBar with image buttons near inputpanel. It happens on HP Ipaq hx2400 with Windows Mobile 5.0, it doesn't happen on Asus MyPal N636, Fujitsu Siemens N560, Dell Axim, HP 3715. I havn't tested more. Please help me if anyone met this problem Michal Is this really Compact Framework 2.0 Service Pack 1 you are running on the device I had the same problem. There is a really simple but stupid fix for this. After each MessageBox.Show() you can reset the form's menu For example: this.Menu = mainMenu1; I tried developing with CF 2 SP 1 but found this stupid p ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 360 controller
Hi there, Quick question about the 360 controller. Are there drivers that I need to install When I plug it into my machine it does not find drivers. Or can I not use it on my PC Thanks! Get a program such as WinRAR, Open the "Microsoft Common Controller 32bit.exe" installer with it, Manually extract all the contents, Enter the folder called 'update', Right click on 'update.inf' and choose 'install'. For me, add to this: Open device manager, choose "have disk" and select the xnacc.inf file from the extracted directory and it worked, just installing inf alone does not. ...Show All
Software Development for Windows Vista Writing Resource Managers for System.Transactions to MTS/DTC and XA
We are trying to write a durable resource manager that works with System.Transactions. I need to use mts/dtc talking to xa where the actual database is on a remote system. I have read all of "Implementing a Resource Manager" and everything else I could find but could not figure out how to couple the .NET resource manager with xa. We have working distributed transaction code for OLEDB and ODBC using mts/dtc and xa. I really need sample code and/or hints about writing such a resource manager like this. If I understand your approach correctly, not quite -- and the issue really does end up revolving around recovery. Again, I think what you're trying for is roughly: App -> your bridge resource -> XA res ...Show All
Visual Studio Underwhelmed by Sandcastle
I've noticed that the feedback on Sandcastle has been generally positive. Maybe I'm in a minority of one, but I felt I had to get this off my chest. <rant> Having initially dismissed the first Sandcastle release as immature, I've come back several months later to try out the December CTP. My requirements are, I believe, simple and mainstream. I want to generate documentation for a product consisting of a few class libraries and integrate it with VS2005 help. The document should be generated automatically as part of the build process. With .NET 1.1 and VS2003, this was easy to do with a batch file that calls NDocConsole, which in turn generates a configuration file for the easy-to-use H2Reg utility. I can then call H2Reg in a ...Show All
SQL Server what microsoft tool to use for join 2 fact table by more then 2 dimensions in ad-hoc
Hi I have 2 fact table Sales and Invoices and 3 shared dimensions (time,product,customer) Sales -> time <-Invoices and Sales ->product <- Invoices and Sales->Customer<-Invoices I can't find a tool, a microsoft tool to give the end user the capabilities to build a report that is selection of Sales fact (values) , Invoices fact (Values) by date(Time dimension) , Product (Product Dimension), Name (Customer Dimension). If I' am work in sql 2005 the report builder cant navigate form one fact table by more then one dimension at the same time In analysis server 2005 if you do a cube wity 2 fact tables ( a susbtitute for virtual cube in analysis server 2000), in report builder you if you chose a measure from ...Show All
Commerce Server BasketHelper: Object does not match target type.
I've run into a weird exception on checkout now that I do not understand. At this point, when the starter site is calling CheckoutData.BasketHelper.RunBasketPipeline(), the following exception is thrown: " System.Reflection.TargetException: Object does not match target type. " I have breakpoints both on that line as well as in the RunBasketPipeline method, and it is getting the basket helper but unable to call the method. Any help you can provide is greatly appreciated. Peter Heh Peter, don't worry about it. Thanks for sharing the solution though! It is good feedback for the product group to understand the challenges faced by developers. An oversight like this may ...Show All
Visual C# windows service running on particular time and debug.write() where it prints ?
Dear All, I have windows service done with C# and able to be install using the installutil.exe. My problem now is that I want to set it like to run on particular time of day for instance 10.00 am daily How can I set this I have tried to use timer but it sets an interval only Another thing is that I have debug.write() in my windows service where can i check the output of the debug.write Where is the file Thanks. 1. About running service on particular time of day you have two options: check in code against time variables (probably set in registry) and just do nothing if you are outside this interval add pair of scheduled tasks - one for start service and one for end it. 2. Debug.Method ...Show All
Software Development for Windows Vista sqlPersistence
Hi, A simple question. I am using sqlPersistence services to persist my workflow instances. An instance was already created say 2 days back and was persisted in the database. If I want to work on the same instance again, what should I do workflowInstanceId = <Comes from the database if record exist or new GuiID) WFInstance = workflowRuntime.CreateWorkflow( typeof ( InterviewProcessWorkflow ), null , workflowInstanceId); WFInstance.Start(); or WFInstance = workflowRuntime.GetWorkflow(workflowInstanceId); WFInstance.Resume(); Please help. Hi, Thanks for the reply. I have two more bugs. :( 1) I am getting this error randomly. In Method: Boolean GetCompletionInfo(System.Runtime ...Show All
Visual Basic DLL library and "entry point" error
I am new to Visual Basic and am trying to create my first DLL library. I have been following the threads on this forum and have try to implement some of the solutions suggested as best I understand them. However, I am not seeing the answer yet. The source code below is the entire content of the DLL: Public Class Class1 Public Sub test(ByVal myText1 As String, ByVal myText2 As String) ' Do nothing and return. End Sub End Class The above code is compiled as test.dll in folder c:\temp. The calling routine is a form with a single button. The code is as follows: Public Class Form1 Private Declare Sub test Lib "c:\temp\test.dll" (ByVal myText1 As String, ByVal myText2 As String) Private Sub Button1_C ...Show All
Smart Device Development Deploying CF Project to run using Full Framework for Desktop
Hi everyone, I currently have a CF project in VS2005, but I would like to know how to change the project to target the full .NET Framework instead. My goal is to have my CF app run on the desktop. I have searched for similar questions, and somebody mentioned that a Deploy to Desktop feature was in the VS2005 Betas but was removed for RTM. Supposedly the feature is slated to reappear in the VS2005 SP1, but I couldn't find it in the latest Beta of SP1. Does anybody have any suggestions Thanks! Kirupa Thanks for the quick response Ilya. It seems as if I will have to change a lot of code to remove some CF-specific classes. Is there a way to create an executable of my CF app and have it run on the desktop instead :) ...Show All
Visual Studio Express Editions Need help reading a file
I need a way to read the contents of a binary file up to a certain string of characters & then read x number of characters after that. Could someone kindly show me how Thanks... The example I gave above would read the first 100 bytes...then you could do Array . Clear ( Buffer , 0, Buffer . Length ) sr . Read ( Buffer , 100, 2) to read the next 2 bytes ...Show All
Visual C# Windows Service Started and then stopped
I have a windows service and it was working fine, and today I tried to stop it and unlike the usual stop process, this one took a longer time. The next time I want to start the windows service, it raise an error that the service started and then stopped, it also said that service with no job stops automatically. When I checked the event log, there is no event about my service. My service worked well yesterday, in fact, it worked as usual just before I tried to stop it . but then I don't know why the error appeared, I don't think I did any changes to the database.. Any solutions or if someone can share his/her own problem similar to this What my windows service do: read a log file, write to log file, then access database, ...Show All
