Domini's Q&A profile
Windows Forms ClickOnce + Installer
Hi guys, I am facing some problems implementing ClickOnce in my application. 1. Why ClickOne didn't let user to add their folders .. My application require some files place into the client computer <Program Files> 2. How to customize the setup file in ClickOne 3. What is BootStrapper all about Can BootStrapper solve my problems Anyone can provide the download site, as the official of the download site has gone dead. Thanks ...Show All
Windows Forms How to install a scheduled task?
In my setup project, I would like to deploy a scheduled task into customer's PC. But I have totally no idea how to do it. Please advice. I will grade your answer. Thanks This might be what you need: http://www.codeproject.com/csharp/tsnewlib.asp There's no built-in support for creating scheduled tasks so you'd have to use this interop code. ...Show All
SQL Server Format / Alignment
Does anyone else have this issue When making a report with VS2005, things get spaced out wierd and dropped down when deployed to the web I can't get things like images to position properly. Does it have anything to do with the fact that I am using a Matrix For example, I create an image and embed it, I have it all the way to the left of the form and when deployed it is more towards the middle of the page Very frustrating, just wondering if anyone has any tips/solutions. I figured out a way around it in case anyone has the same problem. Keep the Matrix in the body and create a header and footer to put all the other stuff in. Everything is fine now. ...Show All
Windows Forms Font is Combobox text?
I have another question about this...How would you set the size of the text becuase I have this: RtextboxUC thisrichtextbox = GetCurrentTextBox(); thisrichtextbox.TextBox.Font.SizeInPoints = new Font (thisrichtextbox.Font, TextSizeCombo.SelectedItem); but I get 2 erros with the thisrichtextbox.TextBox.Font.SizeInPoints = new Font (thisrichtextbox.Font, TextSizeCombo.SelectedItem); 1:The best overloaded method match for 'System.Drawing.Font.Font(System.Drawing.Font, System.Drawing.FontStyle)' has some invalid arguments2:cannot convert from 'object' to 'System.Drawing.FontStyle' Thanks :) sorry about that sudden leave, I worked my way around that and have been very busy, and still kinda am ...Show All
.NET Development Debugging mscorwks
>What if you did stop inside the runtime >What if we did allow a debugger to stop at a native breakpoint inside the runtime, but just refused to execute the helper-thread and thus >temporarily disable managed-debugging functionality In theory, this would work. In practice, it would be a bad user experience >because: > - you couldn’t get a managed callstack since the helper-thread can’t run. Thus you wouldn’t be able to see what managed function called into the runtime. > - You’d be stranded at the native breakpoint. You could step within the native code, but without the helper running, you could never step back across the native a managed boundary. Except that there is a window in ...Show All
SQL Server "where" in DTS
i try use "where" to filter record for result but when i run , there is a message error task. select flattened (select * from predict ([model name].[table name], include_statistic) where [$support] >0 ) as ph from [model name] prediction join ..... can onebody help me error that it messesage: " there an error occur in task". no more information to know what error and where error in query. what's different between INCLUDE_STATSTICS and INCLUDE_STATSTIC ...Show All
.NET Development How to animate in the console?
Hi, how can i "animate" the Text in the console, so that i can show that something is going on. e.g. . .. ... . .. ... usw. You know what i mean I've seen this kind of animation several times, but i don't know how to do that. using System; public class MyClass { public static void Main() { bool done = false ; int n = 0 ; int m = 0 ; string waiting = ""; Console.Clear(); Console.WriteLine(" Doing some work "); int line = Console.CursorTop; while (!done) { Console.SetCursorPosition( 0 , line); if ( ++n == 6 ) { n = 0 ; m++; waiting ...Show All
.NET Development MSDN library installation
Hello to all and i am sorry if this is not appropriate place for placing this question. I know that MSDN library is now free to download. What I do not know is next. Is it possible to install this MSDN without Visual studio 2005 I have Visual studio C# express and its MSDN, but i need to read some stuff concerning Win32 and COM, which is not in MSDN express library. Is there a way to add some parts of full MSDN to express visual studio But what is primary is that if there is a way to install MSDN without Visual studio 2005. Thanks in advance. ...Show All
Windows Forms Working with grid & SnapTo
Hi everyone, I'm going to make a program for children of 11years old. I want to make it possible for them to practise their math exercises with mirroring. So I show a grid with a figure and a horizontal or vertical ax, and then the kid has to draw the mirrored image on the other side of the ax. To do this the student can click on different points of the Grid and create the figure this way. Now my problem is, how do I make it possible that the child can click on these points and is it possible to create a "SnapTo" in all this Meaning that If the child click somewhere close to the point that it still gets selected.. Any help would be appreciated. Kind regards, Tobias Yes, this is ...Show All
Visual Basic Using VB6 dls in .Net projetcs
Is calling VB6 functions and dlls part of COM Interop or we don t have to go through COM Interop to use VB6 dlls. thanks Yes, you call into your VB6 DLL through COM interop. From Visual Studio 2005, just add a reference to your VB6 DLL, and call it like it's a .NET class. When you add the reference from Visual Studio 2005 it generates a wrapper that does the COM Interop for you. ...Show All
Visual Studio Sndcastle: why XML docs needed for 3rd party dlls
Just downloaded and installed Sept CTP for Sandcastle and the Sandcastle help file builder GUI. Immediately ran into either one of two problems - errors about "can't find assembly" on a dependency - insisting on following all the dependencies. - error about not being able to find a .xml file for a 3rd party dll (for which I don't have). Questions - why must all dependencies be resolved - I only want to document the top level classes - why must all the dlls have xml files I got things working by faking out a shell of a .xml file for the 3rd party dll, but unclear on why this these requirements on dependencies/xml files exist. Neil T. Ahh, was not clear on the role of dependencies. Not a lot of documen ...Show All
Visual C# Reversing Rows of an Image in a Byte Array
My core dilemma is to read each line of an image and then flip those rows bottom to top while keeping the columns of the image the same. I know that Array.Reverse() is close to what I need, but it messes up the columns. The reason why I need to do this, is because .bmp images are apparently "bottom up" and my other functions don't understand that the image data is "bottom up", so I need to find a way to account for this "bottom up" structure. The only general advice that I received was there should be 2 for loops and for each column (0 to width) do (row * linedelta + column) and swap that with (height - current row -1). But I'm still confused on how to write the code. My Code: int Line; long LineDelta ...Show All
.NET Development System.Data.Common vs System.Data.<specific>
Hello, I am writing a set of classes to help me with some fairly routine tasks involving querying and downloading data from remote databases. There are a number of databases I use from time to time, each of them on different platforms, including SQL Server, Oracle and Sybase. I'd like to make my classes as generic as possible, so I can use a one size fits all approach. What I'd like to know is if there are any serious performance penalties in using the System.Data.Common classes rather than their platform specific counterparts (eg System.Data.SqlClient). As I say, I am really only interested in server side queries, and collecting data through a data reader. To be specific, would there be any reason why the following two snippets w ...Show All
Visual Studio Express Editions How to clear textboxes text
Hi! Members Pls tell how to clear all textboxes text in the same form within a single click on the button. without using this sytax: textbox1.clear textbox2.clear - - - - and so on. in button click event Thanks Amit does this help for each currentControl as Control in Me .Controls if TypeOf currentControl is TextBox Then Dim theTextBox as new TextBox theTextBox = DirectCast (currentControl, TextBox) theTextBox.Text = "" end if next ...Show All
Visual Basic bubble sort in a list box
OK, from what I understand, I would be better off trying to sort numbers in a bubble sort in my listbox. I used the listBox.sorted = true but that does not sort larger numbers correctly., What is the code on this bubble sort and do you just call it in a subroutine Here is the problem with the sorted list command. It does not work correctly with numbers. If you have a numeric list, and the numbers are bigger than 9, or have decimals in them you are out of luck. This is something that MS needs to address in their next code upgrade. Having a single line call for a bubble sort or other types of sorts, be they numeric or whatever would be great. The problem is that the sorted lis ...Show All
