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

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

shafiqm

Member List

Antistar
mihooper1
Rajiv Roopan
Sandeep A
tore-
EricBrown
Photab
project2n5e0o1
MShetty
Alex-MyRpg
Aerouk
MyoZaw
Samer Selo
AdrianWoods
Robin E Davies
rene schrieken
flash.tato
Airan
Quilnux
matthew_arena
Only Title

shafiqm's Q&A profile

  • Windows Forms 2 DataGridView Questions

    1. I am binding my data grid view to the results of a stored procedure. The user can then modify the data in the datagridview. (Add, remove, update). I want to display the updates in the data grid view as they are made but only commit the changes to the database when the user presses a save button. What is the best way to do this 2. My data is stored in the database in UTC time. How can I force the data to be displayed in the datagridview in local time. Thanks in advance. it shouldnt be appending it if you cleared the table. Have you tried stepping through the debugger to see if the if statement does get executed An alternative maybe to remove the table and create a new datatable named "Events&q ...Show All

  • Visual Studio 2008 (Pre-release) Security Permission exception while using Bitmap Effect

    Hi, I have a browser application (XBAP) in which I want to use BitmapEffects. Since BitmapEffects are not allowed in partial trust applications, I have moved the BitmapEffect code to a different assembly (having strong name, present in GAC and having full rights). In this assembly, I have written code to override the default security settings (using Assert - UIPermission). But still when my browser application calls this assembly and it uses BitmapEffect, I get the same security exception. The assembly method code is given below: public BitmapEffect GetEffectForButton() { System.Security.PermissionSet permset = new System.Security.PermissionSet(System.Security.Permissions.PermissionState.Unrestricted); permset.AddP ...Show All

  • Smart Device Development a strange problem,please help me!!

    My .net is vs2003,the version of netframework is 1.1.4322 recently I began to program in intelligent device,using c# on pocket pc 2002 simulator.but file operations always have problems,for example: private void button2_Click(object sender, System.EventArgs e) { StreamWriter SW; SW=File.CreateText("c:\\shiyan.txt"); SW.WriteLine("123"); SW.WriteLine("345"); SW.Close(); } unhandled exception: System.IO.DirectoryNotFoundException: but this code run well in pure windows programs.Only in simulator can it have such problems.the file tpye of my harddisc is fat32. another question is: MessageBox.Show(this, "保存成功!", "tips",MessageBoxButtons.OK,MessageBoxIcon.Question, Messag ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. IUpdateable and IDrawable interfaces

    Hi Should I use IUpdateable, IDrawable interfaces for my game components, because in the Spacewar starterkit the class screen do not use this interfaces and the draw methode has no gameTime parameter I implemented my classes with this interfaces so far, but I not realy need UpdateOrder or DrawOrder or VisibleChanged events. Am I on the right way so far Greets aruss Sorry for my english, if something wrong Thanks for answers   I am currently writing my own sprite framework for tile based game, do this just educational. but I get hooked on game development, specially with XNA ^^ ...Show All

  • Visual Studio Team System Replication in Team foundation server

    Hi all, I'm working with team foundation server right now. I wanted to know more details on the features available in TFS. My queries are as follows: Is replication possible in TFS If yes, which type of replication is supported and how do we configure the TFS for replication What are the step for doing the configuration and how do we go about doing the replication(I mean the process of doing that in TFS) What are the feature of TFS which can be used for remote access from outside the LAN How do we configure TFS for remote access I came across some article that it's done through HTTP. Is it possible to use secure HTTP What's the purpose keeping shelving option in TFS The process template available in TFS are MCF and the Ag ...Show All

  • Visual Studio Express Editions ActivX

    <h1>Can anyone tell me how to make an activex control in Visual Basic without the template </h> You can make a windows control with creating a class library project and having the class inherit from usercontrol. There is an example control on the vb-tips website . ...Show All

  • Visual C# Emnedde Flash File and change Dynamically

    Hello, I am using VS2003, i want to add flash file and change it dynamically in Webform How can i do that, can any one help me. Regards, YP ...Show All

  • Visual Studio Express Editions Is this function ok

    Hello, Is this the most efficient way to write the function below Regards, Ken Friend Class form1 Dim A As Boolean Public Function Inpt_State( ByVal A1) If A = True Then A = False Return A Exit Function End If If A = False Then A = True Return A Exit Function End If Return A End Function Public Sub PictureBox1_MouseDown( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown Dim x As Integer = e.X Dim y As Integer = e.Y If x > 0 And x < 20 An ...Show All

  • Windows Forms Print coordinates origin

    Hi, I am developing an application that requires very accurate printing. I have two questions: 1) Is the print coordinates origin (i.e. the top left corner of the graphics object) located at the top left of the printer's printable area (as opposed to the top left of the page) Do HardMarginX and HardMarginY represent the top left of the printable area (assuming that OriginAtMargins is false) 2) If the print origin is indeed offset (which appears to be the case), can I configure the PrintPreviewDialog to use the same offset My problem is that if I offset my print coordinates to take into account that the origin is not at the top left of the paper then the print preview is off. It appears that the graphics object in the PrintPreviewD ...Show All

  • Visual C# Setup Creation Problem 'donetfx publisher not verified'

    I want to create a setup, and include dotnetfx as part of my application and when any system need dotnexfx then it is installed otherwise just my application be installed, for that i practised alot but faced a problem which is when i am creating setup or publising my application and Including prerequests (windows Installer and dotnetfx) during installation of dotnetfx i am encountring an error which is "the publisher of dotnetfx is not verified ", what i to do that setup dont give these type of errors and my setup do not download prerequest from vendor website thanks I guess you could add the redistributional pack in the installer, create a custom action and then install it via the switches to make it automated. ...Show All

  • .NET Development .net runtime 2.0 error reporting

    I'm getting a runtime error on a window's service that I wrote to handle querying and updating a SQL database. I use system.data.oledbcommands to accomplish this, and I have no idea how to research the cause of this runtime error. Where should I post the error message to get some help Thanks! Ok, here is the error: Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 5000 Date: 11/1/2006 Time: 10:09:41 AM User: N/A Computer: VALOPS29 Description: EventType clr20r3, P1 fmseng3service.exe, P2 1.0.0.0, P3 4540f22a, P4 system.data, P5 2.0.0.0, P6 4333aea2, P7 1c8f, P8 1cd, P9 system.data.oledb.oledbexception, P10 NIL. For more information, see Help and Supp ...Show All

  • Visual Basic Vs2005 Project Corrupted on Microsoft update with Vista RTM

    Vista Ultimate - RTM (English) - VS2005 SP1 Team Suite (English) I have a project I've been working on for about 19 months. It's very near completion. I had the project open today when the system went down for a Microsoft Update. I store all of my control images in an imagelist. Tonight when I brought Vs2005 up to work on the project, all of the images displayed in controls including treeview nodes are displaying the wrong image. Control image display has been a stable condition for the last 19 months. The imagelist container is in Form1. The entire solution has been stored in VSS over the nineteen months. The images are added to controls both through form property sheets and dynamically through imagelist images and in both mo ...Show All

  • .NET Development Easy way making two programs connect together over internet.

    Subject says it all. What is the easiest way to make two programs connect together over internet. My plan is to make two programs "talk" together over the internet. So, how Still dont get it! Can someone please help me post some code for creation of sockets or something. Cause its just confusing! vb6.0 was so easy, why would 2005 express be so hard ...Show All

  • Windows Forms Storing custom class in Application Settings

    I would like to store a class defined by me in the "windows from application settings". This is not easy to do, but it seems to work, mostly: 1) Open Settings.settings with the Settings Designer. Because the dropdown list doesn't allow me to chose my own class, I just use a property of type string. Close the Settings Designer and save the changes. 2) Open Settings.settings with a text editor. Change the type to my class. save the change. 3) Open Settings.settings with the Settings Designer. A property wiht my the type of my class is displayed. Nice :-) From my code, I can create a new instance of my class and assign it to the application settings, save them and read them again. This works for all fields in my class wh ...Show All

  • .NET Development [SSL] "Context.Request.ClientCertificate" gives the ServerCertificate!? -> .net Framework 1.1

    Hi there, I am running a simple WebService. I got Testcertificates a CA - Certificate, a ServerCertificate and a ClientCertificate. I "install" all 3 Certificates. I attach the server-Certificate to the WebService via IIS Manager. I enforce the Webservice to require SSL via the IIS Manager. (Is there a way to set this in the code of the webservice .asmx or other file ) Everything works fine, but i have a Problem accessing the ClientCertificate in the Webservice. For some reason I want the CommonName from the Client Certificate. In the Client Application I load the Client Certificate: CertificateStore certstore = CertificateStore.CreateFromPfxFile(certificatefilepath,certificatepw); Certificate[] certs = certstore.EnumCe ...Show All

©2008 Software Development Network