I want to call Sub Statement from another pages (XAML) in windows phone 8.1 / windows 8.1. When I want to use code such as:
Call NamePage.SubStatement()
Its don't work.
How can I do it?
Thanks.
I am not sure exactly what you are trying to do but if you make a function static in c# or shared in VB you can access it by the ClassName.functionName
Related
I am trying to display a html site on my gui direkt , I only can do it on a another windows (figure) but not in my GUI ...
Anyone have an idea ?
hExp = actxcontrol('Shell.Explorer.2',conSize,hObject); % Create the control
Navigate(hExp,varargin{1});
you need to pass the main object hObject to the command and the windows will be added
like this one
https://de.mathworks.com/help/matlab/matlab_external/use-internet-explorer-program-in-a-matlab-figure.html
I am new to windows phone 8.1 developping and focus on library dev.
In the wp 8.0 era,I know if I want to create a Image instance.
I just write
amapLogo.Source = new BitmapImage(new Uri("/Com.AMap.Api.Maps" + ";component/Resources/ap2.data", UriKind.Relative));
need to point here is that "/Com.AMap.Api.Maps" is my library output dll
It works fine.
If I keep the same code in wp8.1 developping
exception appears
An exception of type 'System.ArgumentException' occurred in mscorlib.ni.dll but was not handled in user code
Additional information: The given System.Uri cannot be converted into a Windows.Foundation.Uri. Please see http://go.microsoft.com/fwlink/?LinkID=215849 for details.
I browse http://go.microsoft.com/fwlink/?LinkID=215849
and find that two ways to set the ImageSource correctly.
the ms-appx or ms-appx-web scheme to create an absolute URI.
but it is used for getting a resource in the app package
what I want is getting a resource from my dll
so
What can I do to create a Image instance using way of setting
ImageSource.
Or is there anther way to do what i want?
Thanks!
Just Solve it!
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh965322.aspx
To access files stored inside the same package, but from a class library, use the class library name:
<Image Source="/ClassLibraryName/images/logo.png" />
I'm new to windows phone 8, and I was wondering if there is a way to have control over the calling function. For example, I'd like to be able to stop a call when it is a certain number, and be able to save a list of "spam" numbers in a list. Code isn't necessary, I was just wondering what namespaces to start from.
You cannot do that in the windows phone.
I want to check wheather my database application is running in a fullversion MS Access or only with a viewer / limited MS Access.
The problem is that in a limited version a user can close the last form and then is not able to reopen any form without restart the whole application.
Private Sub Form_Unload(Cancel As Integer)
If LimitedVersion Then
Cancel = True
End If
End Sub
So the question is how to determine LimitedVersion ?
You can use:
SysCmd(acSysCmdRuntime)
It will return True for the runtime version.
However, I would never allow the last menu to be closed in an application. The people with a full version can open the application in a different way if they need access to design.
To simulate the runtime environment, you can use the /runtime switch:
For MS Access 2010, it would look something like this, note that the line break is for display purposes.
"C:\Program Files\Microsoft Office\Office14\MSACCESS.EXE"
"z:\docs\demo.accdb" /runtime
I am trying to call method save of filerefence call in script of flex 3 application but application doesnot show the option of save method.
Please answer this.
Thanks in advance.
right click on Project and click on properties
then goto Flex Compiler
in HTML Wrapper
Change the required Flash Player version to 10.0.0
FileReference.save() is only available for Flash player 10 and above. If your flex sdk is running with Flash 9.0 you wouldn't be able to use it. Either move to latest SDK version or implement it using different way wiothout using the save() method.