JAVA WITH WINDOWS FORM?
Dear all,
I have a question about java with windows form.
I have an exe or DLL stand alone program make by visual basic 6.
Also I have a java software build up with swing.
Can the exe or DLL program executed inside the Java software?
It means I click the menu and select a function in the Java software.
And then the exe or DLL will be executed and a windows form will be pop up.
But I want to fake like a Java jpanel not a stand alone program run outside the Java software.
Is it possible?
Thanks you~~
All here,
You can do it ... we can hep!
Once you choose the exe you want to run, execute it via Process ... about like so:
String theWindowsProcess =
"notepad.exe"; // OR
// "runtc.bat"; // OR
// "cmd /C start /min /Dc:\\temp runtc.bat";
Process myProcess = Runtime.getRuntime().exec( theWindowsProcess);BTW ... this is a very common question.
Similar Messages
-
Problem with Windows Form called from SAP
I have a simple VB.NET windows form that I'm calling from a new menu click event from within SAP.
The form loads, as expected, when the menu item is clicked, but the form will always load outside of the SAP window and thus cannot be seen by the user unless they see it in their toolbar.
Has anyone run into this in the past? I would normally use the UI-API, but this is a form from another program that can't use the UI-API.
I've also tested this with simple test forms with another test project and get the same results.
Any ideas?
Thanks!This isn't merely a matter of viewing <i>new</i> windows.
When the SBO window is active and in full screen mode and one switches, using the task bar, to another application, more often than not the other application's window won't be displayed, or will be displayed but partially. One has to deactivate and re-activate the second window to see it correctly.
It's the whole bloody SBO graphical engine that's bogus, if you ask me. Talk about reforging <i>that</i> to a profit-oriented company...
@Marc Roussel:
BTW, System.Windows.Forms.Form#ShowDialog() is a blocking method, AFAIK. So the following statements won't be executed ere the "dialog"'s closed.
But this doesn't change the problem. The Activate() and BringToFront() don't help resolve the matter, in my experience. Sometimes the new form will appear on Z-top, sometimes it won't. Or maybe the true problem is that the window <i>is</i> on top, but doesn't get painted.
ADDENDUM:
Come to think of it, it might be worth a try to programmatically iconify/deiconify the new window. Something along the lines of:
Dim f as Form = ...
f.Show()
Application.DoEvents()
f.WindowState = FormWindowState.Minimized
Application.DoEvents()
f.WindowState = FormWindowState.Normal
Application.DoEvents()
(all in System.Windows.Forms Namespace) -
Strange Problem with windows form in SBO
Hi all
I encountered a strange problem
I have a standard .net windows form that I am activating from a menu in SBO
In the test Env. in our office the form always shows on top, whoever in the customer site first time you activate the menu the form appears correctly on top but when you close the form and press the menu again the form will appear "behind" the SBO.
The form will appear on top only the first time you use it.
The form is set to TopMost true
I also tried using the user32.dll functions of SetFocus and SetForgroundWindow
(I put them in the Activated event of the form)
But it made no difference first time form on top - the rest the from is behind
The form is run on a separate thread and as I said works perfectly in the test Env.
I am using .net 2005 with SBO 2005
Any Ideas ?
Thanks
RonnyHi Roni,
I think you will find the answer to your question in this thread.
https://forums.sdn.sap.com/click.jspa?searchID=3636651&messageID=844077
Regards,
Felipe -
Flexibility problem with ( window / form ) Position in forms 10g
Hi ,
I hope you are all Fine & Happy with oracle ;)
I' using Oracle Developer Suite - 10g
I SUCCEFULLY PUT THE FORM IN THE CENTER :D
but i have a proplem to make the position of a form flexible ?:|
First : I wanted to put the window in the center So that what i did
-===== Environment =====-
System : Windows XP
resolution : 1280 X 800
Browsers : IE , FIREFOX
JVM : sun java , Jinit
-===== Scenario =====-
MODULE name : MOD1
WINDOW name : WIN1
bq. bq. bq. |--> width 200 \\ |--> height 100
BLOCK name : BLK1
bq. bq. bq. |-->TEXT_ITEM : TXT1 \\ |-->PUSH_BUTTON : BTN1
-====== Action =====-
i add trigger " WHEN-WINDOW-ACTIVATED " form level
bq. bq. Declare \\ windows_name VARCHAR2(30) ; \\ screen_height NUMBER; \\ screen_width NUMBER; \\ window_height NUMBER; \\ window_width NUMBER; \\ x NUMBER := 0; \\ y NUMBER := 0; \\ BEGIN \\ screen_height := GET_APPLICATION_PROPERTY(DISPLAY_HEIGHT); \\ screen_width := GET_APPLICATION_PROPERTY(DISPLAY_WIDTH); \\ window_name := 'WIN1'; \\ window_height := GET_WINDOW_PROPERTY(windows_name , HEIGHT); \\ window_width := GET_WINDOW_PROPERTY(windows_name , WIDTH); \\ x := ( screen_width - window_width ) /2 ; \\ y := (screen_height - window_height ) / 2 - window_height; \\ Move_Window( windows_name, x , y ); \\ END;
-=== results ===-
when the browser is maxmized
screen_height = 600
screen_width = 960
window_height = 100
window_width = 200
x NUMBER = 380
y NUMBER = 150
this results are very nice to me BUT
--==== the problem ===-
when i resize the browser & reald the form it also detect that the display size still 960 , 600
so the form is shefted far from the targeted postion " center of the browser or to be specific - center of the java applet
While I noticed that any alert i create it position itself to the very center what ever i change the size of the browser or the java applet
-==== the Question ===-
how to detect the real size of the java applet
or
how the alert detect it's position to emulate it's code ?
or
is there any what to solve this problem :_| ?
Thanks
Edited by: user643438 on 17-Oct-2008 00:09Hi Frank,
Where do I explicitly provide the tnsnames entry to Graphics?
We are using SSO when running Form, the db connect string are store in each user resource of OID, where resource type = OracleDB. Also Neither the existing form (calls the
*.ogd) nor *.ogd has tnsnames/db connect code.
As for the actual TNSNAME setup, we have local env var -TNS_ADMIN w/value of "D:\Oracle\MidTiers\network\admin".
That we want all three oracle homes: Infra10g, MidTier10g, Dev6i use the D:\Oracle\MidTiers\network\admin\tnsnames.ora, sqlnet.ora.
Apparently, Graphics in D:\Oracle\Dev6i doesn't pickup
the TNSNAME setting @ Midtiers
Can you give us some pointers on this? thank you in advance!!!
-Kan -
Mixing Java with Oracle Forms 11g
What's going on is I wrote a program for work that allows the user to upload a document from their computer onto the database and then download it back later. Now I have to take that and integrate it into a button in Oracle Forms because our actual program runs from Forms. I imported the jar into the form and wrote a button with code I found online (modified slightly for my own use of course):
DECLARE
jo ora_java.jobject;
rv varchar(100);
ex ora_java.jobject;
BEGIN
JO := Upload.new;
RV := Upload.startUploadPage(JO);
EXCEPTION
WHEN ORA_JAVA.JAVA_ERROR then
message('Unable to load Upload page, ' || ORA_JAVA.LAST_ERROR);
WHEN ORA_JAVA.EXCEPTION_THROWN then
ex := ORA_JAVA.LAST_EXCEPTION;
message('Java Error');
END;
but when I tried to compile it I got:
Error 306 at line 8, column 8
wrong number or types of arguments in call to 'STARTUPLOADPAGE'
the java method that is supposed to be called here is:
public static String StartUploadPage() {
new Upload();
return Upload.StartUploadPage();
I did get from someone that apparently as written my code wont work anyway because apparently the jar importer in Forms doesnt transfer UI (ie Java Swing) and that in order to get the UI to transfer I would have to write a JavaBean on top of my code... but 1 I have no clue what a JavaBean is and the research I have done so far about it has just confused me more... and 2 I'm not sure what that has to do with the error considering that the method that is supposed to be being called by the line that threw the error doesn't have any JFrames or Java Swing of any kind connected to it... there is a tiny bit of Swing in the class to open up the first form that has the buttons for upload and download in it but that is all. I have 4 classes in that jar... 3 are the various Java Swing pages and have the absolute minimum logic in them possible... and the 4th one is the one that starts everything going, has the main class, and any serious logic that needs to be done the needed values are passed to that class and that class does all the work... that 4th class is the one that is being called in the PL/SQL. If it isnt any trouble could I maybe get a little help from someone on:
1. How to write a JavaBean to allow my program to work the way it is supposed to in Forms and
2. Why I am getting this error and how to make it go awaySimplemente deberias utilizar la webutil, no hace falta programar nada nuevo, con la webutil puede transferir de un puesto cliente a la database, o viceversa.
-
Ok, this is a pretty tricky one. Is there a way where I can tell java to execute windows commands? I mean, I would want to develop an app that when the user quits the java app, the machine would log out the current user using code. If somebody could give me any ideas how this can be possible, I would really appreciate it. The java app is going to be run from a JScript file that is going to be loaded as the user logs on to the machine. If anyone know of any way to do this with JScript as well, I would really aprreciate it. Thanks.
Jose BravoMaybe this is it, I'm not to windows savy but if you know the command to execute it should work. If it is a series of commands I recomend you create a batch file:
(for java):
import java.io.*;
try {
Process p = Process.getRuntime().exec("dir");
// if you want to get the shell output //
BufferedReader = new BufferedReader(p.getInputStream());
} catch(Exception e) { }
maybe this will work,
--Ian -
how to run java programmes in windows xp thru command prompt window.
Whenever i open command prompt window i have
c:\Documents and Settings\owner>
I need to get access to my java folder,how do i get there thru command prompt windowThe Windows command "cd" allows you to change the current directory. In fact if you type "help" at the command line it will list all of the commands you can use there. But I strongly suggest you know how to use your operating system before you start to use it to write programs.
-
Help! Java with Windows 98??
Hi everyone,
I downloaded Java JDK for Windows from the Internet
and try to compile a java program. After I use the
notepad to edit the file, I can not open it. I got a
message box from Windows Script Host. The message is
that "there is no script engine for the file extension
".java". Is there a way that I can fix it?
When I change the file extension to .jav. I can open it using notepad, but
still can't compile.
Your help is deeply appreciated!you probably have some weird extention mapping. You should be able to edit the .java file in notepad. You should be doing most of this in a shell (command prompt). Edit the .java file in notepad, then go to the shell and type javac filename.java, then java filename (w/no extention). I hope that helps.
Switch to NT, easier to develop in. And try using VI instead of notepad, just suggestions. -
Hi, usually i have a trap{} in my scripts to handle and log(!) all
unforseen exceptions which i have
not otherwise handled via Try/catch.
This works great.
But, when i have a script with windows forms, all exceptions will be displayed automatically as a system-popup
and the code inside trap{} is not executed, so the error never gets logged.
Why is the trap being ignored?
And how do i make my form execute the trap in case of an exception?
Thanks, Rob
http://www.administrator.de/Thanks for your reply David.
Separate runspace? Mhm, I dont think so. Otherwise I would not be able to access variables of the root script (that set up the form), would I?
Also i do not set up confined script blocks to the events. They call functions in the script which call other functions and so on. Its
all one script, only that actions are triggered by events.
That depends on how the runspace is set up (and in this case, it's all being done by the PowerShell engine, so I'm not sure exactly what's happening.) It's possible to give different runspaces access to the same variables, functions, etc (though you
have to be careful when doing that, as you may create race conditions.)
As I said, I don't know if that's actually what's happening here, but it would make sense. Your main thread is blocking on $form1.ShowDialog(); until that function returns, execution would never jump to your trap block.
Anyhow, regardless of the technical details of why it's behaving this way, making sure you set up a new trap statement within those events (or the functions they call) does seem to work:
trap { Invoke-ErrorHandler -ErrorRecord $_ }
function Invoke-ErrorHandler
[CmdletBinding()]
param (
[Parameter(Mandatory = $true)]
[System.Management.Automation.ErrorRecord]
$ErrorRecord
Write-Host "This statement called from the error handler."
[void][System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[System.Windows.Forms.Application]::EnableVisualStyles()
$form1 = New-Object 'System.Windows.Forms.Form'
$form1.ClientSize = '200, 150'
$button1 = New-Object 'System.Windows.Forms.Button'
$button1.Location = '54, 45'
$button1.Size = '75, 23'
$form1.Controls.Add($button1)
$button1.add_mouseclick({ TestFunction })
function TestFunction {
trap { Invoke-ErrorHandler -ErrorRecord $_ }
$button1.FalseProperty = 1
# TestFunction ## If you call the function here, instead of the command below, the trap catches the error
$form1.ShowDialog() -
Doubt with Windows and Oracle Forms 10G and 11g
Hi
I have some doubts in installing Oracle Client on Windows.
a)Can we install Oracle Forms 10g and Reports 10g client on Windows 7?
b)Can we install Oracle Forms 11g and Reports 11g client on Windows XP?
c)If we have an Oracle Forms 11g and Reports 11g, can it connect to a 10g Server?
d)If we have an Oracle Forms 10g and Reports 10g Client, can it connect to an 11g Server?
Please, Can any one help me in this????a)yes it can be installed on win7, may have some issues on 64bit systems but they're solvable
b)11g had some problems with windows 2000, but didn't see mention of any problems on XP
c)if you mean a database server then yes - i managed to connect 11g to an 8i database, so v10 should not be a problem. If you mean a forms/reports server..well newer forms/reports builder might not want to run old forms/reports and vice versa, but I don't see the point of operating on the same files from different versions. You can still load old form/report source files with a newer builder and recompile them to run on the new server.
d) the "client" is effectively your web browser with a java plugin, unless I misunderstood your question. What version was a form/report compiled with should not be an issue. -
Hi my name is vishal
For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using iTextSharp.text;
using iTextSharp.text.pdf;
using System.Diagnostics;
using System.IO;
namespace DRRS_CSharp
public partial class frmPDF : Form
public frmPDF()
InitializeComponent();
private void button1_Click(object sender, EventArgs e)
Document doc = new Document(PageSize.A4.Rotate());
var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
doc.SetMargins(50, 50, 50, 50);
doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
doc.Open();
PdfPTable table = new PdfPTable(6);
table.TotalWidth =530f;
table.LockedWidth = true;
PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
cell.Colspan = 6;
cell.HorizontalAlignment = 0;
table.AddCell(cell);
Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
para.Alignment = Element.ALIGN_CENTER;
iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
png.ScaleToFit(105f, 105f);
png.Alignment = Element.ALIGN_RIGHT;
SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
conn.Open();
SqlDataReader dr;
dr = cmd.ExecuteReader();
table.AddCell("Reprocessing Date");
table.AddCell("Patient Name");
table.AddCell("Dialyzer(Manufacturer,Size)");
table.AddCell("No.of Reuse");
table.AddCell("Verification");
table.AddCell("DialyzerID");
while (dr.Read())
table.AddCell(dr[2].ToString());
table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
table.AddCell("@count".ToString());
table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
table.AddCell(dr[0].ToString());
dr.Close();
table.SpacingBefore = 15f;
doc.Add(para);
doc.Add(png);
doc.Add(table);
doc.Close();
System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
this.Close();
The above code executes well with no problem at all!
As you can see the file to which i create and save and open my pdf report is
AssignedDialyzer.pdf.
The column headers of table in pdf report from c# windows forms using iTextSharp are
"Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
"DialyzerID".
However the problem i am facing is after execution and opening of document is my
column headers in table in pdf report from
c# and datas in it all appear in bold.
I have browsed through net regarding to solve this problem but with no success.
What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
vb6,adodb with ms access using iTextSharp?
I have approached Sound Forge.Net for help but with no success.
I hope anyone/someone truly understands what i am trying to ask!
I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
I hope i get a reply in terms of solving this problem.
vishalHi,
About iTextSharp component issue , I think this case is off-topic in here.
I suggest you consulting to compenent provider.
http://sourceforge.net/projects/itextsharp/
Regards,
Marvin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Problem with Java and Windows (Mainly Vista and UAC)
Hi all,
I am having a problem with a program that I've devoloped. The program itself is packaged as a jar and I plan to deploy it across multiple platforms eventually however right now i am only concerned about windows based systems. I have made an installer for a windows baised systems using NSIS to install the software files. I made the installer as I need several java packages to be installed so the program would work (JAI, J3D, JAI ImageIO) and I also require the program to have fileassociations on windows.
I know that this is not what java is about, however the majority of the users will be on windows baised systems so I've decided that OS specific installers is the best option.
During the process I have noticed that there are several key problem with java for this type of application!
The first issue that I have come across is getting file associations to work on java. As a .jar is not an excutable it is not possible to directly associate a filetype with it in java so to overcome this I currently run the program from a .bat files and also the program requires large memory so this also allows me to run the program with -xmx. The batch file that I use is :
<code>
cd PATH TO PROGRAM
start javaw -Dsun.java2d.noddraw=true -Xmn100M -Xms500M -Xmx1000M -jar "PATH TO PROGRAM\program.jar" %1 -vram 134217728
pause;
</code>
Ok so all this appears to work fine and allows windows to have file associations and start the program and thats all works perfectly but this is a non-ideal solution. Has anyone got any advice on improving this?
The next problem that I have appears to be a problem with Vista and UAC (user access control). When a user installs the program and installs the program into the program files directory I found that the program did not work and kept saying that I did not have access to the files in the current directory. This is a problem as I read and write settings files during program execution.
On a Vista system UAC prevents file write operations into the Program Files directory unless the program has requested elevated status even if the user is a full administrator. The probem is that there appears to be no real way to achieve this under java that I'm aware of...
Has anyone else had this probem and has a suitable solution?
Any advice on these issues would realy be appricated.
Regards
JoeyOk so i've kinda found a solution, its not ideal but its very good. I found this program called Elevate
A link to the site I got it was
http://www.wintellect.com/cs/blogs/jrobbins/archive/2007/03/27/elevate-a-process-at-the-command-line-in-vista.aspx
This program allows you start java with a UAC dialog for high access using
Elevate java -jar myjar.jar
This then allows you to have full access using java... I guess it could be dangerous but it does the job. -
Need help with an Aforge and windows forms memory stack-up issue
Hello,
I am experiencing a strange memory stack-up in my c# windows form program that occurs all the time on slow PCs, and when the windows form loses focus or is otherwise interrupted on faster PCs.
The program I have written uses Aforge to get images from my webcam, which I then display in an Aforge picturebox control (CurrImagePic in code) in the windows form. The images are switched into the picture box and then disposed at the camera's native
framerate, so it appears as video to the user, not still images. The picture box is 1080x1920, but the space for it in the form is smaller and so I allow the user to scroll around the picture.
After about ~30 seconds of memory-stable operation on slower PCs, the problem begins. On faster PCs, the problem only occurs when holding down scroll bar arrows or clicking and dragging around either scroll bar, and if I lock the PC or bring up the
Ctrl+Alt+Delete menu.
The problem itself is that memory used by the program starts to increase in very large chunks, leading to an out of memory crash. This is unstoppable on slower PCs, but on the faster PCs if you stop scrolling or return from the lock/Ctrl+alt+delete
menu, the program stabilizes at the higher memory usage level. The memory that was accrued during scrolling or while in the lock menu is never collected by the garbage collector. I've even tried to put in a button that forces a GC.collect() when
pressed, and it does not reduce this memory usage.
I've run perfmon and found that the memory increase is on the unmanaged heap, but I don't know if it's coming from bitmaps which are not being disposed or what it could be from. It's been impossible to track down since it does not occur except in the
above conditions. I've tried various solutions (like moving my image processing out of the event handler and even using both global flags and a "lock" statement to try and ensure that only one thread or frame can access the image processing
and displaying method at at time, but I have seen no change. In fact, I am now seeing some unexplained small jumps in memory usage that I wasn't seeing before I put in the lock and moved the processing out of the handler.
Has anyone run into situations like this? I am at a loss for what I need to fix. I think the problem is based around my Aforge event handler and image processing method if it is in my code at all - but I also have a suspicion that this is something
deeper in the windows form code that I am either misusing or that can't keep up with the demands of my code. Code below:
//Applicable Globals to this code snippet
private bool ALLOWFRAME = true;
private Object FRAMEKEY = new Object();
private VideoCaptureDevice COMPVID;
private Bitmap TMPLTCAP;
private System.Drawing.Image OLDIMAGE;
private bool RCRDPIC = false;
private void COMPVID_NewFrame(object sender, NewFrameEventArgs eventArgs)
//Only process a frame when another is done processing
if (ALLOWFRAME == true)
ALLOWFRAME = false;
Bitmap PassFrame = AForge.Imaging.Image.Clone(eventArgs.Frame);
ProcessFrame(PassFrame);
PassFrame.Dispose();
private void ProcessFrame(Bitmap frameIn)
lock (FRAMEKEY)
if (OLDIMAGE != null) { OLDIMAGE.Dispose(); }
//Call comparison method if flag is set.
if (COMPON == true)
Difference TmpltFilter = new Difference(TMPLTCAP);
TmpltFilter.ApplyInPlace(frameIn);
OLDIMAGE = CurrImagePic.Image;
CurrImagePic.Image = AForge.Imaging.Image.Clone(frameIn);
OLDIMAGE.Dispose();
else
OLDIMAGE = CurrImagePic.Image;
CurrImagePic.Image = AForge.Imaging.Image.Clone(frameIn);
OLDIMAGE.Dispose();
//Toggle the flag back to false to show it's safe (i.e., comparisons have stopped)
//for the result-recording method to copy from the picture box if it is attempting to copy
if (RCRDPIC == true)
RCRDPIC = false;
ALLOWFRAME = true;As you are using third party tools and controls, and I cannot find posts on parallel cases using native VS controls, have you asked in the Aforge forums about your memory issue?
http://www.aforgenet.com/aforge/framework/ -
Windows Forms with ActiveX PDF viewer steals focus when LoadFile called
I've been very frustrated with the PDF viewer. I currently have the Acrobat Reader 8.1.2 installed and I've created an extremely simple app that has a main window with two additional child windows that are owned by the main window. I've also set a timer to periodically load the same file over and over (to show the focus issue).
My problem is that if Child1 is currently in Focus, and the timer on Child2 goes off and calls LoadFile(...), then for some reason Child2 steals the focus and comes to the front of the app.
My Sample Visual Studio 2008 Windows Form code here:
//Main Window code that creates Child1 and Child2 that have the ActiveX
//component on them
namespace PDFViewerStealingFocusIssue
public partial class MainWindow: Form
public MainWindow() {
InitializeComponent();
private void MainWindow_Load(object sender, EventArgs e) {
PDFViewerStealingFocusIssue.PDFViewer viewer = new PDFViewer();
viewer.Text = "Child1";
viewer.timer1.Interval = 4000;
viewer.Show(this);
viewer = new PDFViewer();
viewer.Text = "Child2";
viewer.timer1.Interval = 5500;
viewer.Show(this);
//in my child window:
namespace PDFViewerStealingFocusIssue
public partial class PDFViewer : Form
public PDFViewer() {
InitializeComponent();
private void Form2_Load(object sender, EventArgs e) {
private void timer1_Tick(object sender, EventArgs e) {
axAcroPDF1.LoadFile(@"C:\test.pdf");
//axAcroPDF1.src = @"C:\test.pdf";
I'd appreciate if anyone has a workaround for stopping this annoying behavior.
Jeff Braun ([email protected])Hi Jeff,
I have the same problem. Have you found a solution yet? I've spent the past few hours trying to find one to no avail. Your help will be greatly appreciated. If I find anything, I'll be sure to post the solution.
Thanks,
Matt -
WEB Forms do not display properly with windows 95 LARGE fonts desktop setting
Hi,
We are using WEB forms 6.0 patch level 6 (We tried 6i but had too many bugs with it, we prefer to wait until at least a couple of patches are out, installation was a VERY painful experience for us)
We still have the following problem with WEB FORMS deployed on win95 desktops with LARGE FONTS destktop settings: The forms are not displayed correctly, sometimes there are no scroll bars, resizing a window gives weird results, part of the forms become inaccesible, some forms are blank, etc...
Can you verify or confirm that you have the same kind of problems ? We use jinitiator 1.1.18.
Is it fixed with 6i ? Is it fixed wit jinit 1.1.27 ?
We develop in smal fonts on win95 and recompile under solaris before deploying.
Thanks
nullThank you all for your fast asnwers. The "Use hardware acceleration when available" was the problem, I disabled it and I will post a message on my site about this.
The site is on-line in the same aspect since 2005, modifiyng the whole site to fit with Firefox11's default setting is not a good option. At that moment, placing a tabel (alligned to the center of the page) and puting in it the thumbnails with links generated by ExpressThumbnailCreator, than manually adding the description in the HTML view of FrontPage was the simplyest way possible to make the site appear properly on my 800*600 px resolution I used then. Of course, I upgraded my hardware and software since then, but the site remained mostly unchanged (except the index and a few files). I know it's time for a new version of the site but... my web-design knowledges are limited to basic HTML.
Maybe you are looking for
-
URGENT -- Linking GL to AR & AP for custom report
Hello All, I am having trouble linking GL tables to AR and AP tables for a customized Account Analysis report. I have an initial query but the values for Accounted_DR/CR and Entered_DR/CR do no seem to be correct, so it is possible that the links I h
-
I updated to Firefox 10, and after that it doesn't wok.
-
I got following error while running ETL for Oracle Financials. Can someone help in this problem? I am using OBIA 7.9.6.4 with EBS R12.1.3 Vision. Following is the session log. 2013-02-27 15:28:21 : DEBUG : (4696 | TRANSF_1_1_1) : (IS | BIA_IS) : node
-
I am trying to download lightroom again but it does not show up in my orders.
I need to download lightroom again but it only shows up in "My Products" and not in the "Orders" section. What can I do?
-
Is it possible to create a column in runtime?
Hi, I created a application that connect with Access database. I just wonder is it possible for user to create a column in runtime, because the application need this kind of interaction. Many thanks, Ann