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

Software Development Network >> Malik Faisal's Q&A profile

Malik Faisal

Member List

Kevin Jacobson
R. Muti
Closer
Erleperle
Rahul Singla
rs12345
RPKJBP
Itzhak
Nick Winters
Furtive Networks
Nathaniel Chan
trumpy81
Jabber
fulish1
FrankChen
IgorV
Moorpark
nzmike
2162
Narendran
Only Title

Malik Faisal's Q&A profile

  • Visual Studio 2008 (Pre-release) RichTextBox save to string

    Hi, I want to save the content of the a RichTextBox to a string, in the DataFormats .Rtf. This is an example a saw, but it doesn't help me to save in a string. TextRange sourceDocument = new TextRange (richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); MemoryStream stream = new MemoryStream (); sourceDocument.Save(stream, DataFormats .Rtf); cmnjgfj C C call stream.Seek (0, SeekOrigin.Begin) after you call sourceDocument.Save(). TextRange sourceDocument = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); using (MemoryStream stream = new MemoryStream()) { sourceDocument.Save ...Show All

  • Visual Basic Building a defragmentation tool with VB?

    Hello :) I want to train my VB and had this great idea for a small defragmentation tool with Visual Studio 2005. Only problem is, is there any "easy" way to defrag hard disks with VB code I wouldn't have a clue about where I should start looking.. (if it's possible at all) So if anyone would have any lead as to where I should start looking/learning, thank you very much! Greatly appreciated, Steven Its sounds like you are an ideas person - but lacking in the skills to achieve the result. I would probably steer away from this as a project for starting out - as disk defragging is something that to make a positive benefit requires some serious understanding of how the files are orgnaized and read ...Show All

  • Smart Device Development How to get ProductName, ProductVersion...

    I would like to know how do i get ProductName, ProductVersion in .NET CF because the way i used in .Net Framework for desktops (Application.ProductName) doesn't work in here. Thanks Solved! If anyone need it, it's here: // Title System.Reflection.AssemblyTitleAttribute title = (System.Reflection.AssemblyTitleAttribute) Attribute.GetCustomAttribute( System.Reflection.Assembly.GetExecutingAssembly(), typeof(System.Reflection.AssemblyTitleAttribute)); // Company System.Reflection.AssemblyCompanyAttribute company = (System.Reflection.AssemblyCompanyAttribute) Attribute.GetCustomAttribute( System.Reflection.Assembly.GetExecutingAssembly(), typeof(Sy ...Show All

  • SQL Server Sql 2005: Encrypting "data in motion" between client and server

    Right-clicking "Protocols for MSSQLSERVER" under the Sql 2005 Server Configuration Manager I find the "Force Encryption" option. Right-clicking the SQL Native Client Configuration, Client Protocols, I find "Force Protocol Encryption" I believe these can be used together to force the connection between a client (running the SQLNC client) and a sql 2005 server to be encrypted. In other words, the data "in motion" can be encrypted. 1. Is my understanding correct 2. Do I need to use a certificate to make this work TIA, Barkingdog Raul, Thanks for the info and I will read the articles. I was talking to ...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

  • Smart Device Development serial port

    Hi, Im trying to make a program to communicate with something that is connected with the serial port. The device i wanna connect to the serial port knows several commands. So basically there needs to be a simple connection with the port so that i can put commands in the console and the device reply's me and sets its output on the console. So far i got this: static SerialPort serialPort; public static void Main() { serialPort = new SerialPort("COM1", 19200, Parity.None, 8, StopBits.One); } I hope someone could help me a bit. Thanks in advance! You should configure serial port as needed, Open() it and then call Read*() methods to receive and Write*() methods to send data. You can also su ...Show All

  • Visual Basic Upgrading from VS.NET 2003 to VS2005

    Hi all, i am currently in the process of upgrading a large scale VB.NET application from VS.NET 2003 to VS2005. I converted the code successfully and it is working fine. However, the issue i am having now is that there is so much new stuff, i.e. controls, features, etc., in VS2005 that i feel overwhelmed. I don't know how to go about taking advantage of all the new controls. Has anybody gone through the same problem and if so what did you do Any general advice on upgrading from 2003 to 2005 Thanks. I would say that dont try and change everything at once - a sure fire way to cause headaches. Start introducing new features as you need them when you start developing new functionality. Much o ...Show All

  • Visual C# Mouse Wheel Won't Scroll

    I have a Microsoft Comfort Optical Mouse 3000 which works great with every application except Visual Studio 2005. I have to spin the mouse wheel at a very high rate to get any scrolling at all in VS2005. I have the latest Vista drivers installed. There are some known issues with the Microsoft Comfort Optical Mouse 3000 in Windows Vista, an unofficial workaround you can try is the following: Install the Vista IntelliPoint software: http://www.microsoft.com/hardware/windowsvista/support/intellipoint.mspx or Click on the Start Button Start typing Device Manager Open Device Manager Disable the HID Compliant Consumer Control Device ...Show All

  • Visual C++ Need info regarding how to print unicode characters using VC++

    Hi, I need info regarding how to print unicode characters using VC++ Regards, Nishant Sharma For those that are concerned, this question is also in the VC Language forum at Need info regarding how to print unicode characters using VC++ . ...Show All

  • Visual C++ linker cache?

    When compiling a project does the linker cache what librarys it found certian object in If so how do I reset this, I can not seem to get the linker to stop looking for a library that no longer exists. There's an .ilk file in your Debug folder to support incremental linking. That's probably not it though. Check your Additional Dependencies settings (Linker, Input). You might also have compiled a source code file that contained a #pragma comment(lib, "blabla.lib") statement. Or you're linking a .lib file that has such a reference. If you can't figure it out, you can always use the undocumented /DISALLOWLIB:blabla.lib command line option... ...Show All

  • Windows Forms Why am I getting double events?

    I have a question that I desperately need some insight into. I have a listview in a form and when I click it sometimes the 'SelectedIndexChanged' Event gets fired once, and sometimes twice. Why This pseudo-randomness is messing up my desired result. When it fires twice the code runs both times which is 1) redundant and 2) the results for the first time have faulty information(i.e. when fired twice the SelectedItems.Count =0 and the second time it =1). I have a theory that it has something to do with entering or leaving other controls in the form but I've been testing and can't get to the bottom and its becoming a nasty web. Can someone please help Any help would be appreciated, Thanks. Been a while sin ...Show All

  • Smart Device Development Create Emulator

    Hi all. How can i create my own emulator by VS 2005 in my project and us it.(for example create window in my emulator). thankc Gerge wrote: Mohit Gogia in VS 2005 when you create projec and run it .it rans his own device.and i want create project and ran but where i can run my device emulator and do with it what i want.For example carete windows in my devace. thank. if you have the smartphone SDK and/or pocket PC SDK installed, it will offer you the option to deploy your project to emulator in VS2005. ...Show All

  • Visual Studio Tools for Office ListObject binding

    I am using a listobject in vsto excel. it is bound to a collection. when it displaying more than 1 row and than the collection becomes 1 item after setting the binding the listobject shows 2 rows the second 1 is empty. eventhough the datasource has 1 item the listobject shows 2 rows. can any1 help pls I tried to repro the error, but I could not. For me, when the datatable gets reduced to 1 item, the listobject correctly resizes to just 1 item. Could you please share more details of the scenario Thanks, Nikhil ...Show All

  • Visual Studio Express Editions TextBox Question

    Is there a way to only allow integers to be entered into a textbox I would think that this would have to be checked after the data is entered. Please advise. yes there is. you can use the keypress event on the textbox then do the checking, if its not a numeric character then handle it. Example: 'textbox keypress event if Char.IsNumber(e.KeyChar) = false then e.Handled = true end if ...Show All

  • .NET Development Creating Virtual Directory and App Pool

    Could anyone point me to some sample C# code that demonstrates how to create a virtual directory, app pool, associates app pool with the virtual directory etc. If this isn't the correct forum for this question, please let me know what would be more suitable. Thanks very much. Take a look at this http://www.codeproject.com/csharp/VirtualDirectoryCreation.asp http://www.dotnetjunkies.com/WebLog/ramdash/archive/2004/08/11/21735.aspx how about this code: //Create a virtual directory System.EnterpriseServices.Internal.IISVirtualRoot vr = new System.EnterpriseServices.Internal.IISVirtualRoot(); string sError; vr.Create("IIS://localhost/W3SVC/1/Root",@"C:\Demos\WebServices\","WebS ...Show All

©2008 Software Development Network