ambujkn's Q&A profile
Visual C# Generics And Interfaces....
I'm currently trying to use generics to make my interfaces a little bit more flexible. Unfortunately I seem to have hit a problem with the compiler complaining when I try to use an interface as an input parameter, if that interface requires a type to be defined. I'm not sure if I explained that at all well, but given the following example, the compiler complains that I haven't specified a type in the defintion of someMethod. I ...Show All
Windows Forms Making a form fade in
Hi, Can I use the opacity property to make a form fade in (Make it smooth though) Thnx. Thanks so much for posting that code. I have been wanting to incorporate that into one of my apps for about a year now and never&nb ...Show All
.NET Development Date issue in SQL Server
Regional setting for a date forma in my computer is dd/mm/yy. When I pass a date parameter to a stored procedure in SQL Server 2000, it seems to take it as mm/dd/yyyy. What kind of problem is this ...Show All
.NET Development IDeserializationCallback equivalent for ISerializationSurrogate?
Is there a parrallel of IDeserializationCallback for ISerializationSurrogates I'd like the Surrogate to be able to fixup the child objects once deserialization is complete. Thanks, Ray That's essentially what I ended up doing. I had the surrogate serialize another object just for that purpose. The object then makes use of IDeserializationCallback. - Ray ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Setting up Microsoft Visual Studio 2005 for directX
I just can't get the DirectX samples from the samples browser working (provided with directX), when i try to compile them i get linker errors DXUT.obj : error LNK2019: unresolved external symbol DXUTmisc.obj : error LNK2001: unresolved external symbol I have installed DirectXSDK(dec.) and Microsoft Platform SDK. I have added the paths in tools->options [Projects and solutions]->[VC++ directories] to both Platform SDK and Directx ...Show All
SQL Server Conditional Split problem
Don't know if anybody else has had this - In a dataflow task I added a conditional split that currently has two possible outcomes. Initially this was a straight choice. Later I added an "or" clause on the second leg thus expression1 || expression2 on which the second leg ceased working. After some mental anguish I deleted the component and then reimplemented it using identical logic and magically (or so it appears) it al ...Show All
Windows Forms rubber banding two images in vb.net
hi i am doing my final year project in vb.net (i am using 2003 version). my project is a learning package which wil demonstrate ospf and eigrp algorithms. now i can create my routers and endusers by clicking on the buttons at runtime (they are represented by image boxes) and drag and drop them. now i need to set up the links among routers and endusers. ( i want to make them work as in packet tracer software) i have got some code working for rubb ...Show All
SQL Server SQL SERVER Instances
Hi all, I already have a copy of SQL SERVER 2000 installed on my current local machine. How is it possible that I create another second instance for example TEST/silkkeng in SQL Server Enterprise Manager OR SQL query Is it possible Or the only solution is ReInstall SQL to create another instances You have to rerun the setup from CD oryour installation media. HTH, Jens Suessmeyer. ...Show All
Windows Forms problem in window creating installer
dear vbexperts I have problem in creating custom deployment of windows where i have to give the custom serial number. 1 creating database during installtion 2 giving restart option after installtion 3 giving unistalling feature in start menu ...Show All
Visual Studio Can't deploy Crystal Reports XI R2 web project on my local web server.
Can't deploy Crystal Reports XI R2 web project on my local web server. This is my development PC. I was running Crystal Reports XI Developer. I uninstalled it. I installed Crystal Reports XI R2 after reading some posts. I successfully completed and ran a Crystal Reports XI R2 web report example within VS2005. I've followed all deployment tutorial examples for CR XI R2 to no avail. I've created deployment packages using the merge module Cry ...Show All
Visual Basic search for specific files on a drive and handling of exceptions
Hi, I have made a small program that needs to search through folders and subfolders for specific files. To do that I am using something like this: Try For Each foundFile As String In My.Computer.FileSystem.GetFiles(FolderToBeSearched, _ FileIO.SearchOption.SearchAllSubDirectories, "*.jpg") --- do something --- Next Catch ex As Exception Console.WriteLine("error") End Try The problem with this is that once M ...Show All
Windows Forms TreeNode label
Hello, If I have a label in the edit mode, and the user makes a text selection, is there a way to capture the selected text only. There is an attribute on the text box that does that. Thank you Hi, I don't know the direct answer you're looking for, though I am sure there is an API you could use to get that information. Instead, have you considered using a TextBox and setting its properties to make it appea ...Show All
Visual Basic How to reload a form?
Hello guys, I'm trying to reload a form displayed by using a simple button. The sentence I was trying to use is: Form1_load() but I'm getting this error: "Error 2 Argument not specified for parameter 'e' of 'Private Sub Form1_Load(sender As Object, e As System.EventArgs)'." Can any of you please tell me what is that argument I'm not passing or any other way to reload my form using a button Thanks sooo much for your hel ...Show All
Windows Forms Dynamic Sql inside of stored procedure
Hi I am trying to use dynamic sql inside of a stored procedure. I get an error when I go to check the syntax. Here is what I have so far. CREATE PROCEDURE Number_Of_Comebacks @dlname varchar (100) @CB varchar (5) AS BEGIN Declare @SQL1 Varchar(100) Select&n ...Show All
Windows Forms RichTextBox LoadFile Method with RichTextBoxStreamType
VB 2005 Beta 2. I am loading a rich text box with the contents of a user selected file. It appears that depending on which RichTextBoxStreamType I specify, I get a different resulting view in the rich text box for a specific file. For example, if I try to load a .txt file using RichTextBoxStreamType.RichText, I get an error of: System.ArgumentException was unhandled Message="File format is not valid." If I try to load .rtf file usin ...Show All
