PaulDaly's Q&A profile
SQL Server Table default value and data inserts using windows forms: It does not insert default value.
I've created a table with a "Price" field (smallmoney). I set the default value for that field to be '1,99'. Then i create a Visual C# application, and add my table as a datasource, and drag it onto my form as a textbox. The problem is that if I leave the field empty, and Save - the value saved in DB is NULL. I would expect that since no value is given, it would insert the default value, which is 1,99. Are there any easy way to achieve this Without hardcoding the default values again, in my application I tried changing the field to not allow nulls, but that just resulted in an error when i try to save, because the value ...Show All
Visual Basic How long a computer is on, and writing after some text
Well this is a two Q topic. First i want to know if there is any code for getting the time for how long the computer has been on Comptime.. Second how can i input text after some text in textbox For instance button1.click inputs the text "you" into textbox1.text But if the textbox1.text already has some text like "how are" then when button1 is clicked text should be input after "how are" and the text should be "how are you" If you want to do anything to or with a particular class the first thing you should be doing is reading help topic for that particular class and its member listing. That would have brought y ...Show All
Visual Studio Obtain log file contents?
After my MSBuild project completes, I want to be able to email the results of the Build to my developers. I have a <OnError ExecuteTargets="MyBuildFailedTarget"/> and am able to get my EmailTask to run from the MyBuildFailedTarget, but I need to access the contents of the log file so I can include it in the email I send. I'm specifying a log file name on my MSBuild commandline like this: MSBuild.exe /l:FileLogger,Microsoft.Build.Engine;logfile=MyBuildLog.log So the question is: From within the project file, how do I get the name of the log file specified on the commandline Or alternatively, how can I access th ...Show All
Visual Basic Project output path on network drive
Hello, I'm *trying to* transition to vb 2005 from vb6; All our current vb6 projects are on a network drive; However when in vb2005 i start a new project then the default path points to "C:\Documents and Settings\ava\Local Settings\Application Data\Temporary Projects\WindowsApplication1\bin" When i try to point to Z:\andreas\VB2005\ I get a message : "the output path is not trusted; the application may throw securuity exceptions when it attempts to perform actions which require full trust. click ok to continue click cancel to choose a different output path" How do I setup vb2005 as to compile all projects on the shared drive It is ...Show All
Windows Forms What is the KeyCode for the num pad Delete?
Hi, I am trying to support a calculator type function. When num lock is on, the DEL key which gives the "." value .. I am trying to find that key in Keys list. I found all the numpad values but that one I can't find. Please assist. Thanks in advance. ...Show All
Visual Basic Reading and Comparing REG_BINARY
I am currently programming a Tweak Tool, and am having some difficulty regarding registry entries in the REG_BINARY format. I know how to write this type of value to the registry, however what I am wanting to do, is read the exisiting value, and depending on the value that is set, change the index of a combobox. Thanks in advance. Hi sorry bout long reply time, I am still having the same troubles as before, I need to create the value 0e 00 10 01 as a REG_BINARY in the Windows Registry, however, when typing this into the RegistryValueKind enumeration, it says something about the letter not being a valid entry, ...Show All
Software Development for Windows Vista Questions about the new WPF/And Related
Okz, i've seen those videos on Channel9 about Vista, and i have a few questions. The previews in the taskbar on mouseover, or/and the previews in the alt+tab - will they increase your memory usage as it would having two of the same thing running (like say if im running notepad, put my mouse over notepad in the taskbar, and i see a mini version of the currently opened notepad, will this use as much resources as 2 notepads running ) The other is about XAML, and WPF. It seems really cool, how Vista looks, except will this be easily added to our applications in Visual Studio 2005 I watched the Internet Hearts video and it didnt talk that muc ...Show All
Smart Device Development auto-ftp ...
I'm working on an app based off of the CPP CE CameraCapture app, and I'd like to regularly FTP the captured media to a web server. I wrote the FTP library in C# (back when I was hoping to do the whole job in C#, before realizing how little DirectShow is exposed to managed code) and honestly currently lack the skills to crank it out in CPP. I'm wondering what is the method to carry out the process, end to end. The platform is currently a Treo700w - a WM5.0 Smartphone -- and will eventually be a Cingular 2125 -- also a WM5.0 Smartphone. Can I crank up my C# FTP app, have it poll the capture directory for new material every so often, and lau ...Show All
Visual Studio Team System Sharing issue in VSTS Source control
Hello guys, I'm trying to migrate our VSS database to VSTS Source Control and I don't really understend how can I make "sharing" happen at VSTS For example we have next VSS source tree: $root |-DummyProject |-Includes |-ProjectA |-ProjectB Both of them have shared files from <Include>. My question is: What is an alternative for us in VSTS in terms of do not re-organize our current code Thanks a lot guys. Two basic ways: Use different relative paths. Let's say your layout is: $/root |-Common |-CommonLib1 |-CommonLib2 |-DummyProject |-ProjectA |-ProjectB |-Includes |- [C ...Show All
Windows Forms Dragging a form around the screen
Can anyone suggest or let me know how I can drag (move) a form around the desktop by just clicking on the center of the form (with the left mouse button) itself and not on the title bar Thanks! There are a couple of ways to do this. You can find both alternatives <a href="http://www.syncfusion.com/FAQ/WinForms/FAQ_c50c.asp#q699q">here</a& ...Show All
Windows Forms Overlaping
Hi everyone, I am working on Vb.net and I want to make a simple Msgbox to pop up when two images over lap each other can u please tell me if you know thanx, Simon Ok here is the best I can Explain it!( I am using VB.net) I have a button and TWO picture on a form which are inline to make the pictures move I use this code: Public Class Form1 Dim mov As Integer Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PictureBox1.BackColor = Color.Aqua PictureBox2.BackColor = Color.Aqua mov = mov + 5 ...Show All
Visual Basic Automate MS Word Doc with VB.Net
I amtrying to pull info from a Sql Server to populate a word Doc using a VB.Net App any ideas Hi, If you're using Visual Studio 2005, a good place to start is Visual Studio Tools for Office: http://msdn2.microsoft.com/en-us/library/d2tx7z6d(en-US,VS.80).aspx There is a section for automating Microsoft Word tasks: http://msdn2.microsoft.com/en-us/library/78whx7s6 Regards ...Show All
Visual Studio Express Editions Starter Kits not Working
hi, i have VB Express & VWD Express install via full images, but the PayPal Starter Kit and Shareware Starter Kit does not apperar in the new project dialog. how can i fix this thanks, AB They are telling you to add your own name > YourMovieList Remove the $ - - - $ and the namespace would be called > safeprojectname, which does not represent much. Name it anything you want. Hope this helps. ...Show All
.NET Development multithreading issue - please help
Hi, I'm having big issues using multithreading. As it is quite difficult to explain I've made a sample application to illustrate my problem: http://graphicsxp.free.fr/WindowsApplication11.zip It starts a new thread, which DoWork function calls a delegate to do do operations on controls (tabcontrol, datagrid....) There is also a popup that contains a progressbar to show the progress in real-time. The problem is that updating the progressform in the delegate does not work, so I can only update the progressform before or after calling the delegate, which is pointless as progress should be updated as operations on control are being ...Show All
.NET Development How to share a variable among multiple consumers of a web service
Problem1. Need to share an int variable among multiple clients of a web service.Clients can read and write the value of the variable.declaring variable as static doesnt seem to work.How can i use the Application class in web serivce Problem2. I have created a class in Web service solution.And sending the arraylist of that class to client.Now need to cast this object[] (since arraylist is returned to client as object[] array) to that class,how can i do this Problem 1: You can't. Web Services are stateless, which means once it's done with the request, that data is no longer available. It's like a SingleCall in .NET Remoting... ...Show All
