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

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

Snarf99

Member List

Michael Wittenburg
Magdalena_Heidi
Trabi
Saurabh Kulkarni
Fusion1224
preps
jdang
Kamii47
Mantorok
John X. C.
MBM_Mimo
CODUDE84
Prashant jain
Sleepgone
xVxObliVioNxVx
Rajesh batchu
zhangchenxu
Tamiri
VS_BS
nizmo
Only Title

Snarf99's Q&A profile

  • Visual C# How to compare unicode character with ascii value

    Hi, I know how to compare a char to see if it is an integer or not like this: char c; ((c>57) || (c<48)) true : false ; Is this one actually compares with ASCII values If the coming character is a unicode character, how to do if the unicode character is a integer or not Many Thanks Jerry The char C# data type is a Unicode character. Comparing a Unicode character with any integer value that represents anything other than Unicode is not a good idea. For example value values for the char data type are 0x0000 to 0xFFFF Maybe you can explain what you're trying to accomplish ...Show All

  • Software Development for Windows Vista more than one Video Renderer, the get_FullScreenMode() always return E_NOTIMPL!

    In my program there are two video render filters, one for local window and the other for remote. However, when I did the following: IVideoWindow *pRemoteVideoRendererVW=NULL hr = Graph.gcap.pFg->QueryInterface(IID_IVideoWindow, (void **) &pRemoteVideoRendererVW); if (hr!=S_OK) { Log.Log(1,"IID_IVideoWindow failed %08x",hr); return; } LONG lMode; hr= pRemoteVideoRendererVW->get_FullScreenMode(&lMode); if (hr!=S_OK) { Log.Log(1,"CCyklOneDlg::OnFullscreen get_FullScreenMode failed %08x",hr); goto exit; } Everything went through without any error. Excepting the pRemoteVideoRendererVW returned by the QueryInterface() does not guarantee that it was the remote windows. It sometimes returns the local vid ...Show All

  • .NET Development localization of bool

    how is the boolean type (in c#) supposed to be localized the propertygrid always displays the labels "true" and "false", no matter what language pack of the framework is installed. so how are bools supposed to be localized WM_QUERY -thomas woelfer > A bool value is not a string and shouldn't be treated like one. > You're proposing that the bool type concern itself with the user interface, which is inappropriate. I'm not proposing that at all. Any more than Int32 and DateTime classes should concern themselves with the user interface. If my suggestion is implemented, I imagine it could use a BooleanFormatInfo class, analogous to the existing NumberFormatInfo and DateTimeFormatI ...Show All

  • SQL Server SQLSERVERAGENT

    Dear all, I can't start the SQLSERVERAGENT for my sql 2k under win 2003 sp1. SQLServerAgent could not be started (reason: SQLServerAgent cannot start because the instance of the server (MSSQLSERV) is not the expected instance (MSSQLSERVER)). I can't find any useful information regarding this error. Any one can help Thanks, bchu hi, Jens Suessmeyer , thanks for your reply. However, as I search through the registry, all entries show -i MSSQLSERVER. No entry is MSSQLSERV. What could be the problem Thanks, bchu ...Show All

  • Visual Basic Printing in VB.NET

    Does anyone know how to print i vb I have information some textbox on a form which i want to send to the printer. take a look at this and see if it helps you, then you can modify it to print whatever you want: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=805077&SiteID=1 basically you need to use the printdocument/print events/properties/classes http://msdn2.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx I hope the links will guide you better! (im not an expert on printing!) ...Show All

  • Windows Forms datarelation and dataview

    Simple q regarding .net 2003 I got several tables A master and e few details/child tables add datarelations to it and bind it to controls... so far so good Now i wan't to filter/search the mastertable, Sound easy but when  i use a dataview i lose sync with the detail/child tables Remco I am having the same problem. Hopefully the following example will help people understand what we're trying to do.... Consider you have a DataSet which is made up of Customer information and related Orders, that is, one dataset with 2 distinct tables, "Customers" and "Orders". We create a DataRelation object called "CustomersToOrder" on the dataset which link ...Show All

  • Windows Forms Listbox problem

    Hi I'm building a little "search" function for my listbox! This is what i want to happend: I got a textbox, then i write the number (the listbox contains a list of numbers) i want to find. The number i write in the textbox should then get selected in the listbox when i click a button. That far, it works great with this code: lstlistBox1.SelectedItem = txttextBox1.Text; Now to the problem. If the number i write in the textbox exists more than one time in the list, i want all the items with that name to get selected. Been trying with loops and stuff to make it happend but just wont work. Anyone got a suggestion Thx in advance Hi, Please try this, private void FillListBox() ...Show All

  • .NET Development Suggestions on Pinging using .Net 1.0

    At work I need to implement pinging using .Net 1.0, I do not have to option of using later versions of .Net because it hasn't been approved yet for use here. Is there an easy way to do this, or am I going to have to go through all the trouble of implementing my own algorithms. Please note I cannot use any code released under any licences that isn't 100% free with no strings attached whatsoever. Maybe someone can point me in the right direction a tutorial maybe or some example code I can look at Any help would be very much appreciated. There are many free implementations of Pinc class in C# on the web... You can search google for Ping class in C# or ping in C# I'm sure you'll get many results... Best Regards, Rizwan aka R ...Show All

  • Visual Basic Cell Address

    I copy some data from 1 Workbook to another workbook using Visual Basic Editor. Say i copy 4 rows from book1 to book2 and i come out of run form. I next run for copying data i need to continue with the next row ie row 5 in book2 Please help me to do this. As of now i am saving the adress of last entered row in a cell and takeing this for next entry. but this is not the way to do.......... SutraveAnitha, Please use the SaveCopyAs method to save a copy of the current workbook as follows: Private Sub WorkbookSaveCopyAs() Me .SaveCopyAs(( Me .FullName & ".copy.xls" )) End Sub Hope that helps! ...Show All

  • Windows Forms ClickOnce Fails with "Value does not fall within the expected range."

    I have a ClickOnce-deployed application installed in offline mode across a range of Windows 2000/XP machines on my network. I now receive an 'Application cannot be started. Contact the application vendor.' error message when I attempt to run the application on my development machine. (It works still on the production machines.) I've run mage -cc, and renamed the '2.0' directory to '2.0x' to ignore its presence. Add/Remove Programs still shows it, and clicking Change/Remove pops up a window for a moment, but otherwise does nothing apparent. I've changed the installation path to be a network path instead of a website, and it still fails. The following is the error log: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Comm ...Show All

  • SQL Server Calling Reporting Services from SSIS

    Hi I have created a packages which pull and push the data to SAP server. I want to create a report every day and send that report to the manager. For the same i want to call reporting services in my SSIS package. I know i can write a SQL script and export the report in excel but i want to use Reporting services. Have any one call reporting services from ssis. I managed to generate a SSRS report directly from a script task within SSIS : i set varSSRS_URL, varSSRS_LOGIN, varSSRS_PASSWORD & varSSRS_DOMAIN in the DTSCONFIG file varSSRS_URL should be the first part of your SSRS Server URL : http://localhost/ReportServer varSSRS_LOGIN/varSSRS_PASSWORD/varSSRS_DOMAIN : A windows user log/pass allowed to ge ...Show All

  • .NET Development web.config and environment variables

    I'm trying to impersonate a user using the web.config file. It works fine like this: <identity impersonate="true" userName="MyDomain\MyUser" password="MyPassword" /> Unfortunetly, we have multiple webservers and not all reside in the same domain. The user exists on each machine, but the domain is different. So I'm trying to do something along the lines of: <identity impersonate="true" userName="%domainuser%\MyUser" password="MyPassword" /> That line of code isn't working. Is there any way to accomplish this without having to keep different web.config files on each server Thanks for any help! Here is an excellent microsoft knowledg ...Show All

  • Smart Device Development Adding Custom Today Screen Item

    Actually I need to add a "cutom today screen Item" to Pocket PC automatically when message has been reached to my messenger. I am presently working on Visual Studio.Net 2003( Compact Framework1.1). Actually I have tried this link: C:\Documents and Settings\Administrator\Desktop\malleswar\adding image\Creating a Pocket PC Today Screen Plug-in with the _NET Compact Framework.htm but for building Embedded Visual C++ (eVC) has to be used. If u know better way than this plz guide me. Manav, Thank you for ur response n support. Actually I have tried both in EVC++ and VS2005. when I open in EVC++, it displayed "access is denied". when I open in VS2005, it displaye ...Show All

  • SharePoint Products and Technologies Unable to connect ...

    Hi, I have a SingleServer instalation for MOSS. I get this "Unable to connect..." error in BDC Item list web part. I think is something with the credentials the goes to SQL Server. <LobSystemInstance Name="Charisma TS"> <Properties> <Property Name="DatabaseAccessProvider" Type="System.String">SqlServer</Property> <Property Name="AuthenticationMode" Type="System.String">RevertToSelf</Property> <Property Name="RdbConnection Data Source" Type="System.String">MyServer</Property> <Property Name="RdbConnection Initial Catalog" Type="System.String">DBName</Property> &l ...Show All

  • Windows Forms Drawing a Line above other Controls

    Is it possible to draw a line above and under some controls I mean, can we control the Z-order of a drawn shape(I.E line) This is the code snippet where I draw a line. It should somehow appear above all controls(buttons) but it doesn't. Private Sub Button1_Paint( ByVal sender As Object , ByVal e As System.Windows.Forms.PaintEventArgs) Handles Button1.Paint Dim g As Graphics = Me .CreateGraphics g.DrawLine(Pens.Blue, Button1.Location.X, Button1.Location.Y - 5, Button1.Location.X + 30, Button1.Location.Y - 5) End Sub TIA You can get close to the effect you need by defining a new control and drawing your line on that. It works well for thin vertical and horizontal l ...Show All

©2008 Software Development Network