iscbaltazar's Q&A profile
SQL Server TimeSpan .Net type in AS Stored proc for Elapsed time + ProClarity
Hi, I guess ,this is kind of an old problem. But I have tried various ways to do this in vain. Here is the scenario: and all the different approaches that I followed I need to convert seconds to DD:HH:MM:SS as elapsed time. it would mean days:hours:minutes:seconds. calculation gives 86400 seconds = 01:00:00:00 (1 day). The elapsed time needs to show negative elapsed time. for example: -02:22:10:05. Also I need to display the same on ProClarity graphs. The graphs also need to show the same dd:hh:mm:ss format. Approach 1: I used the TimeSerial function, this works fine only for HH:MM:SS. It does not support days. also it does not support negative values. Approach 2: I used a custom .Net library (AS stored procedure) which would ...Show All
Visual C# Adding border separators..
I dont know what you call that.. but if you go.. http://www.java2s.com/Code/CSharp/GUI-Windows-Form/Panelandformdockpad.htm You see the example that has configure and it wraps a few stuff inside I know this is groupbox.. I was wondering can anyone show me a simpler example I have been reading about C# day and night.. and I could use the shourtcut on just this part. If ok... I also know that the example code is there.. but.. Im still not that great at reading codes.. but I am reading it as we speak. NM I got it.. but I would like to know what SuspendLayout () ; does. (GroupBox.SuspendLayout();) ...Show All
Visual Studio 2008 (Pre-release) Retrieving Information from a RichTextBox Selection
Hi, I would like to know how to retrieve the inlines contained within a selection. I have tried various ways to retrieve the exact inlines contained whithin the selection, but I never get accurate results. Can someone please help Thank you, Jaco Hi, I'm also having trouble with the InlineUIContainer's not being saved in the xaml. The XamlWriter.Save(rtb.Document) method is not available in an XBAP so can't use that. Also, I've subclassed the FlowDocument and overridden the IsEnabledCore method to return true - so that the UI elements are enabled. However the save method of the TextRange still doesn't return the InlineUIContainer's. All I'm trying to do is to save the flow document wi ...Show All
SQL Server Password History with CHECK_POLICY and CHECK_EXPIRATION
I've tried to find a definitive answer to this but I cannot. If CHECK_POLICY = ON and CHECK_EXPIRATION = ON will password history be checked when a user changes their password By password history I mean the idea that a password once used cannot be used again for another X password resets.... If password history does work, why would executing the following statement multiple times then work ALTER LOGIN Bob WITH Password = '123User321' If I execute this statement four times in a row wouldn't I get a message that I cannot reuse the password on the second call Thanks in advance No, password history won't take effect in your example, because what you are doing is resetting the password. You ha ...Show All
Windows Forms PrintPageEventArgs Supplies a Graphics Object with Random VisibleClipBounds
I am facing a problem where only a portion of the page I am trying to print shows up on the printer. I see that the same problem is reported by a number of people: a. http://www.thescripts.com/forum/thread225516.html b. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=38324&SiteID=1 c. http://www.dotnet247.com/247reference/msgs/24/121201.aspx After spending some time, I find that the Graphics object supplied by PrintPageEventArgs in the PrintPage event is giving a "random" VisibleClipBounds. For the same printer, sometimes it is big enough for the page, sometimes it is not. In one debug session, I printed my application to different printers one after another by selecting them from a standard PrinterDialog I ...Show All
Smart Device Development Problems to open PR_BODY message property - CEMAPI
Hello everyone, I am having a problem to get the email body from IMessage using CEMAPI in WM 5.0. My application is actually an extended menu item (implements IContextMenu COM interface) that takes part in the Inbox message menu. By selecting the extended/my menu item I open from code a cemapi session and I retrieve the selected message. I succeed to get the message properties without errors (e.g. PR_SUBJECT), but when it comes to PR_BODY the behavior is different. The following common code that I am using always returns 'MAPI_E_NOT_FOUND'. hr = pMsg->OpenProperty(PR_BODY, &IID_IStream, STGM_READ, 0,(LPUNKNOWN*)&messageStream); I looked over the web and I didn't find any solution for ...Show All
Windows Forms Creating a Setup File and when adding a new update removes previous
Hello, It took me hours to work out how to create an installer using Visual Studio. In the end when you know how to do this its very simple. My only problem is no matter what I have tried in the options if I create a newer version of the program I have built and want to deploy it when I run the setup file it does not delete the old program files and folders and it does not updates these with the new version. If I manually delete the folder its all good with the newer file installed. Maybe there is some scripting I need to add. Not Sure... Could someone please help me. Yor help would be appreciatted. Thank You Joe I Found an answer to this problem if anyone is wonderi ...Show All
Visual Studio Tools for Office Save MailItem as MSG file
Hi, How can I save the an Outlook.MailItem as .MSG file on Hard Disk Andy Ho I Have no problems saving the mail, but if the mail exists allready it throws a error, is there a way to check for this or default save over the old file. Regards Carsten ...Show All
Community Chat zune not recognized by PC
My PC will not recognize my zune, any other device i hook up usb i getthe old DOng ding sound and it shows up. When I hook up the zune, I get nothing. This is the second zune and third cable, it will not even charge on my PC and yes i have 2.0 usb. Any help would be great. Thanks Chad K After searching around a bit, I found a small tip from someone who has 'fixed' the problem. It seems that the Zune also needs the occasionally 'power off'/'power on'. If for some reason your Zune doesn't start charging when connected to a PC and your PC doesn't recognize the device, hold down the back and up buttons on your Zune until the screen goes black. You should see your Zune reset. If you ...Show All
.NET Development .Net Framework 2.0 Install Error
Hi I'm getting this error when I try install .NET Framework 2.0 on a client: 1: ALLUSERS property is not 1 - this MSM cannot be used for a per-user or fallback-to-per-user install Can anyone please tell me if it's a security issue Or can i set the ALLUSERS property myself Hi, I heard from another customer with the same problem. On their system, the .NET Framework 2.0 had been advertised on their system as a per-user install, likely by an Active Directory group policy deployment on their network. They were able to solve this issue by uninstalling the advertised version of the .NET Framework from Add/Remove Programs and then re-running the dotnetfx.exe installer to install the .NET Framework 2. ...Show All
Windows Forms shrinking menu width when rendermode = system
If you set the rendermode for a menu to anything but system you get the blue vertical strip on the left side running from the top to the bottom. If you set the rendermode to system, it disappears but you still have the entire width where the strip was on the menu. How do you get rid of this margin I don't want the strip but without it it makes the menu too wide and ugly. Well that's not really an option. I need it to disappear. This wasn't the case with VS 2003. I don't know why they had to change it. ...Show All
Visual Studio Express Editions how do I create a file viewer that filters file visibility based on user input?
I want to create my own custom file explorer that will enable the user to view only certain files based on criteria that the user types in a text box. For instance, if the user were to type 'elvis' into the text box, only files with 'elvis' in the file name would be shown. What would be the best way to go about implementing this (i.e., what controls should I use , what methods are available that would help me accomplish this ) thanks for any help :) Use a listbox control to display the files...and use the GetFiles method of the directory class to fetch an array pf files to be displayed in the listbox ...Show All
SQL Server ldf file lost
somehow i lost my ldf file and now my sqlexpress is not working. I have the mdf file though. Is there a way to restore my database using mdf file Please help. Sorry about that, then yout database is in a inconcistent state where it can’t be recovered, hope you have a valid backup of your database. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Flash to Texture (Dx9)
My issue: A.- Don't have Macromedia Flash SDK ( I'm student !!! ) B.- I need to play a flash onto a DirectX9 texture. Idea: - Execute the Macromedia's FlashPlayer. - FindWindow + GetDc ---> Transform the HDC to a dynamic Directx9 texture. ---> ReleaseDC - Render the texture onto two triangles. This works fine, but if FlahsPlayer window doesn't paint, because is overlapped by another window, or is minimized, evidently my app doesn't work. I need some WinApi/Method/Technic whith a given HWND draw over my HDC. Or other way to archieve my goal. Kind regards. I don’t have an out of the box solution for you but maybe you will find something you could use over there: gameswf g ...Show All
Windows Forms flicking effect
Hi all when I was discovering Visual studio .Net 2005, I tried to put about 50 buttons on a form and run the application, but I had got a strange behavior, that is the buttons started to be painted one after another making a feeling of flicking, I tried to many ways to overcome this by using double buffering but still got the problem Ahmed, Run the application in release mode as opposed to Debug and see if the problem improves. I don't know the exact details, but there is something in the new vshost.exe that causes controls to be drawn slower in debug. Ken ...Show All
