Jordanspringer's Q&A profile
Visual C# Time of day arithmetic
Hi. I am working with a time string that I want to be able to add a value to. If I enter a time of day as hhmm (example 2000), I would like to add a time value as hhmm (0535 + 2000 would return 0135) and return this as a string. Can someone help me with an easy way to do this please Thanks. My current routine doesn't work, but here is what I have done in sourcecode. The only part that seems to fail is the adding of hours and minutes to the time. Is there a shorter or better way to do this public static string MinSearch( string My Time, string MinConTime ) { int MinMinutes; int MinHours; string timestring= "" ; DateTime StartTime = Convert .ToDateTime(MyTime.Substring(0,2)+ ":&q ...Show All
Visual Studio Express Editions Query from a dataset???
Here is my problem. I have 3 tables: =========================================== TableA: | TableB | TableC =========================================== ADate AAmount | BDate BAmount | CDate CAmount ----------------------------------------------------------------------------- 1/3/04 $10 1/4/04 $20 3/1/04 $15 1/13/04 $10 2/1/04 $10 2/1/04 $1 ----------------------------------------------------------------------------- My VB code is strSQL += "SELECT month(ADate) as mth, sum(AAmount) as amount FROM TableA GROUP BY 1 " strSQL += "UNION ALL " strSQL += "SELECT month(BDate) as mth, sum(BAmount) as amount FROM TableB GR ...Show All
Visual Studio Express Editions RaiseEvent, button1.click vs. textbox1.keydown
I think this question has been asked before and the replys seem to miss the point of the question. (Or maybe I missed the right reply. ) So, here is how I will phrase the question. I often start out a program by adding a button on the form to do something. Then I put code in the button1.click event handler. (I let the IDE 'frame' the handler for me by double clicking the button in the designer view.) Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Blah, Blah, Blah .. lots of code pertaining to a textbox usually End Sub Then I decide that I would like the same code to execute if the user hits 'enter' in the textbox, as well as execute if the butto ...Show All
Smart Device Development Problem related showing icons on the devices
hi all, I m creating an appln in which i want the list of the icons and appropriate name for tht in the list box, i did it by using listview. but the prob is i want to load the SVG images (Scalable Vector Graphics) Tiny. Flow is like this, SVG images need to be stored in the database and i have to fetch it and attach it in the list. My Question is HOW to use SVG images Does .Net supports it i found frm many research that it possible but i m not getting the way how to implement it. Whenever i try to load SVG image it like device not support it. How to proceed I need help.thanx in advance. Hi .NET does not support SVG out of the box. What you would do is searching a SVG Viewer component that can be ...Show All
Visual FoxPro epson stylus photo 810 printer
Help!!!!!!!! I have the printer named above and replaced the ink cartridges when they ran out. But one of them is not an "epson" cartridge but a amart jet. The printer keeps telling that it does not recognise the black cartridge please replace.. I have taken the cartridge out and put it back in so many times i have lost count. As a single parent working part time i cannot afford to go out and replace it just because someone got the wrong one. Is there anything i can do to override this and fool the printer into thinking it is the right cartridge many thanks to anyone that can help Helen I am sorry, but this is technical forum for asking questions about Visual FoxPro and associated progr ...Show All
Visual Studio Can VSS deal with NTFS files with named streams?
just like the title says, can this MS product deal with files with named streams (How about if I can explicitly name the streams, and add them to the project ) Are you asking why I need to know, or why I like to use named streams I understand the dangers of using this highly volatile feature of microsofts NTFS, but Ive really come to love em (and I guess Im not alone). Our backup products know how to deal with them. I just hoped VSS might also. I have to evaluate a VC system for my group. Oh, and thank you for your response. ;-) ...Show All
Windows Forms how to call value of one form to another form
Hi I am a new bie to c# i am designing a c# window application.i have a login form. so how can i access thin login name or login id in all other forms. as their is nothing called as session or cache in windows applicaton. please suggest a suitable solutions. Waiting for the reply Thanking you because you are creating a new instance of a form/class therefore everything is reset to default values. you need the existing instance and pass this instance to the other form via constructor for example, as shown in the link supplied earlier.. I also dont understand why you are creating another instance of your login form when you are already in the login form and doing nothing with it :-) Best practice would b ...Show All
SQL Server ForEach DataFlow Task
I want to be able to loop through a view and execute a dataflow task for each record. I would like to pass the value of a column to the dataflow task to be used as a parameter in a data reader. How can I do this Danny Crowell wrote: I want to be able to loop through a view and execute a dataflow task for each record. I would like to pass the value of a column to the dataflow task to be used as a parameter in a data reader. How can I do this I don't understand...could you clarify it What do you mean with 'loop through a view' or you mean the rows in a view ...Then how is that you want t pass a column as parameter ...Show All
Visual Studio Express Editions Microsoft Agent Request Event Question
Happy New Year VB Experts, I am attempting to use the Microsoft Agent in an application; you know, the Clipit and Merlin characters. According to the documentation that I have found there is a Request event which is fired by a number of the Agent methods. The agent _RequestComplete event is used to keep the Agent animations and the rest of the program in sync. This is how I attempted to program the Request event. The code sample just contains the code pertaining to this problem. Public Class Form1 Private WithEvents MYAgent As AgentObjects.Agent Private MYChar As AgentObjects.IAgentCtlCharacter Private MYRequest As Object Sub LoadAgent() MYAgent = New AgentObjects.Agent With MYAgent .Connected = True ...Show All
Visual Studio Team System Team Foundation Server installation and VMWare
I'm in the process of installing TFS in our environment. Does anyone happen to know if Microsoft supports installation of the application tier on VMWare Thanks. We were exactly thinking the same. The customer I work for use VMware ESX Server so we are going to install the data tier one one virtualized machine and the application tier on another and then also have several build machines also virtualized. This way they can move it in the datacenter from one ESX server to another as they please. ...Show All
Visual FoxPro Data not up to date in newly created private data sessions.
We are witnessing data not refreshing across users and data sessions until program shutdown/restart. One user adds records, then runs reports; another user then runs the same report and does not get the latest data the first user added - even minutes or hours after the addition. This is a large system (163,000 lines of .prg code, plus 68,000 more in class and screen methods), originally written in FoxPro 2.5 and 2.6, ported to VFP 8.0 with minimal code changes, except the reporting. The vast majority of the system is still @ ... SAY ... GET / READ MODAL..., etc. Also, about 100 of the most commonly used tables are opened at startup and remain open until shutdown. The reports, however are called from VFP forms, each instantiated from a (si ...Show All
Commerce Server CS 2007 license and price ?
Hi all, I am using the CS 2007 Evaluation for Developer. But in the future I want to use it for my customer. Is using CS 2007 Evaluation against law And how much is the price of the CS 2007 Thank you. Microsoft provides Commerce Server 2007 Evaluation Edition so that users can evaluate the product before they make a decision to purchase their licenses. Microsoft also provides Commerce Server 2007 Developer Edition FREE to developers (but not for production purposes). Pricing and license details can be found at http://www.microsoft.com/commerceserver/howtobuy/production.mspx . Jeff Lynch MVP Windows Server System - Commerce Server http://codebetter.com/blogs/jeff.lynch ...Show All
Internet Explorer Development IE 7.0 + DWebBrowserEvents2
Hello all. Sorry if i selected wrong forum :). I have a problem with catching events from IWebBrowser2 in IE 7. I'm using ATL to create WebBrowser control on the dialog to use it as HTML editor. After creation i call IWebBrowser2::Navigate2 to navigate "about:blank". In IE 6 i catch events in the following order: DISPID_BEFORENAVIGATE2, DISPID_DOWNLOADCOMPLETE, DISPID_NAVIGATECOMPLETE2. And all works fine! But in IE 7 i don't catch DISPID_NAVIGATECOMPLETE2 after DISPID_DOWNLOADCOMPLETE. Instead of it i catch DISPID_STATUSTEXTCHANGE, DISPID_COMMANDSTATECHANGE several times and then i catch DISPID_DOWNLOADBEGIN. After that i don't catch any events and WebBrowser control are freezing and any call to IHTMLDocument2 ends w ...Show All
Visual Studio Express Editions copyFiles function
I am trying to write a function that copies one file to another destination. I don't know if this is the right way to do something like this or not or if there is already a function that takes care of this i don't know I just thought it couldn't be that hard to write my own, but I can't quite figure it out. Any help here would be great. here is what I have so far. bool fileCopy(string location, string path) { fstream inFile; fstream outFile; outFile.open(path.c_str(), ios::out | ios::binary); inFile.open(location.c_str(), ios::in | ios::binary); char buffer[16000]; if (inFile.is_open()) { while (!inFile.eof()) { inFile>>buffer; outFile.write(buffer, 16000); } inFile.close(); o ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Direct Music - Interactive / Dynamic Music Resources Needed
Hi. I'm trying to develop a game on my free time and I was going to try and use the Interactive Music Engine that's supported by Direct Music, but unfortunately I can't find very many resources on how this works. I've heard that using Direct Music in this way is just as hard as learning to use Direct3D and I was hoping someone out there would have a few sites or resources that I could use in order to help. Any takers DirectMusic is dead, don't try to use it on anything other than an exisitn gproject tht has to support it. There are VERY few resources on this subject for that very reason. ...Show All
