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

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

nadasurf2

Member List

ksona
x-pert
Dmytro Kryvko
Dave U.
IgorTheTerrible
TimStspry
jaime.rq
cmwith
Agent00
Gilles Lafreniere
mcdonaldn
Michael J Brown
zhihao
Rick.H
Christian Liensberger - MSP
Allan-Nielsen
xplosiv_1
Tinomolloy
Glyn Harper
JLesch
Only Title

nadasurf2's Q&A profile

  • .NET Development Validating an item added in CollectionEditor

    Hello I have a propertygrid that is showing my collection. If user click on add button and enter an invalid data in one of properties of a new item, in setter of that property I'll show a messagebox, but how can I prohabite user to continue. private int x; public int X { set { if ( value < 0) { MessageBox.Show("Enter a value greated than 0"); return ; } x = value; } get { return x; } After closing my messagebox the new item is in the collection and user can add another item or click ok button. I am validating agin later but I am looking for a way to force user to fix this item before continuing. I tried OnInsert and OnInsertComplete events of CollectionBase and also CreateInstance of Co ...Show All

  • .NET Development Problem reading XML Schema?

    Hi, I have the XSD below and the corresponding XML. If I try to read it usind ReadXml with XmlReadMode.ReadSchema it returns no data. However with XmlReadMode.InferSchema it works. What is missing here Thanks ------------- CODE DataSet ds = new DataSet(); ds.ReadXml(@"C:\Documents and Settings\db2admin\My Documents\Visual Studio 2005\Projects\WindowsApplication1\WindowsApplication1\XMLFile1.xml", XmlReadMode.ReadSchema); XSD < xml version="1.0" encoding="utf-8" > <xs:schema id="XMLSchema1" targetNamespace="http://tempuri.org/XMLSchema1.xsd" elementFormDefault="qualified" xmlns="http://tempuri.org/XMLSchema1.xsd" xmlns:mstns="http://tempuri.org ...Show All

  • Software Development for Windows Vista DirectShow Transform Filter

    Is there a DirectShow Transform Filter that act as pass / not pass for samples ...Show All

  • SQL Server Can't store chinese in SQL Database

    update Food set FoodName = ' 杏仁' where ID = 100 in database as Hi bass, "But this will affect other databases in your server". This could be very dangerous. Good Coding! Javier Luna http://guydotnetxmlwebservices.blogspot.com/ ...Show All

  • SQL Server Percentage Calculation in matrix detail

    Hello, This my first time submitting a question here. I have this Matrix setup: As of Day Prev Week % Change Prev Month %Change A 10 15 NN% 15 NN% B 10 15 NN% 15 NN% C 10 15 NN% 15 NN% I would like to calculate the %Change, but how do I reference data in the dynamic columns. "As of Day", "Prev Week" and "Prev Month" are dynamic matrix columns. Any help would be great. Thanks, Alan ...Show All

  • SQL Server System.Security.HostProtectionException:The protected resources (only available with full trust) we All ....

    Hello everybody.. I have started to "experiment" the CLR within SQL Server 2005. I have to say that sometimes it's very handy ans sometimes very "complicated". I got a problem, I have understood why and how to solve it. I created a TV function that takes a CSV file so something on the data and retrieve a table as I need. when I select the function I get this error: A .NET Framework error occurred during execution of user defined routine or aggregate 'XXXXXXXXXXX': System.Security.HostProtectionException: Attempted to perform an operation that was forbidden by the CLR host. The protected resources (only available with full trust) were: All The demanded resources were: UI System.Security.HostProtectionExcep ...Show All

  • .NET Development Hex String To DateTime Conversion

    I am trying to convert a hex string that I get from an XML file into a DateTime variable in a C# program. The goal is to eventually update datetime columns in an SQL-Server table with this values. What I've got so far is a 28 character string thath looks like this: 3230303630333239313930353532 and a 10 character time offset hex string that looks like this: 2B30323030. From these 2 strings I have to come up with a DateTime stamp. I would sincerely appreciate some assistance to convert the above hex strings into a DateTime variable in C# or at least tell me how to do it. I have some code that converts the hex string into a byte array, but I don't know how to convert the byte array into a DateTime variable. How many bytes is the ...Show All

  • Community Chat Windows Vista "WoW"

    Hi all, Do you think that Windows Vista can be used as Server instead of Windows Server 2003 tell me pls I looking to change my Server OS... What does the "WoW" stands for .............. Thanks in Advance   Server OSs usually have different tuning in terms of resource allocation than do the standard products and in addition they have much tighter security and better utilities. I think there's a Vista version of a server OS coming out soon. It would be better to wait. ...Show All

  • Visual C++ Run only one application

    Hi, I want to create application that can only be executed once. I mean like MSN, once you have run it and you execute it once again, the previous program window will appear. Can someone please show me how to do it Thank you idos wrote: Can someone please show me how to do it HANDLE hMutex = CreateMutex(0, TRUE, _T("MyUniqueMutex")); if(!hMutex) { // Mutex creation failed, deal with that return -1; } else if(GetLastError() == ERROR_ALREADY_EXISTS || GetLastError() == ERROR_ACCESS_DENIED) { // Already running, deal with that return -1; } // Woho, this is the only instance ...Show All

  • Visual Studio Team System TFS thinks I'm logged in as Administrator

    When I try to connect to the team foundation server for the first time, It says "administrator" does not have an account on that server. I looked, and my visual studio is not running as administrator, nor is anything else. I've checked my username in the few places I can find it in the visual studio environment, and it is set to my username, (not administrator). I tried running it my right clicking visual studio 2005 and saying runas my username...the foundation server still says I'm trying to log in as administrator. It's very wierd. Has anyone else heard of this or know about it Thanks! Thanks Martin, For those who don't know how to delete a cached user id... To open User Acco ...Show All

  • Windows Forms datagridview datetimepicker column problem

    hellow i have a little problem here i am using datetimpicker column in datagrdiview the code taken from this link http://msdn2.microsoft.com/en-us/netframework/7tas5c80.aspx and the main problem is that when user clicks this the cell the datetimepicker columns doesn't show, but when you double click that cell the picker shows up, how to solve this problem just with one click. thanks for any help. Add this code to the CalendarCell class: protected override void OnEnter(int rowIndex, bool throughMouseClick) { this.DataGridView.BeginEdit(false); base.OnEnter(rowIndex, throughMouseClick); } ...Show All

  • Visual FoxPro Deleted -SQL HELP

    I am having trouble with a form i created. It is a form with a grid of an email address book - table. I want to the user an option of deleting names from the grid/table and it works fine when i "Set Delete On" and test it. But when I implement it into the program and call the form from a main program it gives me an error that says "Deleted variable not found". any suggestions this is the code for the command button that deleted the record: select emailaddressbook DELETE FROM emailaddressbook where idemail = temp thisform.grd_Email.Refresh like i said, it works stand-alone I cleaned it out to just say this: select emailaddressbook DELETE FROM emailaddressbook where idemail = emailad ...Show All

  • SQL Server Executing SQL statements against a Linked Server

    I am on ServerA and am trying to run the following SQL Statement: Select * from ServerB.Catalog.dbo.TableName I keep getting an invalid Login error for Domain\User. I have windows authentication on both ServerA and ServerB. I have db_Owner rights on both servers. Why can I not get access to the linked server If I log onto Server B, the following SQL Command DOES work: Select * from ServerA.Catalog.dbo.TableName Please help You need to set up delegation for your sqlservers. The following should help you started: http://msdn2.microsoft.com/en-us/library/ms189580.aspx http://support.microsoft.com/default.aspx scid=kb;en-us;319723 ...Show All

  • SQL Server E-mail notification issues

    I just set up an SMTP email account though the Management Studio a Server a Database Mail. The test email was successfully delivered to my mail box. Now I’m trying to test the notifications. I created an Operator with my email address, and my test job is set to email the operator when the job completes using the email account above. However I am not receiving any emails upon the completion of the job. When I go to notification history under the Operator, there is none. What am I missing Thanks a lot for your help! I have found it now in the German version, defined an operator and now everything is working fine :-) @LoveDanger Try to do the trouble shooting for database mail, i.e. have a look i ...Show All

  • .NET Development Code security exception while using fully trusted assembly to implement config section for the application started form network

    I’m using Microsoft enterprise libraries for my winforms application. One of the requirements from the customer is that it should run from network share in intranet zone. I strongly named all assemblies in the enterprise library as well as my custom application. I created security policy allowing them to run in the intranet zone. The tests with “caspol.exe” against every single assembly in my package from the network share confirmed that every one of them has “Unrestricted” permissions. My application config file is: < configuration > < configSections > < section name = " dataConfiguration " type = " Microsoft.Practices.EnterpriseLibrary.Data.Configuration.DatabaseSetti ...Show All

©2008 Software Development Network