krwell's Q&A profile
Visual Studio Express Editions some questions again
1) i want my program to cover everyones screen full, i could use the windowstate maximize for that but what i want is that everything scales with the size of the form, i hope u understand what i mean 2) how can i get/put data from/in a dataset with coding thx in advance u both helped me, thx but i got some more questions 1) how can i play a movie file (.wmv etc) in my form with code ofc 2) i have a textbox and a listbox, i want that while im typing it seeks things in the listbox that start with the same letters, so for ex. my listbox has a, b, ba, baa and baab in it, when im typing b in my listbox it auto selects b, when ba it autoselects ba and so on ...Show All
Visual C# Windows Service will not run on Windows 2003 Server
Hi, I have developed a Windows Service that installs and runs fine on my XP (Pro) machine. When I install and try to run it on a Windows 2003 Server machine, it installs but does not run . Here is the eventlog entry: EventType clr20r3, P1 MyService.exe, P2 1.0.0.0, P3 452baa7e, P4 system.windows.forms, P5 2.0.0.0, P6 4333aefa, P7 3d21, P8 ee, P9 system.invalidoperationexception, P10 NIL. May I also add that there are no references to System.Windows.Forms in my service. Any help is much appreciated. You might still be referencing System.Windows.Forms indirectly. For instance, Microsoft.VisualBasic does reference System.Windows.Forms (for Interaction.MsgBox, among others, I guess). HTH --mc ...Show All
Visual Studio Express Editions Loading external app
I want to create an application that opens a program that I have installed on my computer when I press a button on my form, e.x "C:\Program Files\AutoCAD 2007\Acad.exe\". What object or methods should I use Thanks.. Hi Squire, Being an old VB6 user I think I understand what he's taking about. My trouble is remembering what it's like to a build without a Setup project. Main Menu Build | Build Project Name Should do it. As in VB, look under Bin/release Properly speaking, there is utterly no such thing as "standalone image" in Dot Net. A new user will be horrified to learn - The the "code" is partially compiled and optimized psuedo code or intermediate ...Show All
SQL Server SQLServer 2005 setup failed
SQLServer 2005 setup failed on Windows 2003 . Please see the error log. Thanks Microsoft SQL Server 2005 Setup beginning at Wed Jan 31 17:15:16 2007 Process ID : 1624 C:\dbservices\setup.exe Version: 2005.90.1399.0 Running: LoadResourcesAction at: 2007/0/31 17:15:16 Complete: LoadResourcesAction at: 2007/0/31 17:15:16, returned true Running: ParseBootstrapOptionsAction at: 2007/0/31 17:15:16 Loaded DLL:C:\dbservices\xmlrw.dll Version:2.0.3604.0 Complete: ParseBootstrapOptionsAction at: 2007/0/31 17:15:16, returned true Running: ValidateWinNTAction at: 2007/0/31 17:15:16 Complete: ValidateWinNTAction at: 2007/0/31 17:15:16, returned true Running: ValidateMinOSAction at: 2007/0/31 17:15:16 Complete: ValidateMinOSAction at: 200 ...Show All
Windows Forms Datagridview change the background color of some rows.
Hi all. Picture this datagridview. Column a / Column b / Column c row1 = 1 / something / plain row2 = 1 / else / data row3 = 2 / dosent / dah row4 = 3 / mater / data row5 = 4 / else / just row6 = 4 / plain / for row7 = 4 / text / filling row8 = 4 / something / end row9 = 11 / else / some row10 = 6 / domain / nothing I want to change to change the background color of all the rows that have the same value on Column a. Row1/Row2 background color white (for all cells), Row3 backgound color grey (for all cells), Row5/Row6/Row7/Row8 background color white (for all cells), Row9 background color grey (for all cells), Row10 background color white (for all cells). I'm able to change the color of a cel ...Show All
Visual Basic Problem printing with RawPrinter and Win98
I use the RawPrinter class, as per MSDN discussions. This has printed perfectly well from a Win98 client to a shared printer on a WinXP machine. I now get error 120 when I try to run the OpenPrinter. All I know is that we have re-installed Win98 on the client, but I cannot find any info as to what might be generating the error. I can print to the WinXP printer from a WinXP client, just not Win98. Any suggestions ...Show All
Visual Studio Express Editions Yet another printing question
Hi there everyone.... I have done tons of reading in this forum and others about the best way to print documents (word and pdf) and have mixed reviews. If anyone can answer my question I will be eternally grateful... here goes... in .Net's PrintDocument class, how do I print a word document using this class I have read that you need to stream text to the class, but if I open a streamreader of the word file, will it lose the formatting I know I can use interop to do this printing, but all documentation I have read indicates I shouldn't do this, and besides I don't get the printer control I need when doing this. any ideas or suggesstions will be helpful.. Thanks Justin ...Show All
Windows Forms Binding KeyCollection of a Dictionary to a combobox?
Not absolutely sure I've got the right forum for this, but I'm trying to bind the keys of my Dictionary object to be the source for my ComboBox, so that I can pass the other half of the pair as an argument to another function. Problem it, the KeyCollection won't bind directly and I can't find any valid casts to make it bind. Any ideas on how to do it or, as always, other options that are more sane ...Show All
Visual Basic Form load offset
I simply want Form2 Location when loaded to be offset from form1. I can't seem to figuire this out. I got this so far. Private Sub btnNEW_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnNEW.Click Form2.Location = Me.Location Form2.Show() End Sub This works but I want form2 to be offset a distance of 200 for both X and Y locations of Form1 ...Show All
.NET Development deserializing without loading assembly
Hello! I'm working on plugin framework, where each plugin resides in its own AppDomain. Plugins are configurable. Configuration variables may be different for each plugin, but should be accessible from main application. I guess discovering plugin's config variables via Reflection would cause loading plugin's assembly into main AppDomain, which is what I want to avoid. My question is: is it possible to serialize object defined in assembly "A" loaded into some AppDomain and send it to another AppDomain (as byte[], string or XmlWhatever), and then deserialize it in that AppDomain without loading assembly "A" into it In my current implementation plugins store their configuration variables in Dictionary, thus making configuration via PropertyG ...Show All
Visual Studio Team System Cannot execute a Build - TF42045
I am getting "TF42045: A build for the team project: xxx is in progress on build machine: yyy. On each build machine, only one build can be active for each team project. Use a different build machine or try again later." and I can no longer execute any builds for the Team project. I have restarted the TFSBuildService and the build server, enabled tracing on the application server, which again logs the above message and there are no alerts in the event viewer. Can anyone suggest where I can look for this phantom build that is running I have also called the DeleteBuild web method in the BuildController to clean up previous build it that makes any difference. thanks in advance. Hi M ...Show All
Visual Basic Inheriting from Scrollable Control
I'm working on a custom control where I'm going to handle drawing the entire UI with GDI+. The control class is inheriting from ScrollableControl, and I'm setting the AutoScroll property to True and setting the AutoScrollMinSize to 300x300 pixels, but this does nothing. What I want is for scrolling to happen based on the size of the drawing surface and not on the position of any other controls contained on the drawing surface (since I won't have any). I'm fairly new to custom control concepts, so I'm not sure how to go about this. Any tips you guys could offer would be much appreciated. The only idea I've had so far is to derive the control from the Control class, and then write a ScrollableControl derived control to house that control and ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Undefined errorcode from D3DXGetImageInfoFromFile
At the moment i'm programming a 2d graphical engine with directX9, but when i try to run the function D3DXGetImageInfoFromFile((LPCWSTR) filename, &imginfo); it gives back an undefined error code, i'm using the directx october 2005 sdk with the latest version of the directx runtimes. Full engine GraphEngine.h: #pragma once class GraphEngine; #include <D3d9.h> #include <Windows.h> #include "GraphResource.h" class GraphEngine { public : IDirect3D9 *D3D; IDirect3DDevice9 *D3DDevice; IDirect3DSurface9 *D3DScreen; GraphEngine(HWND hWnd); ~GraphEngine( void ); void drawImage(GraphResource *img, int X, int Y); void RefreshScreen(); }; GraphEngine.cpp: ...Show All
Windows Live Developer Forums WLM Addin: the event handlers don't work
Hello, I'm trying to implement a simple addin with the help of this doc: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnlive/html/messengeraddin_sdk.asp I made this code: namespace WLMAddin { public class TestAddin1 : IMessengerAddIn { MessengerClient client; public void Initialize(MessengerClient messenger) { client = messenger; client.IncomingTextMessage += new EventHandler<IncomingTextMessageEventArgs>(this.client_IncomingTextMessage); MessageBox.Show("Initialize:\r\n" + "\r\nemail: " + client.LocalUser.Email); } void client_IncomingTextMessage(object sender, IncomingTextMessageEventArgs e) { MessageBox.Show("incoming text"); } } } So, when I load the addin ...Show All
SQL Server Caching with Dynamic Security
I defined one role in my AS database with dynamic security for each dimension. I am accessing the AS database in an ASP.NET web application which runs under a domain user and uses Form Authentication. Therefore I always connect to the AS database under the same domain user even though security should be based on the user logged into the web application. When I run a MDX query, I pass along the web user's security info as part of the connectionstring and uses dynamic security to get the AllowedSet for each dimension. However, I notice my user defined function is ran only on the first time I run a query, meaning the dimension security is cached based on the domain user in the connection string and not the web user. Sorry if this sounds confu ...Show All
