Justine's Q&A profile
Visual Studio Express Editions Open text files
hi how can i open text files from differente paths using OpenfFileDialog No, i need the code like this. Dim OpenFileDialog As New OpenFileDialog OpenFileDialog.InitialDirectory = My .Computer.FileSystem.SpecialDirectories.Desktop OpenFileDialog.Filter = "Text Files (*.txt)|*.txt" OpenFileDialog.ShowDialog( Me ) Dim FileName As String = OpenFileDialog.FileName Me .rtfData.LoadFile(FileName) But this is not working ...Show All
.NET Development those extra columns in the Feature Table
Just curious to know what are those extra columns in the Feature Tables of the .NET framework MSIs Short answer: the extra columns are not really used for anything in .NET Framework setup. Explanation: the extra columns in the Feature table are a side-effect of the internal MSI build system that is shared with the Visual Studio family of products. Visual Studio setup has a feature tree that allows advanced customization of feature install locations and run-from-source options. Those extra columns in the Feature table control the parameters of customization, and provide additional descriptive text. The build system outputs those extra columns for all products, but since .NET Framework setup doesn't have ...Show All
SQL Server Dynamic XSD Schema Location For XML Source
I want to be able to programmatically set the schema location for an XML source. I first thought it would be a simple task using expressions and variables but it doesn't appear to allow anything in the way of setting it at runtime. Is this possible Thanks Jamie... just wanted to chime in and say this was really helpful - I would have never thought of looking on the properties of the data flow. ...Show All
SQL Server Find Counties in area
We have the need to determine surrounding counties of a particular county. For example how can I determine, if I entered a zip code for Contra Costa and the property is also right on the line of alameda that Alameda is a neighboring county of Contra Costa Could it be determined by the longitude and latitude of the zip code in comparison with the counties Hello, Although I'm sure a geospacial co-ordinate system could be used to determine this, most people think it overkill and just use a proximity table :) tCounty (CountyID int, CountyName varchar) tCountyAdjoined(CountyID int FK to tCounty.CountyID, AdjoiningCountyID int FK to tCounty.CountyID) So if Contra Costa was near Ala ...Show All
Visual Basic User Login Password Encryption In Database
How to do encryption for user login I need to encrypt it in database and after the user key in password, i need to do checking based on the encrypted password in database. Do we need decryption for this Thank you. I used the following for encryption and decryption but after i stored the encrypted string into the database and decrypt it again for checking if user inputted password is same as the decrypted password, an error occurred when the pointer hit decStream.FlushFinalBlock(). I think this has something to do with the random generate key. May i know how to solve this Thank you. Private TripleDes As New TripleDESCryptoServiceProvider Public Function EncryptDat ...Show All
SQL Server SQL Express Newbie
I am using SQL Express as my local database on my laptop. I have connected to a remote sql server 2003 within SQL Server Management Studio Express. I am trying to import a database from the remote sql server 2003 so i can work with the database with in the SQL Server Management Studio Express. I am having problems trying to find any information that i can use to perform this action. Can anyone help me with the problem hi, you can not directly import remote databases via SQL Server Management Studio Express as this tool misses all integration features, available in the full version of SQLExpress and SQL Server Management Studio as Copy database wizard, import and export wizards and the like ( http://msdn2.microsoft.com/en-us/librar ...Show All
Visual C# question of what the difference is between...
Yay! time for another newbie question. Is there a difference between these two lines string AString = new string(this); string AString = new string; If so, whats the difference Quilnux string type can be created using string constructor, but not in that way and for that purpose. You can see that string constructor has many overloads but none of them is empty constructor (without parameters) as your first example. String constructors are basicly used for creating string from array of characters or bytes, and for such conversion that is the easiest way. But you can't use the constructor with (this) because none of those constructors accept parameter of type reference type as in your case (some ...Show All
Visual C++ Error C2065 in vc6
hi i m using this code i on windows XP and visual studio 6,i receive error mentioned above i had include these two lines as well,in stdaxh.h #define _WIN32_WINNT 0x0500 #include <windows.h> the code is below MENUITEMINFO mii; memset(&mii, 0, sizeof(MENUITEMINFO)); mii.cbSize = sizeof(MENUITEMINFO); mii.fMask = MIIM_ID| MIIM_BITMAP |MIIM_DAMFT_BITMAPTA; error is describled as below D:\_RCProj\_VC6\live desktop\Source code\WinScreenAnotator.cpp(684) : error C2065: 'MIIM_BITMAP' : undeclared identifier D:\_RCProj\_VC6\live desktop\Source code\WinScreenAnotator.cpp(684) : error C2065: 'MIIM_DAMFT_BITMAPTA' : undeclared identifier Error executing cl.exe. Creating browse info file... WinScreenAnnotatorVC6.exe - 2 error(s), 0 warning ...Show All
Silverlight (formerly WPF/E) "WPF/E" Feb 2007 CTP refuses to load
Earlier today, you may have noticed your “WPF/E” December Community Technology Preview (CTP) control expired. No worries though- we’ve just posted the February CTP for Windows and Mac to Microsoft's download center and updated the samples on the Channel 9 Playground to work with the new CTP. Note that to get your samples working with the February CTP, you’ll need to change out the agHost.js file with the new one found here . Tomorrow we’ll update the website with details on what’s new in this release, and an updated SDK and samples will be available soon too. Thanks, "WPF/E" Marketing New features in the FEB CTP include: Keyboard Input (KeyUp/KeyDown) MP3 Support Mouse cu ...Show All
Windows Forms Update a form
I have the main form Form1 and I start Form2 to add an item to Form1. How can I update Form1 when I have selected the item. you can either create and raise events from form2 when you selected an item or you can pass a reference of the main form to form2, which will then call the reference and add the item or whatever. can you explain a bit further - what are these items what control you want form1 to have the item dealt with FROM form2 correct ...Show All
Visual Basic Nead to pass arguments to an Event
Hi there. I have created a class to handle network trafick. I strugeled a bit with this because the application got stuck when it was waiting on a client. I therfore dug a bit and found a class that would solve this for me. Problem with this class was that it was designed to handle a limited number of clients using an array of threads. I thought that I should rewrite this class to handle the threads in a list instead. I allso had the nead of an unique ID to handle the different connections. I found the datatype GUID and I think this is what I nead. So to my problem: I have a method in my class to handle network messages. It is prototyped like this: SUB HandleIncomingMessage(ByVal pClientID as GUID, ByVal pMessage as String) ok. ...Show All
Visual Studio Team System ntext to ntext
Hi, Sometimes, when creating an update script that changes a table with an ntext column, I see the following code in the sql script: /* The type for Field: SomeColumn in Table: [dbo].[SomeTable] is currently: [ntext] but is being changed to: [ntext]. */ IF EXISTS (select top 1 1 from [dbo].[SomeTable]) RAISERROR ('Rows detected, failing schema update due to possible data loss.', 18, 1) GO Why is this Thanks, Jeffry Has this issue been resolved I am currently using the final version (180 day trial) and cannot publish database changes due to this error. Is there a workaround ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Probability
Give the following below, how can I program the probability of those outcomes happening For instance given 10 calls to function GetRandomLetter(), I'd like "A" to return about 2 out of 10 times and "B" to return 4 out of 10 times. I'm trying to add random occurance to a game I'm working on but I'd like to set the probability certain events. A - 20% B - 40% C - 30% D - 10% I had that thought over the weekend. I just wasn't sure if there was a class or method in the framework that could handle such a thing for me. I'll give that a shot and see if that works. Thanks. ...Show All
Visual Basic time and date
Thanks for putting up with my questions. Does anyone know how to access the computer's date and time so that I can assign it to a variable I'm not sure how to do them individually but Dim MyDate as Date = Date.Now this will assign the current date and Time to MyDate. hope this helps tattoo ...Show All
.NET Development Update issue vb.net2005 express - SQLServerExpress "Failed to convert parameter value from a String to a Int32."
Hi All, I an new to the .Net development (I used to work in VB6). I have a Problem updating a database and I can not figure out where the problem is situated !! On a form I've placed a datagridview linked to a sponsor table. I can see all the records and I can ADD new records to the database bu when I try to modify or dele a record I always get an error telling me I can not convert a String to an Int32 . This is strange as I have no fields in that table of the type Int32. I do not use the commandbuilder to generate the query and updateparameters but I code them myself. Here is my updatequery: UPDATE sponsor SET [id] = @id, [code] = @code, [name] = @name, [address_street] = @address_street, [address_street_2] = @address_street_2, [address_s ...Show All
