Software Development Network Logo
  • Windows Live
  • SQL Server
  • Architecture
  • Windows Forms
  • VS Express Editions
  • VS Team System
  • Visual Studio
  • Microsoft ISV
  • .NET Development
  • Visual C++
  • Game Technologies
  • Visual C#
  • Visual Basic
  • Visual FoxPro
  • Windows Vista

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

hajik

Member List

Webbtrad
ljdev
Priyanga Karunathilake
Manjula Praveen
demmith
npt
Gareth Bezett
Joseph Karpinski
VickyG
whattapain
Vladimir Klisic
markj11
Kevin Rodgers
Kiran Suthar
TFSFailedInstall
Eugen Ciuta
CoDeR X
Hamed_1983
alex2308
Rick Pariera
Only Title

hajik's Q&A profile

  • Visual C# C# - Namespaces - accessing of sub-namespaces

    Consider the following code snippet, in a file: namespace NamespaceA.NamespaceB.NamespaceC { public class ClassC { public static string StringC { get { return "string c" ; } } } } Now, I want to be able to access the property from within another file. The following works - using NamespaceA.NamespaceB; namespace Tester { public class TesterClass { public string StringC() { string myValue; myValue = NamespaceA.NamespaceB .NamespaceC. ClassC .StringC; return myValue; } } } However, I don't want to have to explicitly use NamespaceA ...Show All

  • .NET Development Discovering named instances

    Given: VB.net .Net Framework 1.1 In my program I use ODBC:SQLDataSources to discover available SQL Servers. I have recently realized that my code does not discover the Named Instance of SQL2005 which runs along side SQL2000 on my machine. I believe that .Net Framework 2.0 has a new function for SQL Server enumeration but I need to remain at the 1.1 level for some time. Is there a better way to discover SQL Servers which will discover the Named Instances in addition to the defauls instances Thanks Mr. Vaughn. Unless I'm missing somethign I believe the technique you show uses a function available on ...Show All

  • Visual Studio Express Editions Problem with maskedtextbox validation and keypress

    Hi, I have a problem with masked textboxes. I'm really getting annoyed with this one and can't find any more a solution. I have a form where you enter inputs and there inputs are recorded to the db. I have a maskedtextbox which is optional. But I want that if someone writes something in it, it checks validation and if it's not valid, it's lbl will become red to indicate user to enter a valid data. Maybe I have a logic or syntax error but other maskedtextboxes validatetext method works!! I have used If cellphone.Text <> Nothing And cellphone.ValidateText = False   Then lbl_cell.ForeColor = Color.Red El ...Show All

  • Smart Device Development termination

    I'm developing an application with several modeless forms. The project starts in SUB MAIN which calls the first form. Each form closes itself and starts the next form. All that works except I can't get the application to terminate properly. Is there a single call I can use from within the last form to execute that terminates the application Is there any other way I can do it Thanks for the speedy reply. application.exit() just puts the application in a suspended state. Then when you try to restart it nothing visible happens. The exe file on the PDA is also busy so you can't overwrite it with a new versi ...Show All

  • .NET Development strong names problem...

    I have a console application in c# that uses objects that is in another dll(unmanaged code). when I reference from the project to the dll it creates another dll with the name Interop.MyDll.dll now, I created snk file with sn.exe and added reference to it from the project [assembly: AssemblyKeyFile("@"..\..\exampleSN.snk"")] with this it wont compile because of: "Assembly generation failed -- Referenced assembly 'Interop.MyDll' does not have a strong name" and if i try to use tlbimp.exe on Interop.MyDll.dll with the above snk it says: "TlbImp error: The input file 'interop.mydll.dll' is not a valid type library" is there a reason to it have ...Show All

  • .NET Development System.NullReferenceException: Object reference not set to an instance of an object

    Hello Guys, I dont know the reason why I m getting this error I fully understand what does this mean....i dont know cant find the solution ...... If you see in the code the probem exists in the foreach statement..... the XMLNode node is somehow getting set to NULL.....It goes into the loop once and second time it just freaks out...The code was working perfectly, it just started like this.......... string path = "Common/"; // Path to the Folder try { if (File.Exists(path + "TTypes.xml")) { // Open the XML Document XmlDocument xmlDoc = new XmlDocument(); // Load the Document ...Show All

  • SQL Server Import variable fixed length file

    I have a requirement to import a file of rows containing fixed length data. The problem is that each row can be one of 5 different formats (i.e. different columns) -- where the "type" of row is indicated by the first two characters of the row. Each row gets inserted into its own table. Could I use a simple Conditional Split to route the rows Or is the split for routing similiar rows Anyways, problems are never this simple... In addition, each "grouping" of rows is related. The "first" row is considered the "primary" row (and gets a row id via IDENTITY, whereas the remaining rows in the group are ...Show All

  • SQL Server Possible bug with SqlServer 2005 calling UDT Read method?

    Hi, I have a UDT written in C# that is formatted with UserDefined. I added the IBinarySerialize interface and it was implemented automatically by Visual Studio as follows: void IBinarySerialize .Read(System.IO. BinaryReader r) void IBinarySerialize .Write(System.IO. BinaryWriter w)   This compiles fine, and the assembly deploys fine. However, when I execute a call to a stored procedure and pass a UDT that has these methods implemented, I get a message saying: System.Data.SqlClient.SqlException: Could not find method 'Read' for type 'Test.Seller' in assembly 'TestUDT' So it appears that the deserialization ...Show All

  • .NET Development Displaying data from linked fields

    Hi, I've got this link table, lets call it "Link". It has 3 fields: ID, RepresentativeId and CityId. There are two other tables called Representatives and Cities, each with another ID. Link.RepresentativeId <-> Representatives.ID Link.CityId <-> Cities.ID Now... I want to display a drop down which returns the ID of the Link as the value, but the Display Member should be a text contatenation of the representative's name and the city name. How can I manage this Thank you, Bram I got it working on a totally different table. I think I need to search in the direction of consistency in the relationshi ...Show All

  • Visual C# Regarding combo box value property in .net 2.0

    HI I am using combo box, if i manually add the combo box i am not gettin the valuemember of item.If i access the value it is giving object reference not set. I need the value property as i am storing id in that. can any body tell the solution for it. I need to add manually because i want to add extra items to the which i retrieved from database. Thanks & Regards Bhargavi Hi Its means that you are adding items to the Items collection of the ComboBox. If you set the datasource property then you can get the value field and text fields values from these properties, but when you add items t ...Show All

  • Visual Basic updating data from excel files to sql tables

    Hi, I need to update sql tables based on input from excel spread sheets. For example one of the tables has 150 fields. I need to update about 10 to 20 fields at a time. The excel sheet will contain only the key with the required 20 fields. Can someone provide me with some sample code or provide any suggestions about doing this Thanks. If you have Office 10 or 11, simply use the OWC.Spreadsheet control to connect to your SQL Server database. ...Show All

  • SQL Server 'Convert' and 'MAX' Functions

    I have a dataset in RS that basically just popultes a report parameter field automatically for me. The small peice of SQL that I run is SELECT     MAX (src_date) AS LatestMonth FROM         dbo.tbl_src_date The problem I have is a visual one in that it all works but the output that is placed in the relevant report parameter box is mm/dd/yyyy hh:mm:ss. All I want to see in this box is dd/mm/yyyy and no time. On top of this I also wish it to select the hoghest date value it finds in the query result hence the MAX statement. How can I convert the datetime to the format I want ...Show All

  • Visual Studio Team System Working with WorkItem Object Model need help!

    Hello all, I'm trying to create a simple GridView in ASP.NET 2.0 that binds itself to the TFS workItems. So far everything seems to work well. I've created a class that holds one method called GetWorkItems it somewhat looks like this: public WorkItemCollection GetWorkitems( string sortExpression, string RoleName) { TeamFoundationServer tfs = TeamFoundationServerFactory .GetServer( DomainName ); tfs.Authenticate(); WorkItemStore store = ( WorkItemStore )tfs.GetService( typeof ( WorkItemStore )); // Check if we have any projects if (store.Projects.Count <= 0) return null ; //Get the proper Team Project Pro ...Show All

  • Visual Studio Express Editions Debugger & Forms Designer in Beta 2 fails

    I was using C# Express Beta 1 for long time, today I installed C# Express Beta 2 but after that I can not create WindowsForms project or open WinForms/Project Settings/Resources When I try to create new WinForms project I get warning as follows Package "Visual studio Settings and Project Designers package" has failed to load properly ( GUID = xxxxx) .... Would you like to disable loading of this package in future ..... <Yes> <No> Ignoring this, Now when I try to open WinForm class (From newly created project) I get following error Could not load type " Microsoft.VisualStudio.Shell.Interop.IVsRunningDocumentTable2 " from ass ...Show All

  • Visual Studio Express Editions 2 events at once

    I'm creating a simple, old, black and white tennis game for practice. I've created an event handler for 9 keys - 2 for moving 2 paddles up, 2 for moving them down, 2 for left and 2 for right. I also have an Enter key that starts the ball moving. The problem is that when I press Enter, none of my other keys work, until the ball goes off the screen. Does anyone have any suggestions how to fix this If you provide mode detail, someone might be able to provide some guidance. I'll assume this is a WinForms application. What event are you subscribing to to handle the keys, KeyDown, KeyUp, or KeyPress What is the c ...Show All

©2008 Software Development Network