ajb2528's Q&A profile
Windows Forms Set print document margins
Hi! I am going to print something on a specific format. I programmed as: ------------------------------ Private Sub Form_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim pd As New PrintDocument AddHandler pd.PrintPage, AddressOf Me.pd_PrintPage pd.Print() End Sub Private Sub pd_PrintPage(ByVal sender As Object, ByVal ev As System.Drawing.Printing.PrintPageEventArgs) 'Drawing everything I desire suc ...Show All
Visual Basic listbox object display
hi... using vb.net 2003... newbie here... i tried searching the forums and could not find my answer... sorry for the inexperience i am about to bring... anyway, i am trying to build a listbox of objects and have a string displayed, but also store a tag as well to save the key info... i initially used a treenode object, but it displays "treenode: ....." i don't want "treenode" displayed... then i tried creating my own object, but it wouldn't display the text... it would only say form1.listbox1.object.... in the listbox... how would i get a string to display while storing the key info with ...Show All
SQL Server how to change data types in Excel source file?
I'm getting a bit lost in SSIS. I've got an Excel source file that I'm trying to load into a table. I keep getting validation errors that warn about not being able to convert between unicode and non-unicode string data types. I'm trying figure out where I have to change this and am frankly confused. It seems SSIS is selecting various columns as unicode/WSTR data types, but I want them to import as regular string types. On the Data Flow tab in SSIS, I right-click on the source Data Flow component (the Excel file) and select Show Advanced Editor. Then on the last tab, Input and Output Properties, there's a tree view for the Excel output. There ...Show All
.NET Development What are some of the things that you can accomplish by using C#
I was wondering in an business oriented sense what are some of the things that you can due or that our widely done using C# Hi, C# is just one of the lanuages supported by the .NET Framework. The core of the functionality is provided by the framework and C# is used for consuming these classes offered by the Framework. As for the .NET Framework, it offers capability to build various types of applications ranging from WebServices to Windows Services and from web applications to Windows based applications serving various domains. If you want to get an idea from what has been C# used for in the real world then take a look at the casestudi ...Show All
.NET Development Running legacy asp
In a .NET website can you run legacy asp / com pages intermixed with .NET Hi! Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP.NET forums at http://www.asp.net/welcome.aspx tabindex=1&tabid=39 I'm sure you've heard, but there are a few companies that are offering free 30 day trial hosting options around. I know some of them are listed on www.asp.net , so check it out! HTH, PEte ...Show All
Windows Forms Set my application to be on top!?
I'm developing a windows application using VS2005 and C#. My application is composed of various modules/projects: 1 is a WIndows Forms executable that contains the main form. All the others are c# class libraries. However, all the class libraries contain windows forms that are instantiated from the main form. Right now I'm having an issue when opening my login form. The process is more or less like this: The Windows Application Executable runs, opens the Main Form and, on the MainForm_Load event I create an instance object of our Security Class Library, which contains the Login Form. After that I basically show the Login Form in a modal way. ...Show All
SQL Server Error installing SQL Server 2005 Express Manager
Hello everyone, My name is Pete and I'm new to this forum. Today, I installed Microsoft .Net Framework 2.0 and SQL Server 2005 Express June CTP. The following error pops up when I attempt to install SQL Server 2005 Express Manager: "The installer encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2755" I've downloaded this package several times and reinstalled it with no such luck. Did anyone experience this same problem when you tried to install SQL Server Express Manager Thank you for your answers Peter Hi Dan, I was able to successfully ...Show All
Windows Forms Detecting if DB resources exist
Using VS2003 framework 1.1 MSSQL Server 7 and 2000 I need to be able to determine if a user selected database has all the tables and stored procedures required to complete a specific business task. What is the best approach to getting this information from SQL server If you have done this already, would you mind providing some insight into your process tia, Todd ...Show All
Windows Forms How do I get rid of the first blank item in the combobox?
I have created a context menu that has a combobox in it. I have 3 items listed in the combobox. I have the dropdown style set as dropdownlist so no one can enter text. What I want to do is to not have that initial blank in the listing. I want for it to show the first thing in my collection. Is there a way to get rid of the blank item in the combobox Reason is that I am submitting to a database and if for some reason someone does not select an item in the combo it will automatically enter a blank in that database table. So I don't have a reason to keep the blank in the list, would it rather show the first item in my collection. T ...Show All
SQL Server How do I run/schedule my legacy dts packages in 2005?
My packages are migrated over our new 2005 server. How do I schedule/run them BOL seems to suggest that we replace the dtsrun commands with the dtexec one. Am I on the right track Have you migrated your old dts packages to new SSIS Packages or you just upgraded your server, and your old dts packages are lying as legacy packages in your server ...Show All
Software Development for Windows Vista 2003 Certificate Authority - Custom Policy module
I made a build of policy module available with Micorsoft Platform SDK Samples for C++ using VC++ IDE. To my surprise, the MS 2003 Server Certificate Authority does not recognize this DLL... But the same dll is recognized by 2000 server CA. Could anyone explain me the reason for this behaviour. Reference from :Microsoft Platform SDK\Samples\Security\CertServices\Policy\C++\Windows2000, and the read me file says, the code is supported for 2k or later. Thanks a lot, i got the reply for my query in Newsgroup: Discussions in security. Regards, Veena ...Show All
Smart Device Development Microsoft Device Emulator Community Preview - Won't Start
Windows 2000 SP4 I have installed the Microsoft Device Emulator Community Preview, with ActiveSync, but am unable to get it to Cold Boot. The furthest it gets is the emulator window with skin launches and then I get an error "DeviceEmulator..exe has generated errors and will be closed by Windows. You will need to restart the program. An error log is being created." Even with the /c option, I am not provided with any debug information. Your assistance is greatly appreciated. Respectfully, Gary This is really starting to frustrate me. This is my third day working on ...Show All
Visual Studio MsBuild on server without VSTO
We are using source safe to store our project files. Cruise Control is going to be our continous integration tool. Here's my questions : 1 - Is there anyway to use MsBuild without VSTO to build our project 2- When we try to install VSTO we have an error message because Office 2003 is not installed on the server. Is there a way to install it without having to install Office We want to have the less possible program running on the server. Thanks, Steph Please install the primary office interops per my previous replay and that should take care of the Microsoft.Office.Int* namespace ...Show All
SQL Server Exporting MOLAP from Cube Browser
Hello - I have a couple of (hopefully) quick questions regarding the Visual Studio cube browser and ways to persist the data rendered within it. 1) Is it possible to persist the settings in the Cube Browser (such as the dimensions, filters, and measures) - Currently every time I reprocess the cube the structure needs to re-created in the browser 2) Is there a way to save the full cube structure and data directly from the browser or at least export the data into excel or DTS formats Any insight would be appreciated Tristan ...Show All
Visual Studio Express Editions Creating reports in Vb Express 2005
Are there any type of reporting features in VB Express 2005 Tried Crystal 9.0 with no luck. Any help appreciated. John Williams there is reporting services in SQL Server Express 2005, you can create reports but not using visual basic, you must download and use the visual web designer software, then you can create web reports. There is not functionality to create a report project in VB Express 05, only in the full blown Visual studio 05 suite. ...Show All
