Software Development Network Logo
  • Smart Devicet
  • SQL Server
  • Microsoft ISV
  • Visual Basic
  • Visual C++
  • IE Development
  • Audio and Video
  • SharePoint Products
  • .NET Development
  • VS Team System
  • Visual Studio
  • Windows Forms
  • Visual C#
  • Visual FoxPro
  • Windows Vista

Software Development Network >> Daveo__'s Q&A profile

Daveo__

Member List

brandera
Timmy0614
pckaw600
fettoter
Simmy7
Richard Warlow
Stéphane Beauchemin
Saif Hasan
Vipul123
Rama Boya
maderito
George2
Skapol
jonez108
cyberjoe2
Buddhist
Saiboro
mobigital
dni
EricSmith
Only Title

Daveo__'s Q&A profile

  • .NET Development I have problem when use DateTime class

    I use DateTime.Now in my program and it work correctly. I run my program 24hrs/day . But it work correctly for 6hrs after that it retrun wrong date and time to my program and I have to restart the program to make it work correctly again. example I run program at 31/10/2006 but it return 299/12/2006 to me. I don't know what is the problem. I can't fix it. Anyone can help me Thank Bizarre problem, to put it mildly. DateTime.Now does a fair amount of processing. First, it obtains the current UTC time with the GetSystemTimeAsFileTime() API function. It then adjusts that time by looking at the time zone and whether or not daylight savings time is in effect. That last one seems relevant, we just went throug ...Show All

  • Windows Forms Problem reordering items in ListBox bound to DataView

    I am creating an application that contains a ListBox control databound to a DataSet. The user should be able to click on a button to move list items either up or down in the order that they appear in the ListBox. This is proving somewhat difficult to do. I have currently implemented this using a DataView with a column "OrderPosition" corresponding to the order the item should appear in the list and the DataView sorted by this column. When the user clicks up or down buttons the code changes values in the OrderPosition column to reflect the new positioning. The code below is for the down event and the error is shown in the comments: If Not Me .componentsListBox.SelectedIndex = 0 And _ Not Me .componentsListBox.SelectedIn ...Show All

  • Visual Basic How do I get a URL from a web search

    I am using Visual Web Developer 2005 Express. I want to be able to click a button that will start a browser to search the web, [eventually] returning the URL to my program. I.e., a function like the "Create Hyperlink" in MS Office products. I find that I can't access the Internet Explorer object model as I would in Visual Basic, response.redirect doesn't seem to have a parameter to create a separate browser session, and neither this nor a hyperlink offer any way of getting the URL back (unless I'm missing something). So I seem to be stuck. Can anybody help Regards, Robert Barnes Thanks Bertrand. This looked promising, but it seems more suited for a web service than displaying a web page. I coded: ...Show All

  • Visual Basic Web Browser Page Setup Automation

    I need to change page settings for a web page in a web browser control automatically. I need to change the margins and I want to print a web page from a Web Browser Control without the header and footer, you know with the Page Title, url, page x of y, and the date/time. Or is that even possible EDIT: after further research it sounds as if this is possible. An MSDN article on printing from a Web Browser Control sates ...use the ShowPrintDialog method. To display the Page Setup dialog box, which lets your users specify header and footer values... so this tells me the header and footer can be removed manually in a page setup dialog, so I assume the same can be done automatically then with some programming.... ...Show All

  • Visual Studio 2008 (Pre-release) Working with an XMLDocument(LINQ)

    Hello, I want to work on an XMLDocument using LINQ. Let me to explain the scenario briefly. I have an XML file like that: <cities> <city name="Sivas"> <date value="01.06.2006"> <time id="0">some value</time> <time id="4"></time> <time id="5"></time> </date> <date value="02.06.2006"> <time id="0"></time> <time id="1"></time> <time id="4"></time> <time id="5"></time> </date> </city> <city name="Aachen"> <date value="01.05.2006"> ...Show All

  • Windows Forms Setup & Deployment template not in Visual C# Express 2005

    I'm trying to create a setup & deployment project for my solution. First I tried the ClickOnce Publisher, but couldn't get that working, had the one manifest file exception after the other, then I read that the ClickOnce Publisher doesn't have the functionallity to write entries to the registry at installation, and that's one of the requirements for my app to run succesfully. Now I started looking at the windows installer setup & deployment, which I used in VS2003, and I had that working exactly the way I wanted to. I recently upgraded to the Visual C# Express 2005 and .Net 2.0, that project failed during the convertion of my solution so I excluded it from the solution. I wanted to create the setup & deployment pr ...Show All

  • Visual C++ MoveWindow for dialog has no effect when invoked by message handler

    Problem: MoveWindow function for a dialog appears to not work when called from a message handler. Details: My dialog-based application needs to work in both landscape and portrait screen modes. Not only that, but it needs to detect when the user has chosen to rotate his/her display from portrait to landscape or vice versa, and adjust itself accordingly. When in portrait mode, the dialog is 1024h x 768w. When in landscape mode, it is 768h x 1024w I added a message handler ON_WM_SHOWWINDOW, which is called when the application is first displayed. I also added a message handler WM_DISPLAYCHANGE which is called when the system detects an aspect ratio change. Both of these message handlers call a member function that does the follow ...Show All

  • .NET Development Class or functionality to unzip the file .net framework 1.1

    I am working on a desktop application in .net framework 1.1. I have to downloa a zip in which there is a xml file which I have to parse. How can I unzip the file {I know .net 2.0 there is a fraework supported class I think gzip but I have to use .net 1.1 [Damned Stupid Client] } Please can any body help Thanks .NET 1.1 does not have such a class. Try this lib: http://www.icsharpcode.net/OpenSource/SharpZipLib/Default.aspx ...Show All

  • SQL Server Aggregate functions not allowed in the dataset filter

    Hi, I was trying to filter a dataset based on a condition like this: Fields!SalesAmt.value <= Sum(Fields!SalesAmt.Value)*0.05. This is nothing but it filters those SalesAmt that are less than 5% of the total sales amount. However SSRS doesn't allow to use aggregate functions in the dataset and data region filter. Is there another way to do this Sincerely, --Amde Hi, What you have said make sense, but, the thing is I am using MDX query instead of T-Sql. The link that you sent to me is helpful. It would be more helpful if you can send me similar link that uses mdx query. Sincerely, --Amde ...Show All

  • Visual Studio Express Editions Minimizing Some Other Softwares To Tray

    Hi! I have this software which does not have a feature which is minimize to tray. I wish to ask if it is possible to write a software which minimizes other .exe files to tray. I wish to minimize the software to tray during startup of my computer. Thanks! Sam Hi Ahmed I was trying to hide this software, lets call it ddd.exe into the notification icons area. The ddd.exe doesnt come with minimize to notification area function, so I hope that I can somehow write a program which will make ddd.exe minimize to the notification area (icons next to system clock). Thanks! Sam ...Show All

  • Windows Live Developer Forums Constant server busy error when trying to load vecollection from local.live via scripting

    Greetings, Apologies up front if I missed something obvious in the VE3 documentation, but I'm trying to load a vecollection from local.live via the collection's provided permalink URL in my clientside script, but I always get the server busy error in my map control as a response. Is the server in fact generally maxed out, or am I using the wrong URL for the job etc.. The exact same URL does work to open the local.live site and successfully show the collection in that map control when I pop open a window with it from the same script function, so I don't think it's a typo or such. And, if the remote load is not do-able, is it possible to create a vecollection file on my server that I can then load locally (I know about and am levera ...Show All

  • Visual C++ VC++ about MFC

    What are necessary steps to use the application wizard derived document class Hello The correct place for your question is probably the MFC newsgroup: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.vc.mfc&lang=en&cr=US OTP Thanks Damien ...Show All

  • Visual Studio 2008 (Pre-release) Defining a DataContext's connection string at run-time

    Hi, I'd like to be able to set a DataContext's connection string at run-time, rather than referring to an application setting (I'd use a connection string from web.config). I haven't been able to find any information on the DesignConnection property, and when I remove it, an error informs me that "No overload for method 'DataContext' takes '0' arguments". How would I accomplish this Thanks, Dan Finch Thanks, that works, however, I created a custom DataContext in the DLinq designer. It stores the connection string in both Settings.settings and app.config. As I understand it (and I may not), Settings.settings is compiled and app.config is not. Why is the connection string in both I do ...Show All

  • Visual Studio Team System Error 28922 !!!!!

    had SP1 of visual studio and TFS installed on my server but it didnt work and i had a server failure, so i removed the SP1 after doing this i had this error: " Team Foundation Server does not exist or is not accessible at this time. Technical information (for administrator): HTTP code 503: TF30059: Fatal error while initializing web service " after searching on line i found that there is problem in version number of Microsoft.TeamFoundation.VersionControl.Server.dll file so i changed it to be compatible with TFS version number. by dowing this the following erro appeared " Please contact your administrator. There was an error contacting the server. Technical information (for administrator): HTTP code 500: Internal Server Error ...Show All

  • Visual C++ Writing ASP files in C++?

    Hi everybody. The subject exposes very well my curiosity. We can write ASP .NET files using VB.NET or C# syntax. So I was thinking... Can I write ASP files using C++ syntax . Best regards. Demian. http://www.codeproject.com/managedcpp/helloworldmc.asp ...Show All

©2008 Software Development Network