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

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

ahmedWebDev

Member List

Rattlerr
Herru Perdana
Kris N
robhare
Rajwebdev
navrichard
PostMeridian
Taitt
Strini
Ieuan0928
RayCan
AlexBB
webbsk
Faraz_Ahmed
Rian Edwards
bharathi_tunes
BIG S
rectis
alanr
winprock
Only Title

ahmedWebDev's Q&A profile

  • Visual J# while causes Program to Stop

    static String ExtractFilePath(String Path) { String VirtualString = String.Copy(Path); int i = 0; while (VirtualString.IndexOf("\\") > 0) { i = i + VirtualString.IndexOf("\\"); VirtualString.Remove(1, VirtualString.IndexOf("\\")); } return Path.substring(1, i); } This code cause my program to "suspend". I don't get any Error returned. I hope someone sees the problem Thank you, DarkPressure What you want to do is System.IO.Path.GetFileName(String path). Addtionally, it contains the other logical error. Execute the following code to know String.Remove(int) and refer String.LastIndexOf() method. public static void main(Stri ...Show All

  • Visual Studio 2008 (Pre-release) how to get the datacontext of a dropdown in a gridview

    Hi, Just wanting to know how to get the "collection" that is used to populate "a combo box";(datacontext or itemssource); that is used in a grid view. I want the syntax in code . Thanks. comboBox.Items gives you access to many useful properties of that collection: comboBox.Items.Count comboBox.Items[3] More precisely, these properties are evaluated with respect to the collection view in effect; so if you've sorted and/or filtered the view, the count and the indexer will take the sorting and filtering into account. If the collection was set using ItemsSource, then comboBox.ItemsSource gives you the actual collection. You'll have to cast the result to the collection type you expect. ...Show All

  • SQL Server Problem installing SQL Express

    SQL Server 2005 Setup has detected incompatible components from beta versions of Visual Studio, .NET Framework, or SQL Server 2005. Use Add or Remove Programs to remove these components, and the run SQL Server 2005 Setup again. Loaded DLL:C:\WINDOWS\system32\msi.dll Version:3.1.4000.2435 Product "{2AFFFDD7-ED85-4A90-8C52-5DA9EBDC9B8F}" versioned 9.00.1187.07 is not compatible with current builds of SQL Server.Expected at least version: 9.00.1399.00 I used Add/Remove Progs and used the list in the order suggested to remove all beta versions of VB, SQL, .NET and etc. Nothing is listed. I do have VB6 PRO. I have looked for directories and removed all. I have searched for SQLexpress in the registry and eliminated all I co ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Binding resources to XNA executables?

    Hey Everyone, Is there a way to bind a resource to an XNA .exe, i.e. a bitmap, so the resource in question is "folded-into" the executable Any advice/help would be most appreciated. Thanks! Does the old way of using an "embedded" resource still work Thats how I did it: Create a content inside my solution (i.e /Textures/Image.dds) In the Box.X properties I select: Build Action: Embedded Resource In my code I do this: //meshMaterials .Specular = MatList .Material.Specular; s = assem.GetManifestResourceStream(AssName + ".Textures.Image .dds" ); meshTextures = new Texture (device, s); if that still works, I can use my old concept of ...Show All

  • Visual C++ Disassembling

    Hi all, I know how to do this: foo.cpp=====> foo.asm I want to do: foo.asm=====>foo.exe and: foo.exe======>foo.asm Can I do these by VS2005Pro IDE or its bundled softwares Or I need to get another software Ayman Shoukry - MSFT wrote: You can not do that directly. You will probably need to do manual modifications. Thanks, Ayman Shoukry VC++ Team Adding 0x to numbers and delete ending 'h's What else I don't know why these tools with same version from same company produce different formats. ...Show All

  • SQL Server Connect to SQL Server from ASP.Net application

    Hi I developped an ASP.Net application (with Web Dev Express ) wich attempt to connect to SQL Server Express (installed in the local machine) using Windows authentication.When i launch my application within Web Dev or from IE navigator i receive the following error message : Cannot open the database 'MyDB' login failed for user ServerName\ASPNet.I use SQL Server Management Studio Express to give the user ServerName\AspNet permission to connet to the database but i still receive the same error message.I created a user with strong password within Management Studio with connect permission and attempt to connect from my application using SQL Server authentication i receive the error message : The user 'UserName' is not associated with a tr ...Show All

  • Windows Forms Form Security

    Whats the best way so I can make privilages/form to user in my application meaning: disable buttons for specific users, hide menu Items, disabling context menus Whts the best way to do this I want to be far a way from if conditions, so if I can set privalages from one place any Ideas Thank you well you would need if conditions otherwise there wouldnt be a way of doing so. I guess you check the login type of user, if they are of a certain group/member/user then disable the items you want, else, enable them all. That's all you need really just a single if statement perhaps, to check the type of user and if they are not of the user you are wanting to give full permissions, then disa ...Show All

  • Visual Studio Express Editions Should I learn to program?

    I am interested in programming, but I am a beginner. Basically I am curious as to the advantages of being able to program for someone who may not want to do it for a living. Warning! The Other Side of Programming... Okay - so here's a few thoughts for you to consider from an ol' programmer (started back in the grand ol' year of 1980 Programming won't let you 'keep' it as a mere acquainance. It will demand more and more of your life if you like it. If you don't you'll never have a break-through moment when all the bits come together. You will find yourself walking through life trying to live life in a logical and yes, ordered pattern. Boolean logic will corrupt your very way of life. Everything ...Show All

  • Visual Studio 2008 (Pre-release) uploading powerpoint file on the server.

    Hi, I am developing an application wherein i need to upload the powerpoint file(which is provided by the user) on my server.Can anyone please help me out to resolve this issue Hi Ashish, I have used openfiledialog and I vcan run my application successively.But when I publish my project and then run,I am getting Access Denied for selected file .So can you tell me how to write absolute path so that I can't get this type of error. ...Show All

  • .NET Development Reading SerialPort (with .Net 2.0)

    Hello, My robot sends me serial messages (packages) starting with a STX (0x02) character and ending with and EOT (0x04) character. Messages may have variable lenghts and within messages (except from first/last character) no other STX (0x02) or EOT (0x04) characters exists. My robot can send multiple messages at any time. How do I configure my SerialPort to extract individual messages from incoming data I was thinking of setting the 'SerialPort.NewLine' character to EOT (0x04) and use the 'SerialPort.ReadLine' for reading complete messages. But how can I make SerialPort execute an event if an EOT (0x04) character is received All tips are welcome. Henk The SerialPort ...Show All

  • Windows Forms Gridview xmldatasource problem

    when I use xml datasource with datalist there is no problem but with gridview problem occurs.first link code with gridview http://img96.imageshack.us/img96/6128/1hn9.jpg second datalist : http://img134.imageshack.us/img134/6587/4rt2.jpg gridview error: http://img181.imageshack.us/img181/287/3wz1.jpg xml datasource: http://img134.imageshack.us/img134/95/2qs5.jpg This forum is for windows forms questions could you please ask this in the asp.net forums. ...Show All

  • .NET Development Only Updated Fileds

    Hi all   i need to locate only fileds the user was updated in datatable thank's BR you need to explain a lot more than that. are you talking about a dataset/datatable if so then use the GetChanges() from the dataset, which will return you the changes the user made DataSet theChanges = theDataSet.GetChanges(); this will give you back a dataset containing the changes the user made. if no changes are found then it will return null (nothing in VB.NET). I believe the changes, if any, will be stored in the datatable of the dataset (first datatable) ...Show All

  • .NET Development How-To (Object Class => Binary Serialization => To Memory => Encrypt => Save to File)

    Hi Every body .... I have a [Serializable] Class like this ======================================================== [Serializable] class Customer { private string _CustomerName; private string _Country; public string CustomerName { get { return this._CustomerName; } set { this._CustomerName = value; } } public string Country { get { return this._Country; } set { this._Country = value; } } } ======================================================== How can i use Binary Serialization to serialize the object class temprary to Memory and Encrypt it and then save the encrypted to file. Like this 1. Object Class => Binary Serialization => To Memory => Encrypt => Save to File 2. Read file => To Memor ...Show All

  • SQL Server database mirroring.

    Hi All, I am researching database mirroring in sql server 2005. I came across in multiple places the following paragraph... " Microsoft support policies do not apply to the database mirroring feature in SQL Server 2005. Database mirroring is currently disabled by default, but may be enabled for evaluation purposes only by using trace flag 1400 as a startup parameter. (For more information about trace flags, see Trace Flags (Transact-SQL).) Database mirroring should not be used in production environments , and Microsoft support services will not support databases or applications that use database mirroring. Database mirroring documentation is included in SQL Server 2005 for evaluation purposes only, and the Documentati ...Show All

  • Windows Forms Placing Shortcut That Can Be Accessed by All Users

    Hi ! I have created a Setup and Deployment project to install my application. I have a help file that I deploy into the Application folder which is under 'Program Files' folder and I place a shortcut to it in the User's Program Menu under a folder. The installation is done by the Administrator and the application is installed for 'ALL USERS'. Everything else is fine but when some other user logs on to the system and tries to access the help file from the User's Menu by accessing the shortcut, the help file does not open. Instead the application begins to reinstall somehow from the original location. I would like the help file to be accessible to all users. I know there is an option to use 'Custom Folder' during setup in the 'File Sys ...Show All

©2008 Software Development Network