|
I built a console application however, I don't want to recreate this project as a class library. Can anyone show me ow to build as a dll using the the configuration properties?
|
|
|
|
|
Just change the Output Type (Right click on project in Solution Explorer, click Properties) to Class Library.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
The attributes under configuration properties/build/Outputs are output paths,XML documentation file, Generate Debuggin info, Register for com interop........There's no option for changing to a class library.
|
|
|
|
|
|
I have a big question for .Net Remoting pros:
I use a remote server which watch files and detect when modifications become. The server is a winForm. Then, I have Web clients which subscribe to the event "file modification" and have to do some work when the event fired.
- The remote configuration is ok because if I declare a simple function in the interface (link between server and clients), clients have access to this function and it work well.
- The problem is when the event fired, clients don't execute the code I put in the corresponding method in the WebForm. When I execute with the debug mode, I see that it enter well in the method and execute the code I put into but nothing happens. For exemple, I just test with displaying a message in a textbox when the event fired.
The webClients enter well in the receiveevent function, execute the corresponding code line, but there is nothing in the textbox.
I understood this is because it's the IIS which calls and react at the event and not the html page, the clients. In fact, if I tranform my web clients in WinForm clients, it works well: the code is really executed.
But I don't know what I have to do and I'm very tired and my brain too. Because I have searched on the Web for a week, 8 hours per day and I didn't find anything. There are all .Net remoting solution except this case: Web clients which subscribe to event fired by a server application. There are Web clients which communicate with a server but without event or WinForm clients with event.
So I really need some help, please... I will be very grateful about your help. Tell me if there are information lacks in my explication.
|
|
|
|
|
Hi
I am trying to use the EM_GETLINE message to get the text of a particular line but i am not able to send the last parameter i.e the lpram..for the SendMessage function... anyone plz let me know how to do this... i am doin in the following way
char[] buffer = new char[255];<br />
buffer[0] = (char)255;<br />
Message msg = Message.Create(this.Handle, EM_GETLINE, (IntPtr)Index, (IntPtr)buffer[0]);<br />
base.DefWndProc(ref msg);<br />
return msg.Result.ToInt32();<br />
but it gives me a error like.. "Attempted to read write protected memory. This is often indication that other memory is corrupt." F1! F1!
cheers
Chettu
|
|
|
|
|
I have an MDI application and I want to show/post messages from the child forms. How can I do this? Any examples?
|
|
|
|
|
make form & statusbar public
create object of mdi form
access statusbar's object using mdi form's object
access the properties of status bar like
objMDI.objStatus.Panels[0].Text="message";
thats all,
Atul
|
|
|
|
|
What on earth are you smoking?
You don't have to creat an object of anything... See my reply to the OP.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Easy. Make a public method on your parent MDI Form and call it from your children...
public void StatusMessage(String message)
{
}
this.MDIParent.StatusMessage(@"My status message goes here...");
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
im stuck here. right now i've a long form with groupboxes in it. when i run and display my app, the form is longer than the height of my window screen. i would like to shorten my form to be shorter than that of window screen. i want to add a vscrollbar in the form so that i can shorten the form and still be able to scroll through all my groupboxes. i've no idea how to reduce the size of my form and yet be able to scroll through all the groupboxes.
also, how do i create a link (say when i click on a button in form 1, it will display form 2).. im not sure whether u call that linking or is there a term for this kind of action?
pls help anyone..
thz.. appreciate your help.. =)
|
|
|
|
|
u can use tab strip control or
just use panels, this will show scrollbar as u want.
atul
|
|
|
|
|
On your Form set the property "AutoScroll" to True.
|
|
|
|
|
Hi!
I have this herculian task of converting an asp.net web application written in classic asp style(Application Logic and Presentation in one .aspx file) to Code-Behind and UI style.
Any tips or strategies with regard to this dirty job are welcome
Best Wishes
|
|
|
|
|
You might want to ask this in the ASP.NET Forum.
But in my humble opinion - scrap it and rewrite the thing from scratch.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
actually, I want to get the mean values of the intensity in each sub and then to get the global value,
so, first I need to classify an image into subimages, and want to store each sub image in separate memory space, and
anybody, knows
thanks!
shakeel
Image Processing & Multimedia Lab.
computer Engi. dept.
pknu. korea
|
|
|
|
|
hi
i need to change Cells[1].ToolTip backColor and foreColor,
is it possible?
|
|
|
|
|
eat your feces and you'll find the solution
damn this site!!!
|
|
|
|
|
You had a monkey throw its crap at you recently, haven't you? Caught you square in the face did it?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
The ToolTip class doesn't support this. You can try this[^] article here on CP, but I don't know if it's going to help you. The code isn't documented or explained very well, as you can see by the articles rating.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
When I play a video(*.mpg) with Window Media Player, how can i get the detail format(eg. start & end time, duration, frame/sec, file size) of the video?
I use AxMediaPlayer to represent the WMP. Thanks for your help.
|
|
|
|
|
Hi guys,
I have two checkboxes on my datagrid and I have an event that fires whenever the first checkbox is checked (code follows)... but I don't know how to figure out where (what index) the checkbox that fired the event is coming from!!! Please Help!!!
private void cb_CheckedChanged(object sender, EventArgs e)
{
bool bIsChecked;
CheckBox cbTemp = (CheckBox) sender;
bIsChecked = cbTemp.Checked;
if (bIsChecked && ((CheckBox)this.Items[THE INDEX OF THE SENDER!].Cells[1].Controls[0]).Checked)
((CheckBox)this.Items[THE INDEX OF THE SENDER!].Cells[1].Controls[0]).Checked = false;
}
Thanks in advance to anyone who helps me out!
|
|
|
|
|
Set the IDs of the checkboxes as you create them, or in databinding, or something.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
i'm trying to get my C# application to connect to a database which is located in another computer.
what are the steps required to make it function?
i have installed odbc .net data provider and i've tried using this connection string:
myConnectionString = "DRIVER={SQL Server};SERVER=localhost;UID=rfid; Trusted_connection=true;DATABASE=rfid;";
but it gives me a error of access denied or server doesn't exist, i'm not so clear about this, thus i hope to know what are all the steps required for both the client and server to do inorder to make this work
thanks!
-----------------------------------------------
BingLin
|
|
|
|
|
Try changing your SERVER name from localhost to the actual name of the server machine. To get the machine name, right click on "My Computer" and select properties. Select the "Computer Name" tab and you will see the "Full Computer Name".
Hope this helps
Craig
|
|
|
|