Kerem Baser's Q&A profile
Visual C# Image Viewer (My Format)
I have written an image format, MeshImage (MI). A file is divided into structs (not the C# type). Each struct takes 6 bytes. Struct (1-6) 1 | Red 2 | Green 3 | Blue 4 | Alpha (Transparency; 0xFF is none) 5 | Location X 6 | Location Y As far as I know there is no method to draw a point through the Graphics object. You might draw small lines using Graphics.DrawLine, or filled rectangles using Graphics.FillRectangle, or you might create instead a ...Show All
Visual Studio Team System How to make WorkItem.Save() participate in a transaction?
I am working on a system which updates several databases in addition to TeamSystem workitems. I tried to use TransactionScope to make the workitemstore's batchsave to participate in an distributed transaction, but it didn't. It is probably pretty obvious why this is so, but does anybody have any thoughts on how to implement something to mimic a transaction when working with TeamFoundationServer Thanks borge3000 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where to go?
Hello everyone, This is my first post. A week a go I didn’t know C# existed and only had heard the term “Direct X”, but never knew anything about it. 5-6 days a go I accidentally stumbled upon the 8 part C# RSS reader video tutorial (Done by learnvisualstudio.net, but hosted at Microsoft). I watched most of that and became quite interested in trying C#, so I downloaded C# express edition. Later I read a bit about DirectX, which ma ...Show All
Visual C# Updating an app - possible without a second executable?
Hi, I have an application that automatically downloads updates from the web. However, when I want the application to update itself, it must obviously overwrite its executable. The only way I can think of right now to do this is to have the application launch a second utility application (and then quit) whose entire purpose is to overwrite the file and then relaunch the application. However, this seems kind of superfluous and unnecessary. Is ther ...Show All
Windows Forms Easiest way to work with the KeyBoard??
Hy! First, sorry, if i'm at the false category.. And now my problem... I have a MainWindow...and on it i put at Runtime...some UserControls. Now i have 4 user controls on it, and want to catch the KeyPress-Event... For Example...if the User press ESC that&nbs ...Show All
Software Development for Windows Vista sql services
I seem to have some trouble with the SQL services. SqlPersistenceService, SqlTrackingService and so forth seem to work fine. At least the events are fired that the workflow instance gets persisted on idle and so on. Event the samples like Lab3/Ex2 run fine. But there is never something in the database visible. Also the WorkflowMonitor does not see anything. I suspect that the sql services never commit their changes to the database, so ever ...Show All
Visual C++ AssemblyInfo.cpp
I need help, When I create a console app the AssemblyInfo.cpp does not load. All the other source files loads except that one, what should I do Alright, I had a enough. I just added the AssemblyInfo.cpp and now I get TWO C1190 errors. Anyone know what I could do to fix this. Here is my code: #include "stdafx.h" #using <mscorlib.dll> using namespace System; int _tmain() { Console::WriteLine("Hel ...Show All
Visual C# compare
Hi how can i compare two text files i mean the text in these files For small files you can do this: using (StreamReader readerFile1 = new StreamReader(@"c:\file1.txt")) using (StreamReader readerFile2 = new StreamReader(@"c:\file2.txt")) { string file1Content = readerFile1.ReadToEnd(); string file2Content = readerFile2.ReadToEnd(); if ( file1Content.Equals( file2Content ) ) { // The files are equa ...Show All
Windows Forms Does "ClickOnce" download the entire application every-time I update it?
Dear Developers! I read this on the FAQ page: Q. Does "ClickOnce" download the entire application every-time I update it A: No. “ClickOnce” only downloads the files and assemblies that have changed. Can someone tell ...Show All
Visual Studio 2008 (Pre-release) charging for ws usage
Hi I have several services and I would like to charge by the invocation of its methdos. Which is the best way to solve this problem in WCF It would be in the server side. Thanks Javier server side make sense ,because if client makes the call and if that call didn't reach server,This model may not work(If you are giving generic web service client,you may track this on client side also,but if you are ...Show All
Visual Basic Partial Class Startup
Just converted to .net from VB 6, Got a load of errors and warnings and tidied them up. The upgrade wizard created this first routine below < Global .Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> Partial Class Startup # Region "Windows Form Designer generated code " <System.Diagnostics.DebuggerNonUserCode()> Public Sub New () MyBase .New() 'This call is required by the Windows Form ...Show All
Visual C# In C#, when I insert a record into Access tabel, why will it cause error if the length of string inserted extend exceed the
I define a field "myField" in the tabel "AccessTable", the length of "myField" is 3 when I insert a string with the length 7, it will cause error, why myCommand.CommandText="Insert into AccessTable (myField) values ('123457')"; //cause error!!! myCommand.CommandText="Insert into AccessTable (myField) values ('12')"; //OK When I do the same thing using Pascal in Delphi, if the length of string exceed the length of a fiel ...Show All
Windows Forms How do you tell if an mdi child is open
How can you tell what mdi child windows are loaded Thanks of the help Ken. I am a newbie myself and I was wondering how to achieve this for a little while now. ...Show All
Visual Basic How do I create a user control that is not drawn on a form?
I want to create a user control that is not drawn on a form but rather resides in the control area at the bottom of the IDE like the timer and notifyicon controls. I can't find any information on how to do this. I would be very thankful if someone could point me in the right direction. Thanks. Herb http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbref/html/vbsamWindowsFormsSystemTraySample.asp Best regards, Jo ...Show All
Windows Forms hi
hi all, how can i make the label image like the form background image thx I don’t quite get what you are looking for... Are you trying to make the label have the same background color/image as that of the form If so... set the Label’s BackColor to Transparent (its listed as one of the Web colors). ...Show All
