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

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

cngzhnmrl

Member List

CharlesV
MartinMalek
Parham!
manick312938
bigove
Flame Thrower
Pete K
kshill
fspilot2006
Davidxin
jameyer
buladbanaw
Focus
Dmitry N. Oleshko
LKNikko
KerryLW
Ricardo Tomé
Chris Lovett
BIGuy
NeW2VB
Only Title

cngzhnmrl's Q&A profile

  • Smart Device Development Getting a list of SMS Messages in the SMS Folder

    Hi There Does anybody know how to get the SMS Messages stored on my mobile device I am using the Windows Mobile 5.0 sdk and i cant get the SMS Messages stored on the phone in the inbox of my sms account! Im working in c# .NET 2005 Thanks Dear ,friend have got the solution for Getting a list of SMS Messages in the SMS Folder , i also searcing for same solution ,if u have please suggest. Thanks Kirann. ...Show All

  • .NET Development Return XML Document using a DataSet?

    I have a question about returning an XmlDocument using a Dataset. I seem to be having problems converting it. For eg: public XmlDocument displayXml() { // coding for the DB connection DataSet ds = new DataSet(); ds = generateDataSet(); // another function that returns a dataset; //returns ds after my required process XmlDocument xd = new XmlDocument(); return xd.LoadXml(ds.GetXml()); } This code returns an error: Cannot implicitly convert type 'void' to System.Xml.XmlDocument Please let me know as to where I am going wrong and also if there is a better way to do it You'll need to make a slight modification to the end of the function (XmlDocument.Load ...Show All

  • .NET Development parameterized query performance/speed issue

    Hello all, I am running a query on a SQL 2000 table with roughly 50 million phone numbers stored in varchar format. I am converting from an old asp page to asp.net and have run into an interesting issue. The old asp page had a query similar to the following, with varPhone always representing a string variable. "SELECT * FROM dbo.AllNumbers WHERE Phone='" & varPhone & "'" This query ran in under 1 second. When converting to asp.net I decided to take advantage of parameterized queries and used the following: "SELECT * FROM AllNumbers WHERE Phone=@Phone " Using a parameter coded as follows: dbCMD.Parameters.AddWithValue("@Phone", varPhone) This query took 7 seconds to finish. ...Show All

  • Internet Explorer Development BeforeNavigate2 has wrong PostData in case you upload file.

    I noticed that PostData in BeforeNavigate2 is incorrect in case Post contains file. Here is an example: If I post this form <form name="" method="post" action="print-post.php" enctype="multipart/form-data"> <textarea name="textarea" rows="20" cols="9"></textarea> <input type="file" name="file" > <input type="text" name="text" value="" class="edit"> <input type="submit" name="submit"> </form> Then I'm getting this PostData in BeforeNavigate2: -----------------------------7d74e33100244 Content-Disposition: form-data; name="textarea" ------ ...Show All

  • .NET Development How do I copy a ColorPalette

    Hello, I need to create a copy of a ColorPalette. ColorPalette tmp1 = myPictureBox.Image.Palette; The problem is the line above does only crate a reference. Changes to temp1 apply to the original palette as well, which is not what I need. ColorPalette tmp2 = (ColorPalette) myPictureBox.Image.Palette.MemberwiseClone(); The problem is the line above does not compile. What is wrong The constructors for the ColorPalette class are hidden. That means you can't create your own instance. The only workaround I can think of is to copy the image into a Bitmap. ...Show All

  • Software Development for Windows Vista Hosting the workflow runtime

    I'm having a problem when hosting the workflow in the application. Basically I have a class called WorkflowRuntimeHost: public class WorkflowRuntimeHost { private static object sync = new object(); private static string runtimeIdentifier = "WorkflowRuntime"; public static WorkflowRuntime Runtime { get { object oWorkflowRuntime = HttpContext.Current.Application[runtimeIdentifier]; WorkflowRuntime workflowRuntime = null; if (oWorkflowRuntime == null) { lock (sync) { workflowRuntime = new WorkflowRuntime(runtimeIdentifier); EventLog applicationLog = new EventLog("Application"); applicationLog ...Show All

  • SQL Server Iterating the rows of a script component

    Hi There, Can someone please let me know what is the best way to iterate the output rows of a script component and stick in those ids in a where clause of a select query (to retrieve additional info from a database) Is this possible at all If not, what is the best way to deal with this situation Thanks a lot!! Jamie, Thanks a lot for your reply. I think I am almost there...So I have one one column in the recordset. Is this what I should do By using a for each loop container, with foreach ado enumerator I can get the id and store in a variable. Next can I have a dataflow task in the foreach loop... and in that dataflow task, can I access this id pass it as a variable to an sql command (in the ole db source). The sql ...Show All

  • Visual Studio Express Editions Winsock Where is it?

    Where do I find the Microsoft Winsock Control 6.0 A website told me to load that component but I dont know how help please thanks. you would be better using the .NET Classes since they are easier and are specialized in some way as well as on the .NET platform, than using the "old" tools and classes/components   http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx http://msdn2.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx http://msdn2.microsoft.com/en-us/library/system.net.sockets.networkstream.aspx examples and docs are included in the links. if you still want to, which I would advise against, use the WinSock control, you need to browse ...Show All

  • Visual Studio Team System Unit Test Adapter threw exception: System.NullReferenceException

    Hello, maybe anyone can provide a solution to the following scenario. I have a device project that compiles fine and I have a unit test project for this device project that was working well too. After signing the assemblies the tests do not run anymore. But it's not the tests that are failing. If I debug the tests I see that all my test code is executed without any failure. After the test the TestCleanup method is also executed. The code within this method is executed fine too but when the method is finished the test immediately displays the Error result with the following error message: "Unit Test Adapter threw exception: System.NullReferenceException: Object reference not set to an instance of an object.." Code coverag ...Show All

  • Internet Explorer Development Res://ieframe.dll/dnserror.htm#

    I am having a problem with the following website:-  www.hi5.com  . While trying to visit this website I get the following error Res://ieframe.dll/dnserror.htm#   I am running IE7, I have been able to visit this website since installing IE7, the problem seems to have just occured recently.   Can anyone help   I am running Windows XP and IE7. When trying to open access the internet I get the error that you've been discussing: res: ieframe.dll/dnserror.htm I have tried everything that has been recommended (that applied to my system) and thus far nothing has worked. I have been told by several IT people that it is a virus or spywa ...Show All

  • Windows Forms datagridview

    hi, i have a datagridview(vid=sual basic 2005 and sql server 2000 thru dsn im working). i want to 1)display data from a table to datagridview 2) add new rows 3)delete 4)update. i added a datagridview and added 15 columns to that ans set name and columnheader for each. i also want some of the columns to be calender etc...(i added genericdatagrid user control.dll) i have the following code in the form load but no data is coming. can u please help con.ConnectionString = "dsn=alphasql" con.Open() da = New OdbcDataAdapter( "Select * from Company" , con) 'da.SelectCommand = New OdbcCommand("Select * from Company", con) da.Fill(ds, "Company" ) DataGridVi ...Show All

  • Visual Basic Graphics Flicker in Program

    I am sure this has already been asked, yet I couldn't find any such thread that helped my case. In my game the character and objects flicker occasionally. The character flickers from being animated a lot, same with the objects. This is my paint code for the game: Private Sub DrawGraphics() Dim intCounter As Integer Dim background As New Bitmap( Me .Width, Me .Height) Dim rectClear As Rectangle background = Me .BackgroundImage 'Clear First If strCharacter(2) = "YesClear" Then 'the rectangles keep track of the graphic locations rectClear = rectCharacter(0) rectClear.X = rectClear.X - intAnimaLeft rectClear.Y ...Show All

  • SQL Server SQL SERVER 2005 Logon Service Failed

    hi, i registered sql server 2005 on server A which was under domain D. Registration was sucess and even few databases were created. Now we have removed server A from domain D, hence sql server services are note getting started. Do i have to register sql server newly else is there any way to re configure it... Use "SQL Server Configuration Manager" to check if you have a Domain User configured as Service Account. You can reconfigure the user there. ...Show All

  • SQL Server Why can't I use data-driven subscriptions?

    I am using Reporting Services 2005 locally for testing purposes and also on a production server. Locally, I can create data-driven subscriptions, but not on the server. The only difference I can think of between my local test environment and the production server is the versions of SQL server database. Locally, I am using SQL server 2005 but on the server I am using SQL server 2000 (but with Reporting Services 2005). Can the version difference be the reason for not being able to use data-driven subscriptions Note: I have followed various guidelines and walkthroughs that describe how a data-driven subscription is created, i.e. stored credentials on the report server and such should not be the problem. Operating systems: locally; Windo ...Show All

  • Windows Search Technologies WDS is slowing down System Performance

    Hi guys I’m hoping you can help me I already posted on http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1111995&SiteID=1&mode=1 but thought that this would be the better forum to post this too. The user I am working with has WDS installed but is having quite a bit of performance issues and this is a newly bought and installed desktop. When we look at task manager it is the searchindexer.exe that is taking up all of the CPU power and disk writes. The user has Windows XP and Office 2003 I checked the client’s computer and currently he does not have any anti-virus or backup software installed but he does have running in the system tray and startup VNC server, Trillian, HotSync, Adobe Photo Downloader, ...Show All

©2008 Software Development Network