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

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

DoS

Member List

meiraz
LastCyborg
dragoncells
Finch82
Naolin
andyedw
dr.xaml
Darrin Turner
Mike Lapierre
Penicillin
B Langston
Merrik
XNA Rockstar
Rolan
budbjames
RandomLick
Dietz
Nat999
Manmeet Panigrahi
Thilakavathy
Only Title

DoS's Q&A profile

  • Visual C# How to Save/open data to/from a file

    Hi, I have a Rich Text Box and I want to save the text in that Text Box to a file. What I want is when the user finish entering data in the Text Box, then they press the "Save" button, then the SaveFileDialog would popups and let the user save the data to a text file anywhere they want to. The user can also re-open that file and then the data would populate the Text Box. How do I go about that, please help!! Thanks Jason You can retrieve the text data using either the Text or Rtf properties. The former returns raw text while the latter returns RTF text. In both cases you need only send it to a file. You can load the box with data by setting these properties as well. To display the Open/Save dialogs create an in ...Show All

  • .NET Development getting rid of milliseconds in DateTime

    I've got this situation where I get dated records from an Internet server and logically they should be stamped at 2-sec intervals. Most of them are. However, some of the records have an "update" meaning. They carry one or two fields that are supposed to be used as a correction to the field values of a record to have arrived before. The rest of the fields have zeroes. Those "nonstandard" or out of sequence records stamped by "real time." What it means is they have milliseconds. Milliseconds are superfluous to my task and I've been trying to get rid of them. It does not appear to be easy. What I did first was to subtract them like this: DateTime dateTime; dateTime = dateTime.AddMilliseconds (-dateTime.Millis ...Show All

  • Visual Studio Tools for Office Why does CustomTaskPane.Window return an object instead of a Window?

    Why does the CustomTaskPane.Window property return an object instead of a Window The Word.WindowEventArgs.Window property returns a Window. Shouldn't this be the same To build on what David said, the Microsoft.Office.Tools.CustomTaskPane.Window property returns an object because the specific window type depends on which application the add-ins is targeting. The following table lists the valid types of the Microsoft.Office.Tools.CustomTaskPane.Window parameter. Word 2007: Microsoft.Office.Interop.Word.Window Excel 2007: Microsoft.Office.Interop.Excel.Window PowerPoint 2007: Microsoft.Office.Interop.PowerPoint.DocumentWindow InfoPath 2007: Microsoft.Office.Interop.InfoPath.WindowObject Outlook 2007 ...Show All

  • .NET Development Exception: DataTable internal index is corrupted: '5'. on ...

    Hi, I have a problem with bindingsource component in framework 2.0. I have a combobox bound to a bindingsource which is also bound to a dataset with 2 related tables and a datagridview bound to the same bindingsource. What I want to do is : When the selectedindex property of my combobox changes, the corresponding cell value must be changed in the datagridview. But although the value in bindingsource changes, datagridview does not display the new value. That value is displayed after I move the mouse over that cell and make it invalidate its region manually. Another error I caught is the one that you can see as the subject of my post. I do not know why i have that message when I try to change the property of ((DataRowView)mybindi ...Show All

  • Windows Forms Remember Login

    Helloo Is there a way that I can remember login, like cookies in web applications Is it a good solution to save logins encrypted to registry and then read them from registry, decrypt them adn display them in the form ...Show All

  • .NET Development Need Help!

    I'm new to ASP.net and hope that i can get some help from this forum.. 1)When i start debugging the app, a webpage appears say http://localhost:1780/WebSite4/Default.aspx   Does it mean that this web add can be accessed by others as well 2) I double click on the button icon fr the tools menu, a button icon appears but when i want to move it around, i fail to do so, why is it so 3)I try to put in the event handler for the button, like messagebox.show("hello"), but fail. What's wrong 4) I need components like timer and serial port. Ive selected the items from .NET framework, but it doesnt seem to appear.     Thanks..your reply has helped me in understanding better of as ...Show All

  • SQL Server How to print labels like label 1 of 1 and label 2 of 3....

    I have a report that will be a label and I need to print N number of labels depending on a certain number returned from the query. Let's say that number returned is 3. So, on my first label I want to print 1 of 1 and on the second label, 2 of 3 and the third, 3 of 3. All other information on the label will be the same for all 3 labels. All information used is from the query. One of the fields accessed through the query holds the number I need to use to do this. Is there a way to do that through the report designer using vs.net Is there a setting for this or is it a SQL thing I need to put in the query some how. Or am I completely off track Any help would be greatly apprciated. thanks It's very h ...Show All

  • Visual Studio Tools for Office VSTO 2005 SE Deployment Problem

    Hi, I am creating a Excel 2007 VSTO COM Add-In using VSTO 2005 SE . It runs perfectly fine when I build it and run the in development computer having VS 2005 . However, when I try to install the setup.exe or .msi file for the same addin in the client machine or Virtual PC having the following configuration: 1. VSTO Runtime 2. Office 2007 3. .NET 2.0 Framework it does not seems to load . I also did caspol settings to make it Fully Trusted . I get the following error " Not Loaded. A runtime error occurred during the loading of the COM Add-in ." Can someone please help me on this Thanks in advance How do I get teh PIA for Office 2007 I checked it in the Disabled Application Add-in Section b ...Show All

  • SQL Server Migrating from SQL express 2005 to sql 2005

    Hi, I want to move my sql express DB to a sql 2005 server located at a service provider. I can detach or back, but I am limited on attaching or restoring the DB because the servers are on two limted/seperated networks. Is scripting an idea I have SQL manager 2005 running. regards, Gerry hi Gerry, all 3 scenarios are viable solutions, as well as the Deployment Toolkit ... regards ...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 PerformanceCounter theCPUCounter = new PerformanceCounter("Processor", "% Processor Time", "_Total"); Console.WriteLine(theCPUCounter.NextValue().ToString()); ...Show All

  • SQL Server Last recompilation date of the procedure / view

    Hi, Kindly let me know How will we find the last recompilation date of the procedure / view in sql server. Regards, S.Balavenkatesh perhaps what you seek is in: select refdate, crdate from sysobjects or select create_date, modify_date from sys.system_objects -- 2005 Dave   ...Show All

  • Visual Basic figuring out chars in a string (parsing)

    This should be a simple question to answer to the right person. I have been trying to figure out a way to do the foolowing but can't seem to come up with it. I have a string that will change (directory path). I want to know if the folder (at the end of the string is 'Desktop' even if it is 'Desktop\' How can I do this if I have the file path I figure i need something to get the variables on the right of the string somehow. Any help would be appreciated. Thanks! I'd suggest something like this:   OpenFileDialog1.ShowDialog()     'This is arbitrary, I used it to test the code Dim FileString As String = OpenFileDialog1.FileName Dim Length As Integer = 0 ...Show All

  • Visual FoxPro Form size at editing time

    Hello, Since a couple of days, under development when I edit my form (MODIFY FORM form1.scx) It is allways in a reduced size so I have to maximize or drag it from the lower corner to resize it. Despite I save the form with the new size, it reopens allways reduced. Some settings I’ve missed Regards, Alberto >> Despite I save the form with the new size, it reopens allways reduced. What is the setting in your Options for the Form Editor Also check your FoxUser table - try deleting any old records for this form. ...Show All

  • Windows Forms How To add data in TextBox,ComboBox To Display in DataGridView And MS-Access database

    i'm a beginner , please help me about topic i use VB2005 and i try to add some data in TextBox ,ComboBox  to display in DataGridView and i try to Insert that data to save in Microsoft Access but i can't do it   ...Show All

  • Smart Device Development Cabwiz.exe - Application Error

    when I try to run the cabwiz with a inf file. I get the error Cabwiz.exe - Application Error The instruction at "xxxxxx" reference memory at "yyyyyy" referenced memory at "zzzzzzz". The memory could not be read. in a popup window. What may be the problem Regards, Prashanth Dear PrashanthHJ, Just as what Ilya said, this is a known issue. The best practice is to redesign your application. But here still has a solution optional, That is installing Multiple CAB files. A cab file includes multiple sub cab files. For more information see the links(sample code is also privided): http://channel9.msdn.com/wiki/default.aspx/MobileDeveloper.InstallingMultipleCABFil ...Show All

©2008 Software Development Network