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

Software Development Network >> Umair-Shahzad's Q&A profile

Umair-Shahzad

Member List

sanwanas
Israel Brewster
canadian_coder
chriserin
slickred
TTris
benchmarkman
LucLuc
ESTAN
Oana
Saravanakumars38
scottsignalscape
GuyFawkes
GMS0012
Davids Learning
Danny Tuppeny
Paul Diston
jamil
Adam Toth
Torbjorn
Only Title

Umair-Shahzad's Q&A profile

  • Smart Device Development Connecting to a Pocket PC database (ie: contacts in pocket outlook)

    How can I connect to a database file on the Pocket PC I am trying to extract contact data from the native application on my Pocket PC, which I believe is called "Pocket Outlook." I've searched for information on this, and everything either points me to using some other database (like SQL Server CE), or to using ActiveSync to sync the Pocket PC with Outlook on a desktop. Is there any way to connect directly to the native database on a handheld device from a desktop application I'd like to do it through C#. Any help (even a simple connection string) would be greatly appreciated. POOM is the way to go. It's not exactly a database though so no connection strings. WM 5.0 has Microsoft ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. this.IsMouseVisible = true;

    Is there anyway to change what *.cur is used I didn't see anything but I may be over looking it. I also tried making a GameComponent, using a sprite as the mouse cursor and this allows me to change the texture when needed. I ran into a problem with this also. When the mouse leaves the GameWindow the Texture stays there and it appears to have two cursors on the screen. You could set rules that if mouse > screenWidth don't draw but if you move the mouse with anytype of speed it never updates. To work around that I set: Mouse .IsCaptured = true ; Which works great. Till the GameWindow loses Focus. Once the Focus is lost the cursor does not act the same. IE: Prior to losing focus, cursor will go UNDER the top blue windowbar (where ...Show All

  • Visual Studio 2008 (Pre-release) Unable to populate WPF Extender Control correctly....

    I have populated a observableCollection with some information... I have checked this information while debugging and it is populated correctly. Then in the WPF application I have created an extender control and bound it to the observable collection: <Expander Width="Auto" Height="Auto" x:Name="Expander" Content="{Binding PhotoSets, Mode=Default, Source={StaticResource PhotoSetCollectionDS}}" ContentTemplate="{DynamicResource PhotoSetsTemplate1}" Header="Sets"/> The PhotoSetsTemplate1 is defined as follows: <DataTemplate x:Key="PhotoSetsTemplate"> <ListBox Name="PhotoSetsListBox"> <ListBox.ItemsPanel> <ItemsPanelTemp ...Show All

  • Windows Forms Webbrowser Help needed

    This Script i found on msdn site is meant to update the url in the textbox u put a url in to i got it to work in visual basic but it won't work in c# and its the right code  update: also the enter button when pressed is mean to take u to the url but dosen't work either. [code] // Navigates to the URL in the address box when // the ENTER key is pressed while the ToolStripTextBox has focus. private void txtURL_KeyDown( object sender, KeyEventArgs e) { if (e.KeyCode == Keys .Enter) { Navigate(txtURL.Text); } } // Navigates to the URL in the address box when // the Go button is clicked. private void cmdGo_Click( object sender, EventArgs e) { Navigate(txtURL.Text); ...Show All

  • Visual Basic Problems installing Visual Studio 6.0 on Vista Ultimate

    I can not get Visual Studio 6.0 to install on Vista Ultimate. I am running setup.exe as Administrator and I get an errors saying "iviewers.dll was unable to register itself in the system registry". I'll reply... no matter what I do, I'll right click on setup.exe on the CD of Visual Studio and chose "Run as administrator" and always wind up with "RegCreateKey failed for \Interface\OLEViewerIViewerCLSID. Access is denied" OK is the only option which is followed by "DLLREgisterServer Failure. Access is denied" There is but one user on this machine and I am a member of the administrators group. Interesting point to note, setup.exe is not running memory, ...Show All

  • Visual C# Component class, list of values to an attribute.

    I have a component class with say two attributes, fieldValue and fieldType. This is how my code looks like: private string fieldValue; public string FieldValue { get { return fieldValue; } set { fieldValue = value; } } public enum DataTypes { String, Integer } private DataTypes fieldType; public DataTypes fieldType { get { return fieldType; } set { fieldType = value; } } The thing is I want my enum to be of standard C# datatypes like string, Int32, long etc., but I m not able to do that. I want my users to select the fieldType from a drop down list and that should contain almost all the possible C# datatypes. How would I do that Thanks a lot !! I coul ...Show All

  • Visual Studio Express Editions [VB2005] Reading from serial port, pls help!

    Im currently working on serial port RS232 communication, im able to set configurations thru serial port to my device, but having problems reading from the port. Ive been advised that there're two ways of doing it, which include write the program so that the incoming data is stored inside certain file on computer and data can be extracted straight away from it..well another one, is extracting the data from the computer temporary memory.. but i have doubts regarding those methods and totally have no clue of performing the task, can someone please give me some guidelines of reading data from serial port thanks in advance! Watch out, you are calling ReadByte() twice in the loop, change it so you call it only ...Show All

  • Visual Basic Help - How can I runa VB program without runtimes installed

    Hi, I'm new here and I was wondering, is it possible for me to run a VB 2005 program using the Framework 2.0 on a computer without the runtime I want to do this because for a project I've decided to make a program but the computer I wnat to run it on and show teh class does not have the necessary runtimes installed. If I'm running it off a USB Flash Drive is it possible for me to do something such as install the runtimes to my USB Flash Drive and have the program use the files from the Flash Drive As you know, this is a school so I'm not allowed to install any software and this is the reason I ask this question. Thanks. spotty wrote: Simply create your application and use a click once deployment ...Show All

  • Visual Basic select method:I don't understand what is .select(1,0) 1? 0? select?

    Private Sub mnuOpenItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuOpenItem.Click Dim AllText, LineOfText As String OpenFileDialog1.Filter = "Text files (*.TXT)|*.TXT" OpenFileDialog1.ShowDialog() 'display Open dialog box If OpenFileDialog1.FileName <> "" Then Try 'open file and trap any errors using handler FileOpen(1, OpenFileDialog1.FileName, OpenMode.Input) Do Until EOF(1) 'read lines from file LineOfText = LineInput(1) 'add each line to the AllText variable AllText = AllText & LineOfText & vbCrLf Loop lblNote.Text = OpenFileDialog1.FileName 'update label txtNote.Text = AllText ' ...Show All

  • Visual Studio Team System XMLSPY and TFS

    Hello Everyone, We are considering making the leap to TFS, but we have designers and XSLT developers who must be able to connect to TFS source control. They use Dreamweaver and XMLSpy respectively and do not have Visual Studio installed. How can we support them Is there a separate client like there was with SourceSafe that they can use Thank you in advance, Ryan G. We have a MSSCCI provider that should work if those apps support the MSSCCI plug-in model (it sounds like they do if there was SourceSafe support). http://www.microsoft.com/downloads/details.aspx FamilyId=87E1FFBD-A484-4C3A-8776-D560AB1E6198&displaylang=en If you have any issues with it, you can post them in this forum. ...Show All

  • Internet Explorer Development HTML Applications(.htas) and Cross Domain Scripting...

    Hello, I am trying to debug one of my HTML Applications that stopped working all of the sudden. Let me tell you the problem. Features in my application depend on cross domain scripting. For those of you that don't know, an example of cross domain scripting is when you access data from another domain using javascript, the DOM and probably an IFRAME or FRAMESET. Well, my application used to work and now it doesn't. The example that I will provide below uses the same technique that I used in my application and I swear it worked before I upgraded from IE 5 to 6! Copy the code below to an .hta file and execute it. The application asks for an URL. Type in your favorite URL and click the 'go' button. Then, using the left button of the mouse ...Show All

  • Visual Studio 2008 (Pre-release) Canvas KeyDown event

    I can't able to get the keyword events of the canvas.... Any help would be appreciated. Thanks in advance Cheers, G You need to have an element that can accept keyboard input within your Canvas for the KeyDown event to occur. I'm able to get the KeyDown event to fire by doing the following: private void CreateAndShowMainWindow() { Canvas myCanvas = new Canvas(); myCanvas.KeyDown += new System.Windows.Input.KeyEventHandler(myCanvas_KeyDown); TextBox myTextBox = new TextBox(); myTextBox.Width = 100; Canvas.SetTop(myTextBox, 300); Canvas.SetLeft(myTextBox, 25); myCanvas.Children.Add(myTextBox); } void myCanvas_KeyDown(object sender, System.Windows.Input.KeyEventArgs e) { MessageBox.Show("keydown ...Show All

  • Software Development for Windows Vista Workflow not Persisted

    Dear all, I have a StateMachine like this: State1 ----- Event Driven ----------HandleExternalEvent ----------SetState (to state2) State 2 ----- Event Driven ----------HandleExternalEvent ----------SetState (to state3) State 3 ----- Event Driven ----------HandleExternalEvent ----------SetState (to state4) State 4 (Final State) And my host application do this: 1) Implemented the SQLPersistenceService (no tracking yet), set unloadonidled to 5 seconds. Added Handler for both workflow idle and persisted events. 2) The use click a button to raise an event to start a new workflow instance (State 1). By default, State1 will prompt an alert then goto State2 (become idle). The host actually unlo ...Show All

  • SQL Server Deployment to one Database 'Clearing' Another...

    Hi, We have a setup whereby our production server builds to a build cube overnight, and if and when this completes successfully, and passes sanity checks, it automatically backs up and restores the cube over the top of a 'live cube'. This seemed like a fair enough plan - it allows developers to deploy to the production server without breaking the production-live cube, however, we have noticed that deploying to the build cube database sometimes results in the clearing out of the production cube database (much to the users' dismay!). Anyone else seen anything similar, or have any ideas as to what the problem could be Thanks, Will. You are right. You cannot synch from one database to another o ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. More questions about multisampling

    I'm quite confused on how multisampling works. From what I understand, 1/ multisample is usefull only when a texture is binded to the Output Merger (as RenderTarget or DepthStencil), and useless when used only as an input (but multisampled resources can be read in a shader). 2/ multisample is activated only when the rasterizer state MultisampleEnable is true, and number of samples used is the one precised in the RenderTargetView/DepthStencilView (which must be all be equal). 3/ when a resource is declared with multisample, its size is the size of the same resource without multisample times the number of samples. This leads me to some questions: a/ how and where the final result is build (resolved) (RenderTarget by averaging in sample ...Show All

©2008 Software Development Network