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

Software Development Network >> alpha202ej's Q&A profile

alpha202ej

Member List

el-chema
DKB
lxiao
Nick Darnell
l Bllizzd l
PerPixel
Wil Burton
NewbieDude
Santosh Ransubhe
-Antilles-
fiaolle
sawer
Tatworth
GOsborn
Winkling
SOAC
kaborka
My Vizai
lucerias
rbedard
Only Title

alpha202ej's Q&A profile

  • Smart Device Development how to make a drawing area?

    hi I was wondering if anyone have a link to a tutorial or knows how to implement a drawing area, where the users can draw (or have drawn comments) on a particular area in the form, and then capture that area and save it to a file (Or database) I'm not sure if OpenNETCF can do it, if so what should I be using Thanks alot Thanks for your code. I was wondering if anyone has C# code for that I tried to convert your example into C# and I had trouble understanding what you mean by pDrawWindow I tried calling the invalidate method on both the form and the panel but nothing comes up. thanks     public partial class Form2 : Form     {         private ...Show All

  • .NET Development Retrieving a managed object instance id

    I've been trying to find a way to retrieve an object instance id or an object address from a managed object. Is this possible using managed code, using the 2.0 BCL Thanks, Paul. Hi Paul No, there is no way to get an object id using the BCL (in fact, there is no concept of an object id in .NET). If you really want the object address, you can pin it using a GCHandle and call AddrOfPinnedObject, but as was stated earlier in this thread, the GC can move objects about in memory if they're not pinned. Also, pinning objects is not recommended, since it can negatively affect the performance of your managed application. What are you trying to achieve here Perhaps there's another solution that doesn't invol ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Loading textures as an embedded resource

    I have been trying to get my textures to load from the assembly rather than disk but have come across a strange problem: When loaded from disk the image size is correct at 1280x720: backgroundTexture = Texture2D .FromFile(graphics.GraphicsDevice, "./Textures/twistBkg.png" ); When loaded from a resource stream it thinks the image is 1024x2048: System.Reflection. Assembly a = System.Reflection. Assembly .GetExecutingAssembly(); System.IO. Stream s = a.GetManifestResourceStream( "Textures.twistBkg.png" ); backgroundTexture = ( Texture2D ) Texture2D .FromFile(graphics.GraphicsDevice, s); Any ideas why/how to correct this This might be something to do with how ...Show All

  • Visual Studio Team System bissubscribing events

    1. on tfs server i have run: bissubscribe /eventType BuildCompletionEvent /address a@b /server tfs /filter "TeamProject='project'" /deliveryType EmailPlaintext 2. on VS2005 i run the build 3. the email notification received this is ok but if: 1. bissubscribe /eventType WorkItemChangedEvent /address a@b /server tfs /filter "TeamProject='project'" /deliveryType EmailPlaintext 2. on vs2005 add a new bug/task or change it 3. no email any suggestions RESOLVED I used: bissubscribe /eventType WorkItemChangedEvent /address a@b /server tfs /filter " PortfolioProject ='project'" /deliveryType EmailPlaintext "PortfolioProject" instead of "TeamProject" ...Show All

  • Visual Basic Rich-text box question

    Using a Rich-text box, how can I have no more than five lines of text appear inside the box, with the oldest lines being deleted from the top of the box and the newest lines being entered at the bottom of the box Thanks. Did you take a stab at this before asking how to do it Code as simple as: p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in;margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';} h4 {margin-top:12.0pt;margin-right:0in;margin-bottom:3.0pt;margin-left:0in;page-break-after:avoid;font-size:14.0pt;font-family:'Times New Roman';} p.StyleHeading310pt, li.StyleHeading310pt, div.StyleHeading310pt {margin-top:12.0pt;margin-right:0in;margin-bottom:3.0pt;mar ...Show All

  • .NET Development isolation level

    I am using .net and wish to use Com+ for transactional handling. I wish to know that if i wish to achieve optimistic concurrency in .net database transactions, which one of the isolcation level to use 1)readcommitted 2)readuncommited 3)repeatableread 4)serializable Also please let me know in which conditions should we use each of these isolation levels Hi Leohere, The online MSDN Library is your friend. It contains lots of helpful data ! Have a look at the different types of isolationlevel and choose the one which fits your specific needs the best. ...Show All

  • Visual Studio Express Editions using api in vb.net

    Hi, I am migrating an application from VB6 to VB.NET at the moment. There is a Windows API call in one of the subroutine which will not run through, see below (words in red are added by VB.NET): Private Sub hook() ' UPGRADE_WARNING: Add a delegate for AddressOf WindowProc Click for more:... lpPrevWndProc = SetWindowLong(gWH, GWL_WNDPROC, AddressOf WindowProc) End Sub my question is how can i add a delegate for windowProc how does a delegate work Thanks ShellExecuteEx(ShellExInfo) Have you tried upgrading the ShellExecuteEx method to the Process class...The process class allows io redirection and has a waitfor exit method to ensure that the process has completed before continuing in your co ...Show All

  • Software Development for Windows Vista Seeking problem with VMR9

    Filter graph consists of 2 source filters: 1. Source filter (which is used to playback AVI file) 2. Custom source filter (which implements CSourceSeeking, based on Seeking Ball example) - push model, ARGB32 subtype uncompressed images As a renderer i'm using VMR9 with 2 input pins, each one for one source filter, in windowless mode. The problem is when I seek (using IMediaSeeking interface obtained from FilterGraph), filter graph seeks only the AVI file, but not the my custom source filter. I've tried debugging and none of the seeking methods are called within my custom source filter. Thank you in advance! I'm not sure what I'm supposed to do to implement IMediaSeeking in source filter. My ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. "Use of unassigned local variable" error on Xbox360 but not Windows

    Anyone know why the compiler produces an error when the following code is compiled in an Xb0x360 project but not when it is compiled on a Windows project public void GetTileRect( int tileX, int tileY, out Rectangle tileRect) { Rectangle myRect; myRect.X = tileX * tileWidth; myRect.Y = tileY * tileHeight; myRect.Width = tileWidth; myRect.Height = tileHeight; tileRect = myRect; } I get a "Use of unassigned local variable 'myRect'" when assigning it to tileRect. It's not a big deal, I can get around it by simply using "myRect = new Rectangle()". I'm just wondering why it works in one case but not the other. the reason is because you're us ...Show All

  • Windows Forms PERSIST, DAMN YOU! >:(

    I'm trying to create a very simple Control that will host a collection of various objects. This is all the code amounts to: using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.ComponentModel.Design; using System.ComponentModel; using System.Drawing.Design; using System.ComponentModel.Design.Serialization; namespace Test { [TypeConverter(typeof(ItemTypeConverter<BaseItem>))] public class BaseItem { private string _itemName = ""; public string ItemName { get { return this._itemName; } set { this._itemName = value; } } } [TypeConverter(typeof(ItemTypeConverter<IntItem>))] public class IntItem : Bas ...Show All

  • SQL Server Books Online July 2006 issue

    The SQL Server Books Online was working installed on my workstation fine until this morning. Now when I open it up it does not show me T-SQL reference with all the commands and functions. Yesterday I was on the MSDN website using the Books Online. Could some pointers in the program been corrupted I have uninstalled and reinstalled Books Online to no avail. Please help. Thanks, Fred Hi Gail, Yes, the Contents tab is there. When I expand "SQL Server 2005 Books Online" entry in the Contents tab and then expand "SQL Server Language Reference" it shows only "Transact-SQL Reference". It used to show more. Then when I expand "Transact-SQL Reference" it only sh ...Show All

  • .NET Development Fire Page_Unload Event on a Button Click

    Hello Asp.net Guru's: I want to fire Page_unload Event on a button click.so it goes to the previous page.what Arguments i give for "Sender" and "e". why i can not use ' Me .cmdClose_Click' on page_unload I appreciate your response Remember that in ASP .NET you are dealing with two computers. The Server and the Client. The client is a web browser and the server is an Internet ASP server such as IIS. When events on the server are all all done, the user has not seen anything yet including buttons. It is very important to remember that the events on the Server-side, such as "Page_Load" and "Page_Unload" happen before the users sees the page at all. That means t ...Show All

  • SQL Server Say if one file exist?

    I tried File System Task component, it seems can not perform this task any ideas thanks Variety of ways to check for file existence. Two that come to mind 1. Use a WMI Data Reader Task with a WQL Query similar to the following the below. select name from cim_datafile where name='c:\\temp\\I_expect_this_file_to_be_here' 2. Use of File connection manager with a File Usage Type of "Existing File", set DelayValidation on the connection manager to true, and validate through a script task. Public Class ScriptMain Public Sub Main() Dts.TaskResult = Dts.Results.Success ' Use the File Connection Manager with delayed validation to get the expected filename Dim fileLocation ...Show All

  • .NET Development DataTable - Null Object Reference Error

    We have a Multithreaded application where frequent updates will be done to Datatables either by adding or deleting or updating rows. As a precaution we lock the datatable to avoid any errors, but even after applying the lock mechanism on the datatable and when we make use of the Find method of the Rows collection of the database , we are flooded with the Null Object reference error. Error structure as follow Object reference not set to an instance of an object. in System.Data -> at System.Data.DataTable.GetIndex(Int32[] indexDesc, DataViewRowState recordStates, IFilter rowFilter) at System.Data.DataTable.GetIndex(Int32[] indexDesc) at System.Data.DataTable.FindRow(DataKey key, Object[] values) at System.Data.DataTable. ...Show All

  • Visual Studio Team System Where does the "Assigned To" list come from?

    I would like to add some groups to the assigned to list. How can I do this It doesn't seem like I have access to this. Thanks, I also noticed that you need to remove the "Valid user" clause if you are using a "Allowed Value" list - such as a global list ...Show All

©2008 Software Development Network