|
Do you want to automatically compile and run the text you outputted to your second textbox?
That's entirely possible, but before I look up an article about runtime compilation for you I'd like to know whether this was really what you had in mind..
|
|
|
|
|
Yes you are right
i dont want to compile but only execute.
but pasting it at desired place where currently i paste it manually
ignore the last line if you are not able to understand its about sequence/placement of auto. generated code.
|
|
|
|
|
|
WinSolution wrote: Then i click on a button and i generates a C# code as under and set as text on 2nd TextBox
updateCentralTracker("MDWH2813","10-May-08");
updateCentralTracker("MDWH2814","10-May-08");
updateCentralTracker("MDWH2739","10-May-08");
currently i copy the generated code from 2nd TextBox. copy it to my solution and rebuild & execute and then i click on the second button that executes the code and data is updated to the Central Tracker.
but i want when i generate the code on first run then i click on the second button and it should run that code at run time
Is it not possible to use the information from the text box directly? Something like "updateCentralTracker(string1, string2);"?
Is there some reason you have to create explicit string constants for the parameters?
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Thanks for your valuable contribution. both (Searril & molesworth )
Yes that is possible but as this data is going to be update in central tracker and is copy pasted from excel file and there are chances that it can break my algorithm in some conditions when data is not provided to me in expected format. so i want to confirm it once time by watching it.
another point ; i am generating code to avoid loop in case i don't generate code i have to go through each line and apply my algo on it and then to send update to tracker and i cannot also verify it visually.
so it will be best solution to the problem if i can rum my code at runtime in my opinion else there are 101 way to do it.
|
|
|
|
|
hi
I am using one C++ dll in my C# compact frame work application
C#
private void button1_Click(object sender, EventArgs e)
{
try
{
Message("vijay");
//OpenDatabase(hDB, guid);
}
catch (DllNotFoundException de)
{
MessageBox.Show(de.Message, "Dll not found");
}
catch (EntryPointNotFoundException ent)
{
MessageBox.Show(ent.Message, "Entry point ex");
}
catch (MissingMethodException me)
{
MessageBox.Show(me.Message, CallingConvention.Winapi.ToString());
}
}
____________________
C++ dll:
#include "windbase.h"
#include <string.h>
CEOID CeOid = 0;
CEGUID guid;
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
return TRUE;
}
extern "C" __declspec(dllexport) void __stdcall Message(TCHAR* p_szMessage)
{
MessageBox(NULL, p_szMessage, _T("Message from DLL"), MB_OK);
}
_________
This is my code but it is showing that message missing exception.
Can Any one help me in figuring out the error area.
Thanks in Advance
|
|
|
|
|
Hi all,
I want to run .ppsm file in slideshow window using c# in web based application without opening presentaion in powerpoint. I was given anchor link like following -
<a href="CD-12 Open Value Module EMEA and Latam BlackWhite.ppsm"> Open/Save </a>
When I open html page in IE8 & click on "Open/Save" link it launch a open/Save dailog box and when click on Open button it open the .ppsm file in powerpoint application but not run the file in slideshow window.
So please help me How to run the .ppsm file using C# in web based application.
Please give me an example if these are possible in any way.
Thanks in Advance
Regards,
Anil Dwivedi
|
|
|
|
|
Don't cross post please.
The web development (you posted there as well) or the asp.net forum is a better forum for this question.
|
|
|
|
|
Sorry for cross post. I didn't know which one is more appropriate.
Sorry once again
|
|
|
|
|
Hi Guys. I am working on a HTML editor. How do I retrieve the code from the selected element.
e.g. The user selects some text on the HTML editor, how do I retrieve the code
p> the selected text /p>
Thank you
modified on Thursday, May 28, 2009 6:32 AM
|
|
|
|
|
... maybe "whateverYourEditControlIsCalled.SelectedText" ?
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
A webbrowser does not support SelectedText
|
|
|
|
|
In your original post you said :-
jammmie999 wrote: The user selects some text on the HTML editor
From which I guessed meant he was selecting some text area in the editor you're writing.
However, if you're looking for a way to copy text from a browser window, including the HTML formatting tags that go with it, then I'm not too sure about that, as it's not an area I've looked at.
I think (but may be wrong) that using drag and drop you might be able to specify that you want to keep HTML formatting. Possibly paste operations can do something similar.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Hi Expert
i have a project of .Net last Month i give it to my Client after one month i want to stop Project To run at client Side but i am not any change in the .exe i.e i am not replace or re-installed the Software then how i can stop software at client end.
but the one thing is that my database is Common it is also not change in this period
|
|
|
|
|
If I am reading your question right:
1) A montha ago, you gave your client an EXE program you had written.
2) Now, you want to stop it working.
3) You cannot change the EXE file at the client site.
4) You have a database which both of you share.
If so, then you cannot stop the software running, unless you coded it to do that before you gave it to your client. You could remove the database, or remove the clients' access to the database, but I do not know what effects that would have on you, your client, or other persons.
I take it the client does not wish to pay the bill?
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
Not sure what you mean.
This is what I understood from it:
You deployed a program to a client's pc.
Now a month has passed and you want to stop the program from working.
You don't want / can't install a new version of the program.
The program uses a database that is common for all your clients.
If the above is correct then I don't think you can stop the program from working.
You could deny the clients IP from accessing your db (depending on your setup), that would render the program useless I guess.
If the above is incorrect then please explain more clearly.
|
|
|
|
|
Sometimes the dross questions are really awful that you just feel like chewing off a finger or two!
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Rajesh R Subramanian wrote: chewing off a finger or two
Don't do that (to much) or you'll be unable to answer the non-dross questions
But have to agree the level of the questions has gone down dramatically. I was just in a good mood so figured I'd give him the benefit of the doubt sort of speak.
Good mood is over now unfortunately, a elusive bug will do that
|
|
|
|
|
Disabling his access to the database server would be a first step to stop him from storing / reading information, that is if he doesn't have access to the database configuration string.
Even if he does he'd need the database structure to recreate the database on another server so that's a good step. Hold out on the database information until he fronts his bill.
|
|
|
|
|
Set up an access control list on your router to deny the customer's IP address.
|
|
|
|
|
Hi Guys,
Is it possible to pass multiple machine names to the ServiceController[]?
I'm basically trying to develop an application that will pull out a list of machines / IPs and windows service names from a SQL query so multiple services can be stopped / started at once. As there is a large number of services across multiple servers try to improve the control.
Now I tried passing the resultset into the "ServiceController.GetServices(IPs)" but the argument only returns the first machine name. I'm not sure if this can be done using an arraylist perhaps? (Quite new to C# so just trying to find my feet)
Is it also possible to limit the services shown i.e not all services on the machine?
Many thanks in Advance...
|
|
|
|
|
The ServiceController will only work with one machine. If you want to do multiple machines as the same time, you'll have to create a new ServiceController for each one of them.
Kunal Pandya wrote: Is it also possible to limit the services shown i.e not all services on the machine?
It will retrieve the entire list of services from the target machine. Which ones you show the user is entirely up to you. You don't have to list every service in your UI if you don't want to.
|
|
|
|
|
I have a Dotnet(C#) windows application
I have to access peoplesoft api from dotnet application ?
Please repond to this message
|
|
|
|
|
I'm afraid you'll have to read the manual that came with Peoplesoft API.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hello,
I have datagridview and a cellmouseenter event.
When the event accures it opens a tooltip and shows the cell value.
When the cell value is long it shows the toop tip in one line (long text). How can i split this text to some rows (according the number of strings in the cell value- i mean the cell has sentence and i want to split in to some rows in the tooptip)
|
|
|
|