Software Development Network Logo
  • Visual C#
  • SharePoint Products
  • Microsoft ISV
  • Windows Vista
  • SQL Server
  • Windows Forms
  • Smart Devicet
  • Visual FoxPro
  • Audio and Video
  • VS Team System
  • Visual C++
  • Visual Studio
  • Game Technologies
  • Visual Basic
  • .NET Development

Software Development Network >> Behzad Karim's Q&A profile

Behzad Karim

Member List

Alexey Rokhin
SolarWind
Chris-M
Derek at Potters Clay
Khookie
mnaples12
Rraj
SnowJim
MNDANG
bilalso
syhzaidi
JezPop
Tom_Liu
Lorenzo Soncini9198
DanHaligas
Kamii47
BJHop
Ljhopkins
pjtaylor
Muhammad Azeem Azam
Only Title

Behzad Karim's Q&A profile

  • Visual Studio 2008 (Pre-release) Using controls defined in exe-assembly from external xaml-files.

    I have a program that can load xaml-pages and resourcedictionarys from an uncompiled xaml-file during runtime. This works fine but one thing that bothers me is that all controls i use in these files has to be compiled in a dll-library, if they are in the main exe it won't work. Take this resourcedictonary as example: <ResourceDictionary xmlns:MyNamespace="clr-namespace:MyControlLibrary;assembly=MyControlLibrary" xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " > <Style x:Key="testbutton" TargetType="{x:Type MyNamespace:GUIButton}"> //Properties here </Style> </ResourceD ...Show All

  • Visual Basic ERROR: Unrecoverable build error when building Setup project in VS.Net 2005

    Hello, Somebody, please help me out, I got "Unrecoverable build error" when building setup project.  I try the solution in http://support.microsoft.com/kb/329214/EN-US/  but did not work out. I am totally stuck. Please, your any information, solution will be very much appreciated. Thanks! Yi-an Damn! I've just reinstalled VS2005, after removing everything about it and .NET Framewok 2.0 and 1.1. But the problem still appears. I don't know what to do. Creating an empty project setup it succesfully builds, but adding the primary output from the project i want to distribuite, the build process always fails. I hope for suggestions from MS. I don't think about reinstalling Windows. It may be the solut ...Show All

  • Visual Basic Layering JPG files in PictureBox

    Hi, I am having some difficulty with a project I am working on and I haven't been able to get much help on it. I want to create a stoplight using GDI+. What I have are 4 images: - A normal stoplight where all three lights are gray-ed out - A red circle exaclty where the red would be on the stoplight - A yellow circle exaclty where the red would be on the stoplight - A green circle exaclty where the red would be on the stoplight All of these images are the same image/canvas size and if placed on top of one another would look like the stoplight has all three colors on. What I am looking to do is layer all these images, on top of one another, in a picture box. When I press a button labeled RED, I want the red light to appear on. Another butto ...Show All

  • .NET Development How should i start learning building Distributed Application in .NET

    Hi Guys, I am having 3 year of .NET programming exp. I made few web services but i want more knowledge about .NET Remoting as well as web services. Can you please suggest me some good book and tips for self learning. How MSTS certification help me in this. Thanks Mahesh http://msdn.microsoft.com/practices/apptype/distapps/default.aspx http://www.thinktecture.com/Resources/Books/default.html#ADR_CSHARP ...Show All

  • .NET Development Timer not firing at set rate...

    I set up a timer for my basic form. The only problem is that it only fires at 30 times per second. I would like it to fire at 60 times per second so I set it's interval to 15 milliseconds but still fires 30 times per second. Anybody know why Excuse me if it is basically obvious. Thanks, Devin The problem is that with an interval of 15ms you're very close to (or even below) the minimum quanta for the thread (i.e. the time slice it is allowed to run for before switching to another thread). In addition WM_TIMER messages are low priority and can be discarded (i.e. they won't stack up in the queue). Generally you should consider timers to be accurate to within +/- 10ms or so. They aren't suitable for ...Show All

  • Visual Studio 2008 (Pre-release) streaming webcam video inside WCF

    bit of a newbie, I am trying to stream video from a webcam inside a web service. I am having little or no luck finding decent information about using webcams with WCF. Any information would be greatly appreciated. I have been doing a lot with WCF and video downloads and streaming lately - including writing my own custom message and encoder for optimized transfer of non-XML data. As Kenny says, the easiest approach would be if you could have a System.IO to return in your operation or MessageContract. Otherwise try to wrap the video resource in a custom Stream and use that. ...Show All

  • .NET Development What is the connection string to write for importing mixed data from excel sheet to data grid

    Please help me about this issue, so that I ll be glad to u.I used IMEX=1.but it is working for some limited rows I can't reproduce this problem. When I use IMEX in the connection string the mixed mode columns display just fine. Could you post your code ...Show All

  • Windows Forms Drag and Drop Label containing text into another panel

    Hi all, I was wondering if it is possible to do the following: I have a toolbar-like panel on the left of my form, on the right side of my form I have a larger panel containing nothing. In the toolbar are panels containing labels with text. I want to be able to drag such a panel to the panel on the right side and drop it there. I want it to be dropped on the exact location where I released the mouse button, that exact x-y position. Is this at all possible Any help would be appreciated. It can work with anything. The problem you are going to have is determining what to store when dragging and what to retrieve when dropped. For a picture box you can simply store the Image property as a bit ...Show All

  • Visual Basic Simplest method to add e-mail to an application

    I am trying to find the simplest (& hopefully, most flexible) way to add e-mail capabilities to a Windows Forms application. I know I can use System.Net.Mail to send e-mail, but this requires some pretty specific information (server name, username, & password) that my application will not have access to. In an old VB6 application, I used MAPI to send e-mails, which I suppose is still an option in .NET. The benefit of using this is that MAPI handled all of the account information for me - it just "used" Outlook to send the e-mails. The only [minor] downside here was that my application required Outlook or OE to be installed on the computer - which is not really a problem where this application is distributed. Is t ...Show All

  • Visual Studio Express Editions calculate numbers from a "visual" line

    hello, i'm a visual basic beginner, using visual studio 2005 and had a question: how can i calculate a number from a proportionate line ex (X1) correspond to (Y1) and (X2) correspond to (Y2) (1) correspond to (10) and (10) correspond to (100) if i have 5 i need to become 50 its for a pressure sensor that sends mV and i have to put it in mbar thanks thanks it was a mathematical thing not programming, i had to know that so: m= (y2-y1) / (x2-x1) y = (m * (x-x1)) + y1 ...Show All

  • Audio and Video Development uncompressed YUV to EVR

    Hi, I am writing a simple YUV media source to take in .yuv bytestreams and send it to the EVR. I have modified the MFT_Grayscale to act as a dummy transform to copy the yuv samples to the EVR. I am also using the playbackFX sample for the player. I'm having a problem with the player just showing a black screen, as if no samples are being sent to the EVR. I have verified that the samples are being processed in the dummy transform with the correct image size and attributes for my given yuv sample. I have tried other yuv samples and all just display a black screen, but the samples are being processed for sure. Is there any way to debug this to see if the samples are being sent to the EVR Or does anyone have any clues why this is happeni ...Show All

  • Visual Basic FlexGrid

    In vb 2005 what is the equivalent of the old MSFlexGrid I need to present some tabular data to user i.e. 5 columns 50 rows etc and then return the item clicked on!!! Example on how to use it please!!! Thanks Mitch ...Show All

  • Windows Forms icons in target datagridview

    I have 3 source datagridviews, DGVSource1, DGVSource2, DGVSource3. Each is filled with items in a particular category. I have a target datagridview DGVTarget onto which selected items from the above will be dropped. I'd like DGVTarget's column1 to have distinct icons to show which DGVSource the item came from. How can I show one icon for each item (row) dropped from DGVSource1, a different icon for items from DGVSource2, DGVSource3. Do I use DataGridViewImageColumn Appreciate any help. Thanks. On page 51 of the DGV faqs under heading #6 How do I show icon and text in the same cell ... there is a public class TextAndImageColumn that I have added to my project. One has to add the following namesp ...Show All

  • Windows Forms How to Make Solution Explorer More Maneageble

    I'm in the process of converting a fairly extensive Access app to a Windows app and can see that there will be a couple of hundred classes of forms, datasets, reports, etc. That's a lot of scrolling, Is there a way to group classes in some way in the solution explorer such that, for example, all form classes ar in a collapsable tree Also, I am thinking of breaking it into different projects so that I do not have to recompile the whole thing every time I do a test run. Does anyone know of a good site on the web, or have any advice on these topics. Many thanks, Mike Thomas You can organize your project by creating folders. Right-click the project and choose Add + New Folder. You can move stuff into a folde ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Keeping game graphics the same size over different resolutions

    I implemented a virtual pixel system in Buttermilk to try and keep all the graphics of a game the same size no matter what the preferred back buffer resolution was. Unfortunately, due to accuracy problems with SpriteBatch.Draw's int-based coordinate parameters, cracks keep appearing between my tiles, and tiles sizes shrink / grow depending on how the float coordinate value of the tile translates to the int-based coordinate parameters. I've tried all different kinds of Math routines (Floor on the pos, Ceiling on the Size, Round on everything, etc etc etc) but nothing work as well as it needs to. So, I'm probably going to completely abandon the virtual pixel system. It's just not working at all. But, I still need some way to keep game ...Show All

©2008 Software Development Network