dchau28's Q&A profile
Visual Studio Express Editions How To Load My application on Start Up USing VB?
Hi all, I got a Application That has got no form but It suppose to act like a "FileSystemWatch" So when User add a file in this Particular folder. A method will do some validation and call Sql Procedure. And Do the Neccesary Steps. The Calling Sql Part Is done. But Right now i need to Make This Program such like. Click On the Exe (1st Attempt ) like a installer. Will Automatically add the exe in someplace(Duno where) And make sure it load on every start up after tt After this. The program will continue to run untill the Computer Is shutdown. And Advice will be gd. Thank u Looob P.s apologise for my p ...Show All
.NET Development Plural of word
Hello Friends, I just want to know how to find plural of a word in C# I have one textbox where user will enter his word i.e Text. Then how to find the plural of that word. You need to find the rules of pluralization for the language of interest and write them into your code. For example, in English, you need to at least implement the rules to make these words plural: Punt Radius Thief Mass (the word without the 'M' becomes three assterisks in this forum) Chevy Datum This looks like a homework problem, naked running notwithstanding, eh ...Show All
Smart Device Development WM5 .NET 2.0?
Hi! Sorry, title maybe misleading.... Basically in the UK the next version of the smartphone (SPV) is C600 (after the successor C500) and it will be launching at the end of the month now, I know it has WM5 (hurray!!) BUT would like to know, if anyone knows (esp the MSFT guys)... will it have .NET CF 2.0 I know it was in beta etc... for the past few months but now for MSDN subscribers VS.NET 2005 has been officially launched but the official launch will be next week and will ship in December Question is - will WM5 have .NET CF 2.0 If not, then I guess the only way you can have .NET CF 2.0 is on the other smartdevices (M500 ...Show All
Visual C# what is the shortest and safest way to encrypt a file in c#?
Is there any built in function to excrypt a file in c# I have made an application that stores some confedential information in that file i want to encrypt that file so that the content remains safe and i dont want the file to be deleted by others help me with this!! System.IO.File.Encrypt(string filePath) You cannot prevent someone with the necessary privileges from deleting a file. ...Show All
SQL Server calculated sum
I have a dataset that returns a measure and a bunch of dimensions. What I need to be able to do is calculate a sum of this measure based on one dimension. ie.. Sum(measure) where dimension = "Top". Any ideas on how to accomplish this. Not sure if this solution will work for you, but you can add a Calculated Field to the Data Set, say: "FilteredQty", defined as (assuming Quantity is an integer): CInt(iif(Fields!Country.Value = "USA", Fields!Quantity.Value, 0)) Then in your report you can use this expression: Sum(Fields!FilteredQty.Value), wich should return 4 rather than 10 To make it dynamic, "USA" can be re ...Show All
SQL Server Storing Null values
I am creating a UDT which is not a Native but UserDefined Format. I use the IBinarySerialize and should implement Read en Write methods. When i have a null value should i always write some null flag to the database storage Or is there another way to deal with null values like writing nothing Hope somebody can give me some more details about this. I don't really understand how reading/writing is working. Because when i store a UDT with a null value in the database i cannot do a normal select on it. I get an error like: Error message is: Data is Null. This method or property cannot be called on Null values. When i use the .ToString() after t ...Show All
Visual Studio Compatibility.
Hello. Can I Install vs 2005 beta 2 in a machine with vs 2003 Can I use vs 2005 to add solutions to source control in visual source safe 6.0d. Will I have problems for upgrading when the final version of vs 2005 has been released Yes, VS 2005 and VS 2003 can co-exist. You will need to uninstall VS 2005 completely before installing the final version. I'm not sure about your VSS question. Perhaps someone else can chime in. ...Show All
SQL Server Getting User name in a Derived Column
Hi there, is there a way that I can set the value of a column to the currrent user in a derived shape For instance if I want to set the value of a column to the current data I can merely use GETDATE(). What is the current user equivilent Thanks I would check SQL Books On Line (BOL) lookup either CURRENT_USER, SYSTEM_USER or SESSION_USER to see which user you want to store, however, I don't know if it would work in SSIS ...Show All
Visual Studio Express Editions Deployment Project? Where?
Hi All- I'm new to vb .net, so I decided to download vb 2005 express and give it a shot. I've built a neat little app but can't seem to deploy it. Everything I've read says I need to create a deployment project by going to File -> Add -> New Project -> Select Deployment Project. However, I don't see anything in the pane where I select a new project that looks anything like a 'Deployment Project.' Am I missing something How in the heck do I create a deployment project Thanks in advance- -Cale Deployment projects are not supported in the Express editions. You can use ...Show All
Windows Forms Create a color text editior with number lines
I am trying create color text editior. I was thinking to use a textbox but the how would i color individual words in a text box is there any other way to do this and i also want to add a line numbering on the side of the textbox. how do i do this so basiclly what i am try to do is make notepad and ext ...Show All
Visual Studio 2008 (Pre-release) Fun: Mind reading
I have created this sample a month ago, just for fun ... http://www.valil.com/CrystalBall/CrystalBall.xbap See http://blogs.msdn.com/ianm/archive/2006/04/05/568920.aspx for more details. ...Show All
Visual Studio 2008 (Pre-release) ComboBox problem! How to show a part of SelectedItem.....
This is the ComboBox: <ComboBox Width="200" Height="30"> <ComboBoxItem> <WrapPanel> <MenuItem Width="20" IsChecked="True" ></MenuItem> <TextBlock >Hello</TextBlock> </WrapPanel> </ComboBoxItem> <ComboBoxItem> <WrapPanel> <MenuItem Width="20" IsChecked="True" ></MenuItem> <TextBlock >World</TextBlock> </WrapPanel> </ComboBoxItem> </ComboBox> When I choose one item, the whole item is sh ...Show All
Windows Forms Passwords
Hey, how do you make it so a program has a login and the password is set to test and in a certain part of the program you can change the password and once you change it then when you log into the program next time it will be what you set it to Thanks http://www.codeproject.com/vb/net/registry_with_vb.asp ...Show All
Visual Basic What is the correct way to send a aspx binary file
I have secure files, and dynamic files that need to be sent on request, with a length of file, and filename I have code that does this, but it causes IE to crash, firefox it works fine What is the correct way to send a aspx binary file Requires Length of file Name of file This is a vb forum, this question is more approriate, and will stand a better chance of getting an answer on the asp.net forums ...Show All
SQL Server Table created in SQL Query Analiser won't work
Hi all, We're facing a rather strange problem here: Oe of my colleagues is trying to create a table using Sql Query Analiser. the "create table" command returns no errors. But when we try to access the table, it says it's an invalid object name. I've checked sysobjects, and the objetc is there. Can someone give me any clues Thanks Can you include the 'create table' command that was used Chances are that it was created in the user's default schema, or in a schema other than 'dbo' and your default schema's don't match...if you can get the schema that the table was created in, try ...Show All
