PAPutzback11696's Q&A profile
Visual Basic Printing Issue
Hi, We have converted an application from vb6 to vb.net. All the issues have been addressed and we are able to print from within our application. But in the client machine, printing is not working. Development (IDE: .Net 2003, Windows xp) Client: Windows 2000. Can anyone please help. Thanks, Arun. ...Show All
Visual Studio Express Editions Printing in "visual basic express Edition" ?
Hi all. Im looking for a "beginners" guide, on how to enable printing in my homemade programs. I am, at best, a beginner when it comes to programming, and i have no previous experience with visual basic, other than the videos supplied by learnvisualstudio.net. All the topics I can find about printing, is about the difference between printing in Visual Basic express and Visual Basic 6.0, but I dont know VB6, so that doesn’t help me much. So if any of you know a good place to start, in learning about printing, i would really appreciate if you would post a link to it. Thanks in advance, and I apologize if my english is a little incoherent, im not use to speaking/writing in this language. Since you want to know ...Show All
Game Technologies: DirectX, XNA, XACT, etc. I want to learn how to draw sprites with C#!!!!
I need help drawing sprites in C#!!!!!!!!!! Any Help..... Any Code..... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Reading the buttons of Joystick Saitek x52
Hi all, Did anybody come across a C# sample that relates to Saitek X52 I have found some generic Joystick samples which help me read the buttons EXCEPT the Mode button. The GetButtons() function returns the codes of the pressed buttons, but I cannot get the status of the Mode button out. I just spoke to Saitek support - No .NET samples whatsoever. Any tips will be appreciated. Best Moni. Sorry I reopen the topic - just to post the feedback. Just FYI. I ran the Joystick sample from the Feb SDK - it is identical to the one I have from Oct. '06 Both using ....\Microsoft.DirectX.DirectInput\1.0.2902....... Code-lines also the same - Unless I picked the wrong demo project - The ...Show All
Visual Studio Tools for Office Fuzzy text in a label control
Hi, I've added some controls to the top of a sheet in an Excel file. The problem I'm having is that the text on, say a label, is blurry or fuzzy. It almost looks like when smoothing is being applied but actually makes it worse. I've tried various fonts and sizes and that doesn't matter. The rest of the text on the sheet looks fine. Has anyone seen this before, and hopefully knows what's happening I'd appreciate any help. Thanks. Hi Dennis, I was wrong. The funny thing is, when I run the program, the screen intially shows up with the label still fuzzy. However if I'm patient (which I'm often not), in a few seconds it clears up. Weird. I'm glad you asked the question -- if I wasn't trying to capture screenshots I wouldn't h ...Show All
Smart Device Development Socket connectivity between EVC4 and Visual C#
Hi, I am developing a program where I have a client socket created in EVC4 using Winsock and a server socket running on Microsoft Visual C#. The problem is that I am not able to connect to the server IP from the client. Both the client side and server side socket program code is given below. Client Side: int sd; struct sockaddr_in myaddr; int clconnect; if(sd==INVALID_SOCKET) { MessageBox(L"Socket not connected",L"ERROR",MB_OK); } else { myaddr.sin_family=AF_INET; myaddr.sin_port = 5555; myaddr.sin_addr.s_addr = inet_addr("192.168.1.101"); clconnect = connect(sd,(SOCKADDR *)&myaddr,sizeof(SOCKADDR_IN)); if(clconnect = SOCKET_ERROR) { //wsprintf(wsachar, L"%.2f",WSAGetLa ...Show All
Visual Studio Express Editions How to create a WPF project
I have Visual C# Express and .Net 3.0 installed on a Win XP SP2 machine. How can I create a WPF project Is there something else I need to install I found The Visual Studio 2005 extensions for.NET Framework 3.0 (WCF & WPF), November 2006 CTP...is this what I need I would rather not install a CTP version of these extensions unless I have to. Any idea when the final version of these extensions for Visual 2005 Express software will be available Thank you! You'll also want/need to grab a copy of the Vista SDK which contains the SDK for the 3.0 Framework. If you want to do any development in C# Express then you’ll need those extensions for the time ...Show All
Visual Basic Distributing .NET assembly for interop with VB6
Greetings. I have a VB6 client/server application, that needs to interop with a .NET assembly. I have all required assembly files (.dll, .pdb, .tlb) in my PC. In my development box, to make call from vb6 to .NET assembly , using regasm command I registered the typelibrary and everything works fine on my development PC. Now the problem is I have to distribute this functionality to user's PC's. I am using Visual Studio Installer to create deployment package. Can you please suggest a way to accomplish this task with minimum change in users PC Any help is appreciated. Thanks very much Morgan The first thing you will need to do is install the .NET Framework. You should find a fair amount of infor ...Show All
SQL Server Data transfer
Hi, Not certain whether this is the right forum to post this question - please advise. I am fairly new to SQL Server and need to know the best way to transfer data from one data base to another. For example: I have a database running via SQL Server 2005 developer edition and another running using SQL Server 2005 Express edition. If I do a backup on the developer edition I get an error and failure when attempting to upload the data on to the Express edition. What am I doing wrong can anyone advise Also what is the best way to add/remove/update stored procedures and or change the database table structures for a current database (MySql for example allows one to type command line calls direct to the relevant database to al ...Show All
Visual Studio Team System Uninstalling Evaluation version of Team Explorer
Hi, I installed the evaluation edition of Team Explorer on my machine, and when I'd finished, I uninstalled it (through Add/Remove programs) The problem I have now is that although it does not appear inside VS on hte menus, it does appear as an installed element on the splash screen, and I get a blank form displayed when I start VS which appears to be the dialog that used to prompt me for a user name and password. (I had to specify these to connect the the TFS server because if network problems). Any ideas on what might have been left behind that could be causing the problem Cheers, Bill Thanks for the error report. So we can help investigate this further, can you tell us a bit more ...Show All
Visual Studio Express Editions rounding
I am using this code, Randomize() lblDsuit1.Text = CStr ((10 - 1 + 1) * Rnd() + 1) The numbers it generates are all decimal numbers, how can I make it round each number off sure. lets try Randomize() lblDsuit1.Text = Math.Round ((10 - 1 + 1) * Rnd() + 1).ToString() regarding your simple example. This will round it to 9 Dim theNumber as Decimal = 9.4657 Me.lDsuit1.Text = Convert.ToString(Math.Round(theNumber)) ...Show All
SQL Server Grouping by first letter in XQuery
hello, i use this fragment for grouping: declare @data as xml ; set @data = '<r> <item letter="A" title="Alabama"/> <item letter="A" title="Arizona"/> <item letter="C" title="California"/> <item letter="C" title="Colorado"/> </r>' ; select @data . query ( ' <root> {for $c in distinct-values(/*/*/@letter) return <letter is="{$c}"> { for $x in /*/* where $x/@letter = $c return $x } </letter> }</root> ' ); it produce this xml < root > < letter is = " A " > < item letter = " A ...Show All
SQL Server Tying parameters to variables in an "SQL Command Using Variable" expression
I'm trying to pull data from an Oracle 9 DB cost history table and populate SQL Server table for report purposes. The Oracle has 470 milliion rows so I'm trying to migrate the data incrementally. After reading blogs and help pages, it sounds like the best method is to set up the source connection using the Oracle OLE DB provider and an "SQL Command Using Variable" expression. I was able to get this work from the examples from the various blogs (Donald Farmer, Jamie Thompson, Scott Barrett -- great info, better than BOL). I've been using Oracle for all of my career and I'm just learning how to work with SQL Server 2005 (in other words-- SSIS newbie). How can I tie an external parameter to each of the two variables that ...Show All
Visual Studio Express Editions How to chang many object with ....
Hi how to changhe Cheked Property for many CheckBox in the form for Example: CheckBoxs Name : tbtn_Mtime01 to tbtn_Mtime09 Private Sub ResetToggleButton( ByVal DayNum As String ) Dim F_ToggleNameM As String = "tbtn_Mtime" Dim S_toggleName As String = DayNum Dim M_ToggleName As New CheckBox Dim MorningMix As String = F_ToggleNameM + S_toggleName + "_0" For i As Integer = 1 To 9 M_ToggleName.Name = MorningMix + CStr (i) M_ToggleName.Checked = False Next End Sub Try something like this: For ix As Integer = 1 To 9 Dim chk As CheckBox = CType(Me.Controls("tbtn_Mtime" + ix.ToString("00")), CheckB ...Show All
Windows Forms Help - problem with datagridview on tab control that is not active during data load
Hi, I have this problem in my application development (C#, windows form). I have a datagridview in a tab control on the form that the tab it belongs to is not the active one during data load. In that datagridview, I have defined some unbounded check box columns which I manually (programmatically just after the data load) set to true or false based on a text box column (bounded) in the row. The problem is if I set the tab with the datagridview in it to be the active tab before the data load, the check marks on the checkboxes show properly. But when the tab with the datagridview in it is not the active tab before the data load, check marks does not show on the checkboxes. This problem I have is kind of hard to explain so I created a test ...Show All
