|
Can anyone point me in the right direction. We are developing an application in C# and would like to create a framework where 3rd party developers can develop forms in HTML/JScript and be able to plug them into our application.
We are developing a CRM system. The main framework will obtain data from the database and then if the user wants to access this 3rd party form, we will load the form in an embedded IE. What we would like is for the JScript inside this page to be able to access our internal object and access the same data that the rest of our framework has access to.
I know that I can access my object as a COM object from within the script, but that would be a different instance of my object.
The other possibility is to have the framework call a known function within the JScript and make itself know.
We are at very early stages of this project. Can you suggest resources where I can find more about this integration? Do you think this scheme is workable?
Patrick Hill
|
|
|
|
|
hey guys....and girls.. i need some help with the crownwood magic libray if you are fimiliar with it... i shouldnt need help cause i have had this problem before..and fixed it....but i lost the source code i fixed it on..and im stumped lol......anyways i need to know how i can display my pop up menu even infront of a richtextbox..... here the code on how i display it
<br />
protected override void OnMouseDown(MouseEventArgs e){<br />
if(e.Button == MouseButtons.Right)<br />
{<br />
try{<br />
OnControlButtonUp(this,e);<br />
}catch(Exception ex){MessageBox.Show(ex.ToString());}<br />
}<br />
return;<br />
}<br />
protected void OnControlButtonUp(object sender, MouseEventArgs e)<br />
{<br />
if (e.Button == MouseButtons.Right)<br />
{<br />
Control ctl = sender as Control;<br />
PopupMenu popup = new PopupMenu();<br />
MenuCommand menu0 = new MenuCommand("-"); <br />
MenuCommand menu1 = new MenuCommand("&m3");<br />
MenuCommand menu2 = new MenuCommand("&m2");<br />
MenuCommand menu3 = new MenuCommand("&m1");<br />
MenuCommand menu5 = new MenuCommand("&m4");<br />
MenuCommand menu4 = new MenuCommand("-");<br />
MenuCommand menu6 = new MenuCommand("&m5");<br />
MenuCommand menu7 = new MenuCommand("m6");<br />
MenuCommand menu8 = new MenuCommand("m7");<br />
popup.MenuCommands.AddRange(new MenuCommand[]{menu0,menu1, menu2,menu5,menu3,menu4,menu8,menu6,menu7,menu4});<br />
MenuCommand selected = popup.TrackPopup(ctl.PointToScreen(new Point(e.X, e.Y)));<br />
if (selected != null)<br />
{<br />
if (selected == menu1)<br />
{}<br />
else if(selected ==menu2)<br />
{<br />
} <br />
}<br />
}<br />
}<br />
thank you..for reading this..... Magic Library [^]
|
|
|
|
|
richTextBox.ContextMenu = null; if I rememebr correctly.
Who is this miscrosoft, and what devilish plans have they for us?
|
|
|
|
|
|
I am trying to figure out how to perform a bulk insert from C#.
Can anyone help me?
Darryl Borden
Principal IT Analyst
darryl.borden@elpaso.com
|
|
|
|
|
Darryl Borden wrote:
I am trying to figure out how to perform a bulk insert from C#.
Not sure of the exact criterion you have, however BCP works extrememly well when dealing with really large datasets. We used it with SQL Server 2000 often.
Nick Parker
The only man who never makes a mistake is the man who never does anything. - Theodore Roosevelt
|
|
|
|
|
I am trying to compile a project using the command line compile and I am running into a problem. I have two forms (Form1.cs and Form2.cs) Form2 includes an IE WebBrowser (AxSHDocVw.AxWebBrowser). The program compiles and runs fine when compile within VS.Net; however, when I use csc.exe I compiles, but when I try to run the form with WebBrowser embedded in it, I receive
“Could not find any resources appropriate for the specified culture (or the neutral culture) in the given assembly. Make sure “Form2.resources” was correctly embedded or linked into assembly “xxx”"
I used the following lines to compile:
> <code>resgen Form1.resx</code>
> <code>resgen Form2.resx</code>
> <code>csc /t:winexe /out:xxx.exe
/r:Interop.SHDocVw.dll
/r:AxInterop.SHDocVw.dll
/r:Microsoft.mshtml.dll
/resource:Form1.resources
/resource:Form2.resources
Form1.cs Form2.cs AssemblyInfo.cs</code>
Any suggestions are welcome.
Patrick Hill
Myers Internet, Inc.
|
|
|
|
|
Try the /compile option on resgen, (resgen /compile Form1.resx ).
Also, when VS.NET compiles the resx it gets named [DefaultNamespace].[Form].resources. So the /resource option to csc might need to be changed to /resource:Form1.resources,[DefaultNamespace].Form1.resources .
Good luck,
James
"It is self repeating, of unknown pattern"
Data - Star Trek: The Next Generation
|
|
|
|
|
Thanks James!
The key is specifying the fully qualified Namespace for the csc.exe
namespace Foobar
{
public class Form2 : System.Windows.Forms.Form
{
...
csc.exe ... /resource:Form2.resources,Foobar.Form2.resources ...
Patrick Hill
|
|
|
|
|
Help-
I'm developing a calendar application for users to schedule events and i was wondering if anyone here knew how we could develop a program for the users to email the system administrator directly from the website
Thanks a ton.
|
|
|
|
|
After reading several articles i've managed to get a web control in my windows forms app. The problem is that it still has the default Internet Explorer right-click menu.
How do I disable it?? My plans for world domination depend on this!
"Where would you rather be today?"
|
|
|
|
|
You could handle this in the event handler function or disable right-click event
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Jonny Newman wrote:
After reading several articles i've managed to get a web control in my windows forms app. The problem is that it still has the default Internet Explorer right-click menu.
Implement IDocHostUIHandler interface:
http://www.codeproject.com/csharp/advhost.asp [^]
Using the ShowContextMenu method you can show your custom context menu, or leave it clean to get ride of IE's default context menu.
Jonny Newman wrote:
How do I disable it?? My plans for world domination depend on this!
Now you can disable it... and dominate the world
Cya
|
|
|
|
|
Hello,
Can anyone please tell me how I can display the columns in my own way?
In my program, I linked the C# program with the database (.mdb) and
used a DataGrid to display the data. However, I realized that the column
headings are in alphabetical order from left to right, which is not what I want.
How can I change the setting? Thank you and appreciate any help!
|
|
|
|
|
You could use the OleDbDataAdabpter's DataTableMapping object.
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Hi folks,
whats the easiest way to launch an executable from my prog and activate it's main window (put the focus on it)?
Thanks a lot!
Matthias
You'll never master any language, except maybe VB, because there's nothing to it. (Lounge/Christian Graus)
www.mattbart.org Sonork ID: 100.32002
|
|
|
|
|
Well, somebody should have a look at the Process class in the System.Diagnostics Namespace.
Sorry for the spam
Matthias
You'll never master any language, except maybe VB, because there's nothing to it. (Lounge/Christian Graus)
www.mattbart.org Sonork ID: 100.32002
|
|
|
|
|
System.Diagnostics.Process proc = new Process();<br />
proc.StartInfo.FileName = executablePath;<br />
proc.Start();
Mark Sanders
sanderssolutions.com
|
|
|
|
|
i'm working on C# and asp.net.i have a link button and when i click on it i want to navigate to the give page.but it is not working.can anybody give a solution to this problem .
i have another problem.is it possible to explicitely convert system.io.directory to system.io.directoryinfo.
how to convert void to string type explicitely?
|
|
|
|
|
Greetings ....
I have a DLL I wish to call from an application C# Windows app and it works fine. Calling the DLL from a console application also works fine.
However, when I try calling the console application from a web service it won't work. I'm sure this is a security issue. Can someone help ?
THKS in advance ..
|
|
|
|
|
I would assume the ASPNET user id doesn't have permission to execute your console program.
Paul
Pleasently caving in, I come undone - Queens of the Stone Age, No One Knows
|
|
|
|
|
You will need to give execute rights to ASP_NET user for the exe file.
Who is this miscrosoft, and what devilish plans have they for us?
|
|
|
|
|
Hi Leppie,
First of all thks for the reply. What I did try ( I know this is not a good thing to do ) is make the asp.net user account an administrator. That didn't work.
How do you give execute rights to the asp_net user ? Is this the same thing I did. If so it doesn't work.
From my Web Service I can call OTHER console programs just fine. Its just this one that I can't call. Also, I can only seem to run it from an application or in the console. Is there any way I can impersonate or somehow make the console program think that its being run from the desktop ? Is this possible in Web.config or some other way ?
I've been stuck on this problem for 2 days now .. I can't seem to get it running ..
Do you have any ideas ?
|
|
|
|
|
What is the expression to split the following string on the comma with the exception of within quotes?
BT2921893081,071200000006,"Duck, Donald",539485988
Result:
BT2921893081
071200000006
WENTHOLD, HEATHER
539485988
Thanks!
ed
Regulation is the substitution of error for chance.
|
|
|
|
|
Hi,
use the System.Text.RegularExpression-Namespace
string reg = "^(<group1>.*?),(<group2>.*?),\"(<group3>.*?)\",(<group4>.*?)";
Match m = Regex.Match("BT2921893081,071200000006,\"Duck, Donald\",539485988", reg);
U can now find all matches in "m". i.e. m.Groups["group1"]
Hope it works, i have not tested any piece of the code snipped.
Greating, Jan
|
|
|
|