628 byte By
AberAber at 2007-11-25 10:58:58
Hi,I've got a problem that I have two assemblies:Assembly A and Assembly BA class (inherited from a form) in Assembly B references Assembly A many times to get common resources and controls, and Assembly A then declares a variable of that class in Assembly B and shows the dialog. Unfortunately...
2345 byte By
DeepT at 2007-11-25 10:59:17
I have this factory class to make a bunch of objects for me. It has a table that matches class names with class objects and private methods to make them. It is pretty generic.Each time I make a new class, I need to add them to my factory.cs. I was wondering if there was a way to do this automagi...
Can the .Net framework be installed and execute programs from a user's local folder, i.e. not the Program Files or Windows directory, but the user's, for example, My Documents directory? I know you can do this easily in Java.<br/>Thanks.
i'm making a fraction class and a matrix class. Inside the matrix class i have a constructor that holds a 2d array of fractions. it works fine when only working with the 2d array of fractions, but i want it to work as a Matrix accessing each element of the array. <br/>thanks.
493 byte By
ireland at 2007-11-25 11:00:36
There's a static class with a static constructor in one of my asp.net applications assemblies, when does it's constructor get called?My problem is I'm finding it difficult to debug, I've only managed to set a breakpoint in VS once, it does not break at the breakpoint any more, th...
Hi,1st post - beginner - go easy (please).I've been using MS VS 2005 c# to write a prog, and its going OK. I need to be able to alter the Windows (Vista) windows style - from whatever its set at, to Vista Basic - globally (on the machine in question - not the whole wide world!) ie I dont want t...
1422 byte By
aryaan81 at 2007-11-25 11:00:48
Hi All,I am not a .Net developer basically,but I have been given the task to look into why an application built on .NET framework gets an error while trying to access our GUI which has been built on JAVA and STRUTS.I was trying to debug the application by putting System.Windows.Forms.MessageBox.Show...
522 byte By
peter7 at 2007-11-25 11:00:49
I have been asked by manager to create program to import data from web page to Database table. But web site which I am supposed to get data from uses PDF format. So program should go to particular web site pick data from PDF format and get info from that site into db table. I know how to do that whe...
Hi, working on a project, I'm used to C++ and learning C#.In your opinion, when I'm creating an instance of a class object, is it better to pass all of its member variables in the constructor or use Set(...) statements to initialize the member variables after it's created? Some of my...
250 byte By
michig54 at 2007-11-25 11:01:18
i have a textbox that is multiline and readonly, and text is entered into it programmatically using only the AppendText method. I want the textbox to scroll down to the bottom as text is appended. But it doesn't. Anyone have any ideas? thanks
my MultiplyRow function works fine and returns void. But as n is manipulated , m changes. Even though n was asigned to m before n was manipulated. I want to make it to where the values inside m don't change.thanks. here's the codeprivate static void AddMultipleOfRowTo(Matrix m) {...
469 byte By
gajesh at 2007-11-25 11:01:43
Hello,I am developing C# application which is having some hardware dependencies. While initializing application in one of my class i am starting all harware threads. When i modify some settings i need to restart the application.How can i make sure that all threads should be killed before doing Appli...
1310 byte By
Joemc at 2007-11-25 11:01:46
I plan on figuring this out myself and will post when i do, but if someone else can figure it out real easy just let me know :)I currently have CNC code that runs a machine and to cut an arc you useG02/G03G02 counterclockwiseG03 clockwisethere are two different ones:G02(G03) X___Y___I___J___where x...
i have a web page containing a table. i want to shuffle the rows of a table by using button click. i get it by using list box, but it is not suitable for my requirement. here i used two buttons for move up and move down the rows. kindly give me suitable code for this problem.<br/>with regards
616 byte By
gajesh at 2007-11-25 11:01:59
Hello,I am reading some settings from config file and save back in case of any modification.I am restarting the application by Application.Resatart() to read all the settings if modified.The problem is that while restarting the application it comes to Form_closing event only once abd don't kill...
122 byte By
MikeB at 2007-11-25 11:02:17
For some reason, my resources (dialogs, menus, etc...) are not showing up in the resource view. Any ideas?<br/>Mike B
449 byte By
sclement at 2007-11-25 11:02:33
HiI am writing a setup project for my c# app under VS 2005 professional. It works quite well, but i am having problems with one aspect. I am trying to create a directory in the root folder C\I thought I'd be able to do this by adding a custom folder to the "File System on the Target Machine"...
80 byte By
coricori at 2007-11-25 11:02:50
hi there<br/>how to make a singular/unique child form on a MDI application?
359 byte By
xargon at 2007-11-25 11:02:54
Hi everyone,I have a string that I read from a file and need to put in the database. The problem is that the string might contain characters that messes up my sql statement (so things like ', / etc.). Is there a way in C# to easily format a string variable so that it is safe to be used in SQL c...
1803 byte By
uab at 2007-11-25 11:02:55
Basically i am trying to find something like "checked state changed" event, but cant seem to find it.Here what im trying to do, its pretty simple.I have a checkedlistbox that creates a byte.[]bit1[]bit2[]bit3[]bit4...I want to create a label that displays the value of the byte based on the selected...
I have a SaveFileDialog that I use to get create or overwrite an XML file which is giving me some issues. It seems that whenever I have to bring up the dialog box, and I make the file name and save it, the directory path I saved the file to gets "stuck" in the file stream. Then if I do something lik...
In C++ suppose we have a function like this// Function Prototypevoid RetriveDetails (CString szName="Maverick");// Fucntion Bodyvoid RetriveDetails (CString szName){....................................................................................}Now when I call this function, If I don't pas...
i am using a list box(in asp page, from standard controls) in a table row for display the data. i want to add a image before every list item. it is necessary for me. is there any possibility to add a image before a list item?<br/>give me the solution with code.<br/>with regards
I've tried so many things for this and used the visual studio debugger over and over and i still can't find an algorithm that works. The problem is that it can be any size(of course). Here is the function i'm using to check if it is in final row echelon form. Anyone have any suggest...
301 byte By
visharad at 2007-11-25 11:03:30
I want to write code in C# to play .wav files. Are there any .Net classes or Windows APIs to do this? I tried using PlaySound API. But I want to be able to pause, continue, increase volume when an audio file is being played. I could not do it only by using PlaySound. Let me know how I should proceed...
404 byte By
torrud at 2007-11-25 11:03:32
Does the framework containing a method for embedding string data into HTML code? What I want is to embed a string fragment into a HTML page body. For doing it I have to encode for instance the '<' to '<' and '>' to '>' and '' to '&uu...
159 byte By
Quell at 2007-11-25 11:04:02
Hey.<br/>I was wondering if there is a way to get notified when SQL data has been changed in the database short of doing a query to check it?<br/>Thx
260 byte By
mirzahat at 2007-11-25 11:04:15
Hello,<br/>Im finishing my program that will be used as a child protection software in C#.<br/>I need some advice about the installation, how do I protect the program files folder when the program is installed on the target machine?<br/>Regards,<br/>Mirza
1186 byte By
grignard at 2007-11-25 11:04:25
I have some problems with .dll-library use. The program compiles without problems, but when I try to run the program there is an runtime-error: ConsoleApplication1 has encountered a problem and needs to close. We are sorry for the inconvenience. Is the code right and and if it is so what is what co...
112 byte By
mirzahat at 2007-11-25 11:04:33
is there any way to create a password protected setup of the program with innosetup?<br/>regards,<br/>mirza
1689 byte By
w0lfshad3 at 2007-11-25 11:04:38
I need something like in these apps: http://silverlight.net/samples/1.0/Silverlight-Pad/default.html (background dragging like a hand tool does).EDIT: need it inside a panel.EDIT2: also how do i implement the functionality of the middle mouse button click drag?I need to change mouse cursor on mouse...
560 byte By
DeepT at 2007-11-25 11:04:43
I have need of making a huge array. Like 1k x 1k.Clearly the size of the elements is of concern, because for each byte in size, the array will consume 1 meg of RAM.To minimalize this (because most of the array will be empty) I was thinking of just making an array of "object" which is essentally a p...
1028 byte By
chobo at 2007-11-25 11:04:44
Hi, I would like your guys opinion on this. I want to create an (application (web service)) in c# that resides on a web server that will be able to access a device and get information from it. I would like to have client programs written in c# to use this web service to get a real-time feed from the...
1228 byte By
gecka at 2007-11-25 11:05:15
Hello all! :wave: I'm trying to make my program more user friendly and the first thing that came into my mind was making the GUI fully responsive. I have a lot of methods that involve looping and other time consuming tasks. I created a window to show a message to user, like "Doing some task, p...
94 byte By
winprock at 2007-11-25 11:05:16
My assembly need some .ico files, how can I integrate the .ico files to my assembly? Thanks.
How do I use enum values from one class in another?I have this class:public class class1 { [FlagsAttribute] public enum ContainterTypes : int { CT_OUTLOOK = 0, CT_XML = 1, CT_SDX = 2, CT_SAP = 4 }; }and am simply trying to...
Hi,<br/>How I can put the Flash Animations on the Visual Studio C# .Net form?<br/>Can I put the animated gif image?<br/>Can I use the Flash Buttons?<br/>If answer is YESthen how can I do?
1876 byte By
w0lfshad3 at 2007-11-25 11:06:02
I found this in MSDN:ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETFX30SDK4VS.1033/cpref32/html/T_System_Windows_Forms_ScrollableControl.htm To manually override which scroll bars are visible, set the VScroll and HScroll properties. If either property is set to false, the corresponding scroll bar is not v...
2019 byte By
w0lfshad3 at 2007-11-25 11:06:03
EDIT: solved : http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2212130&SiteID=1&mode=1I create a panel inside a UserControl derived class; it represents the viewing window. Inside that panel i create anotehr that groups all my child controls. I add this code: private void panel2_MouseMove(objec...
1373 byte By
w0lfshad3 at 2007-11-25 11:06:08
Link to my project: http://files.filefront.com/MyMoOexe/;8688126;/fileinfo.htmlClick-hold and drag on the star map you'll see the problem, the tiled .png that comes into view doesnt' get refreshed and i don't know how to fix it.code responsible:private void panel1_MouseMove(object sen...
I need to set a flag in a secondary thread started in a form and read it into a method of another form.<br/>How do i could make it?
364 byte By
yoyosh at 2007-11-25 11:06:22
Please tell me if anyone knows a FREE WinForms control, that would support text editing (by end-user on GUI) in more "sophisiticated" format than *.txt (for example *.rtf or *.doc). (I know that there is possible to build that functionality over RichtTextBox control but this is quite a lot of unnec...
530 byte By
gajesh at 2007-11-25 11:06:23
Hello,I am having Form based application. I am creating another form on menu click of main application. I want to acess the parenter or creater of the second form within the second form.For ex.In Form1 Menu clickForm2 ob = new Form2()ob.MdiParent = thisob.show()within Form2(Save button click) i want...
298 byte By
JACKWEBS at 2007-11-25 11:06:33
Hi<br/>I run a windows service which writes to a file (ultimately I want to run a DTS but I'm just learning this).<br/>On starting the service I get the message:<br/>The service started and stopped. ...sometimes does this when it has nothing to do.<br/>ANy ideas on what causes this?
1361 byte By
w0lfshad3 at 2007-11-25 11:06:34
I am trying to set VScroll or SetScrollState on a Panel but i cannot access the protected members altough i read this: The protected keyword is a member access modifier. A protected member is accessible within its class and by derived classes....A protected member of a base class is accessible in a...
611 byte By
ee01ppa at 2007-11-25 11:06:41
Hi, AllHow do can i start and application which takes in two put parameter via command line. I have an application which requires two input paramenters at start up and i would like to use process.start() to initiate this process whilst passing in to the process the two input parameters. the process...
Hello,Please consider the following scenario: you are somewhat new to C# but you wish to be hired as a C# programmer. You've had enough of reading C# books and you would like to "get your feet wet" and start some coding. Also you are very eager to learn as much as possible for a start. Someone...
246 byte By
JACKWEBS at 2007-11-25 11:07:01
I'm using a timer but can't pass a parameter in ProcessDir.<br/>The error is method name expected.<br/>timer.Elapsed += new ElapsedEventHandler(ProcessDir("C:\\test\\"));<br/> timer.Interval = 5000;<br/> timer.Enabled = true;
733 byte By
JACKWEBS at 2007-11-25 11:07:08
This it of code doesn't seem to pick up anything:watcher.Path = ConfigurationSettings.AppSettings["directoryToMonitor"];I wrote an entry to the event log and it was just empty.Here's the config file:<?xml version="1.0" encoding="utf-8" ?><configuration><appSettings><ad...
3629 byte By
DeepT at 2007-11-25 11:07:10
Before I get into this, I googled this and came up with friend assemblies and the internal keyword. I do not think either is what I want.I currently have a situation where I need an architecture shift and I am not sure how to this. My current class setup is like this:Analyzer, abstract, provides...