AllianceSoftware's Q&A profile
Windows Forms printing
Hi This is the first time I am using the printing class. What I want to do, is perhaps like everyone else, customize the layout of a page and print that page, putting in the appropriate values and so on. How do I go about creating such a page, where I can position, say, a logo on the top center of the page, then a line below that, the address and so on - like an application type form layout. how can I achieve this in C# (.NET 2.0 ...Show All
.NET Development .NET High Speed Timers - Precision/Accuracy
There are 3 timer types in .NET (System.Windows.Forms.Timer, System.Timers.Timer and System.Threading.Timer) From the documentation the System.Windows.Forms.Timer timer interval precision is one-eighteenth of a second (55.55 milliseconds). http://msdn.microsoft.com/library/default.asp url=/library/en-us/vbcon/html/vbconlimitationsoftimercontrolsintervalproperty.asp I cannot find any details on the other timers precision/accuracy. I want ...Show All
Visual Basic Passing a structure with arrays of fixed length strings to a DLL
Hi, I need to be able to pass a structure to a DLL that has arrays of fields of fixed length in it. In old VB6 this could be done by having types with types type repeatingRecord field1 as string * 2 field2 as string * 5 end type type maintype field1 as string * 7 records(10) as repeatingRecord end type In .NET types become structures and fixed length strings no longer exist. However the attributes 'VBFixedString' and Marshal ...Show All
SQL Server SQL 2005 left join not working via OLEDB
Hi After chasing around a problem I have closed it down to just the following - I have two simple tables in my database linkme linkme2 both of which have one column called [catalog-no] I have put one record in linkme select * from linkme -- pulls back one record correctly via .asp page and management studio select * from linkme left join linkme2 on linkme.[catalog-no] = linkme2.[catalog-no] -- pulls back one record in management studio and ...Show All
Visual Studio Express Editions Using ListView SelectedIndexChanged Event to Show Forms
I'm really hoping somone can help me with the below problem. I posted it originally in the Windows Forms forum, but so far haven't gotten a reply. I truly would be grateful for any help!! I have a ListView called TrainingListView that has a collection of 12 items. Each item represents another form that I would like to show if the user clicks on it. My problem is that the items in the collection don't appear to have a click event, so I need ...Show All
SQL Server What SqlDbType should I use for nvarchar(MAX), varbinary(MAX), etc?
I'm making use of the new MAX Yukon datatypes, as opposed to ntext,image. I do a lot of work with stored procedures in the 2.0 framework, but when I set them up, I'm not sure what SqlDbType to use. Ntext Nvarchar Variant Thanks, Erick http://msdn2.microsoft.com/en-us/library/a1904w6t.aspx ...Show All
Visual Basic [vb 2005 expr] Killing a copy-dir process
Hi. In my VB 2005 express application I make a copy of one remote directory (connected as a net unit) to my local hard disk with this line: My .Computer.FileSystem.CopyDirectory("F:\namedir1", "C:\namedir1", True ) This works inside a backgroundworker thread. When I cancel the thread, the copy still goes on, especially if the source-directory is big (some Gb). I want to stop immediately the copy, how can I do this Is there a way to know ...Show All
Windows Search Technologies WindowsSearchSafeFilter.exe takes all available CPU cycles
Anyone seen this before After I install WDS, this process will take over all available CPU cycles, stopping me from using my system. I have disabled my On-Access AntiVirus scanning and it did not help the issue. Thanks in advance. Hi, any news on this issue It started happening to me a week ago (after a few months of WDS usage) and it practically renders my computer unusable every now and then (takes 100 ...Show All
Visual Studio Express Editions Exception thrown in a ClickOnce installation
Hi again, Sorry, but I have another ClickOnce problem. My program runs without exception in the development environment, but the ClickOnce RUN version throws an exception in the form.Load event. Private Sub Form1_Load( ByVal sender As Object , ByVal e As System.EventArgs) Handles MyBase .Load Try Dim fileStr As String = "..\Images\" doorPic(0) = Image.FromFile(fileStr + "Door1.gif&quo ...Show All
Visual Basic 2-Dimensional Array Info Extraction
I am just starting to learn VB.NET coding, so please bear with me. My problem is as follows: I have an 2-dimensional array with both male and female names in the first column. The second column has the gender of each of the names. The names are loaded into a list box. I need to be able to extract the gender from the array when each individual name is highlighted. I have been trying to get this done for the last three days with no success. I ...Show All
SQL Server sp_dboption
I noticed that BOL says that the above is possibly going away. What's the official way to print out all your db options once it goes away, i.e. what are we supposed to do to quickly look at dboptions with doing sp_dboption 'databasename' No arguments on the method. However.... sp_dboption also allowed you to SET options. Most of those are covered in the ALTER DATABASE statement, but I can't find any way of ...Show All
Visual Studio 2008 (Pre-release) SVCUTIL only generates config, no proxy class
First, let me set up my scenerio before I ask my question, because my approach to the scenario may be wrong to begin with: I have my Service Contract (interface) in a seperate DLL (MyContract.dll) than the Service implementation (MyService.dll) because I wanted to deploy the interface with the client (as well as the service) so that I can have the option to bypass the WCF Framework if my service is running on the same machine as the clien ...Show All
Windows Forms Modify setup.exe?
I just found out that the download URL of prerequisites are written directly to the generated SETUP.EXE! In my previous post, I found the solution to dynamically modify the URL in .application files. But I also want tell SETUP.EXE to download from a URL that is only determined after Publish Wizard runs. But I know modifying Windows PE file is evil. Is there still a workaround Thanks! I founnd a class GenerateBootstrapper in Microsoft.Buil ...Show All
Windows Forms Migrating from PowerBuilder to VB.net
Can somebody point me to training that will assist me from migrating from Powerbuilder to VB.net. There are several things that I have trouble conceptualizing in VB.net. In PB I am using the PFC (Powerbuilder Foundation Class library), which provides with a& ...Show All
Visual Studio Tools for Office HOW TO: Bypass Office 2003 SP1 bug that asks for the template file to be saved every time
Hi, I have been asking so many questions regarding issues with VSTO that I was feeling a bit guilty so I thought I'd give something back by posting this simple solution to an annoying problem. When you create a new Word Template project and just run it without adding any code, on closing the Word document opened, when using Office 2003 SP1, you will be asked whether you would like to save changes made to the document's temp ...Show All
