Software Development Network Logo
  • Visual C++
  • Windows Forms
  • Architecture
  • Visual Studio
  • Windows Vista
  • Microsoft ISV
  • VS Express Editions
  • Visual J#
  • Visual Basic
  • SQL Server
  • Smart Device
  • VS Team System
  • Windows Live
  • Visual FoxPro
  • Visual C#

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

MrCrool

Member List

John Cramer
RobHall
Rafael Navarro
FlowJam
LVictor
NRP
G. Mustafa
pauldo
Seba Gomez (gmail)
maddin123
Suresh Beniwal
Jigar Dalal
maria paramita
Andrew DeVaughn
LiLo
Sinisa Catic
BillFugina
RazzleDazzle
Todd Brooks
Googhum
Only Title

MrCrool's Q&A profile

  • Visual Studio Reportviewer doesn't print first time I click print button

    I use a WindowsForm Reportviewer. C# 2.0 I generate the report and all is OK but when the user try to print (print button in toolbar), the application open the printdialog, I select the printer and press Ok. But the application doesn't generate a document. When I try again, all work fine. If I close the application and restart, occurs the same (first doesn't works, second works, all time works). somebody have any idea Thanks form Spain.               Are you using the RTM version of the controls and of the 2.0 framework   We saw iss ...Show All

  • Visual C++ rand() not being random!!!

    OK An other problem which I really need assistance with I'm using srand to generate random numbers out of a range BUT i always get the same sequence of numbers!! But I notice the problem come from rand() i tried to create a new project with only this : #include <ctime> #include <iostream> using namespace std; void main() { srand(time(NULL)); cout << rand() << endl; cin.get(); cin.ignore(); } rand() does give me 7880 - 7920 - 7934 - 7946 as time goes. I even tried closing VS completly and try again, i Get approximatly the same result. What's wrong !   i copied your Exa ...Show All

  • Visual Studio 2008 (Pre-release) Why are the ClientBase<TChannel> ctors protected?

    With the service contract in a separate assembly it is really nice to be able to share the same assembly between the client and service. Then you can create a generic proxy client without the need for svcutil. (The same way you should share an interface for .net remoting). Unfortunately this requires writing a generic helper class that derives from ClientBase<TChannel> because all it's ctors and InnerProxy property are protected! Why oh why Please make this class more accessible for this scenario. The client base is a class you should inherit from when creating your typed client proxy. If you wa ...Show All

  • Visual C# Accessing the Windows Scheduler

    Hello, I have written a set of classes to calculate a schedule for the monthly, weekly, daily, or hourly frequency that an event in my application will fire. After writing the application, my client has requested that the operation more closely resemble the operation of the Windows Scheduler.  Rather than reproducing the entire Windows Scheduler functionality, I was curious if there was an easier way to use the Windows Scheduler interface. I know some libraries exist on CodeProject that allow you to interact with the Windows Scheduler, but nothing seems to give you access to the actual forms the scheduler uses.  Also, I am ...Show All

  • Windows Forms Toolbox default tab when designing a WinForm

    Hi! I have derived almost every controls (TextBox, Label, ...) and added some extra features to it. I have created a setup package that add a tab in the VS.NET toolbox with my derived controls. Everything is working fine. My question: Is it possible to change the default tab selected when opening a WinForm in designer  It actually select the "Windows Forms"  ...Show All

  • Visual Studio Tools for Office Any size restrictions of Interop.Word.XmlNode attributes?

    We want to save some kBytes of text in an XmlNode attribute. Storing the text is no problem but when reading it again it is truncated at approximately 32kBytes even though the total text physically exists in the attribute. We have to use the XML format of the Word documents. Are there any size restrictions for Word XmlNode attributes Are there other possibilities to save with the document text which is not visible to the user Can we use the data islands when using the Word XML format Thanks, Joe The Attributes collection is really an XMLNodes collection. Each attribute is an XmlNode. Whatever an XMLNo ...Show All

  • SQL Server Detect installed version?

    Today I installed SQL Server 2005 developer edition on a test server. Afterwards I also installed the SP1. During the installation of SP1, the installation program said the server should be restarted afterwards, which I did. Now when I look at the Add/Remove Programs dialog I have several items which mention SP1 on the SQL Server items. But when I request the server properties in Managemnt Studio I see the version number 9.0.2047. Shouldn't this be 9.1.XXXX How can I be sure the SP1 is correcty insatlled Stievie If you look on the download page under the Quick Details, the version number is listed as 9.00. ...Show All

  • .NET Development Casting at runtime

    Hello Can any body tell me how can I get rid of switch case in this code: private static Type [] EntityClassesTypes = new Type [] { typeof ( type1 ), typeof ( type2 ), typeof ( type3 ), typeof ( type4 ) }; public static object LoadInstance( EntityTypes entityType) { XmlSerializer xs = new XmlSerializer (EntityClassesTypes[( int )e ntityType]); switch (entityType) { case EntityTypes . type1 : { return ( Type1 )xs.Deserialize(sr); } } { case EntityTypes . type2 : { return ( Type2 )xs.Deserialize(sr); } } { case EntityTypes . type3 : { return ( Type3 )xs.Deser ...Show All

  • .NET Development File is used but i dont know why.

    Hi, i wrote a static class to load my config and save back one attribute to a xml file. Below is my source. When calling the method saveSettings my app stops at the last line and says file is in use...but i dont see how to fix this. Please help. static class configLoader { private static String configFileName = "config.xml"; private static XmlTextReader reader; public static String folderName; public static String folderVariable; public static Boolean logState; public static String emailLink; public static String websiteLink; public static String logfileName; private static void createReader( ...Show All

  • Visual Basic Minimum Permission Requests?

    Using VS2005 RC1, every time I create a project and add a reference to a DLL or control that resides on a different drive I get the following error either when attemting to run the program or when I first attempt to add the reference: ... Could not load file or assembly ... Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417) I'm an administrator- equivalent user and have full create/modify/destroy on both my local drives and all network volumes.  This seems to be the case when I create the project on my local C: drive and attempt to add a reference to something on a network mapped drive and when I create ...Show All

  • .NET Development XmlSerializer and MemoryStream: Byte Array has NULL

    I have copied code found in several places that allows me to serialize an object to a string using XmlSerializer and MemoryStreams.  I'm not using StringWriter because I have to use UTF-8 to be compliant with a particular web service to which this XML will be sent. I found that the resulting string had a leading null character and that this prevented deserialization necessary for further manipulation. I do not see the leading null when using a StringWriter instead of MemoryStream, but the resulting XML has a declaration of using UTF-16. I can get rid of the leading null with Substring(1) but that seems weak. I haven't seen any post ...Show All

  • .NET Development Binding to a datagrid

    Can anyone help with this one Have a form with a listbox and 5 textboxes, by clicking the different customer id's in the listbox this then displays the relevant info in the textboxes which is first name, last name, city, state and zip code, this works fine but I'm trying to display at the same time the order details for each selected order id in a datagrid but can't get it to work The order details to be displayed in the datagrid from the database are OrderID, OrderPrice and CustomerID, do I need to incorporate a data relation here This is the coding I have so far Imports System.Data.OleDb Imports System.IO Public Class Form1 Inherits System ...Show All

  • Visual C++ Need help circumventing compiler bug on C2665

    I've run into a bug in the compiler that's preventing me from building. I have a class with two constructors which are clearly totally from each other: ColumnDrawInfo( const CString& inLabel , COLORREF inText, HFONT inFont, UINT inTextAlignment = DT_LEFT); ColumnDrawInfo( UINT inLabel , COLORREF inText, HFONT inFont, UINT inTextAlignment = DT_LEFT); But when I try to create an instance with that second constructor the compiler fails: error C2665: 'ColumnTreeContainer::ColumnDefinition::ColumnDefinition' : none of the 2 overloads can convert parameter 1 from type 'UINT' could be 'ColumnTreeContainer::ColumnDefinition::ColumnDefinition(c ...Show All

  • Visual Studio login Failed

    I have a windows app that connects to a sql database.  I now want to do reporting from it.  I have created a CR report (from the buit-in VS2003 version of CR) that is going to be used to display the information.  When I run the app I get a login prompt for the database.  No matter what I enter into the prompt CR returns "Login Failed".  Searching the web the only references to try and solve the problem deal with using CR for reports on the web which are of no use to me.  Searching Business Objects website I find references to webpages using CR and unless there is an option I'm missing I can only ...Show All

  • SQL Server There is already an open DataReader error when scripting a view

    SQL Server Management Studio: When I try to script a view by right clicking on the view and select Script View / as CREATE TO I get the following error: Exception has been thrown by the target of an invocation. (mscorlib) There is already an open DataReader associated with this Command which must be closed first. (System.Data). This must be a bug Charles http://lab.msdn.microsoft.com/productfeedback/ ...Show All

©2008 Software Development Network