|
Hi
I have two applications running simultaneously, from one application i want to raise event or notify second application to do something. both applications are using same db, but putting flag there will result in pooling. can someone point me to some good article concerning this.
Thanks
Shajeel
|
|
|
|
|
You can use PostMessage API function.
Best regards, Alexey.
|
|
|
|
|
Too dangerous i would have to hook a IMessageFilter in Message Queue and i dont know which message to pass, if i set it some arbitrary message windows might send that message too, is there no easy way.
Thanks for help
Shajeel
|
|
|
|
|
|
Public Function ExportModule(ByVal ModuleID As Integer)
As String Implements
DotNetNuke.Entities.Modules.IPortable.ExportModule
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Function
very urgent
sanjeev
|
|
|
|
|
public string ExportModule(int ModuleId) : DotNetNuke.Entities.Modules.IPortable.ExportModule {
}
---
b { font-weight: normal; }
|
|
|
|
|
giving error
at : its saying ; expected
|
|
|
|
|
My bad, I didn't reflect on the fact that it was a method, not a class. Just put the inheritance on the class, and name the methods the same as the interface methods they implement.
public class whatever : DotNetNuke.Entities.Modules.IPortable {
public string ExportModule(int ModuleId) {
}
}
---
b { font-weight: normal; }
|
|
|
|
|
the whole code that i want to convert is as:
If you could convert plz .
Public MustInherit Class ShopList
Inherits Entities.Modules.PortalModuleBase
Implements Entities.Modules.IActionable
Implements Entities.Modules.IPortable
Implements Entities.Modules.ISearchable
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Public ReadOnly Property ModuleActions() As _
DotNetNuke.Entities.Modules.Actions.ModuleActionCollection _
Implements DotNetNuke.Entities.Modules.IActionable.ModuleActions
Get
Dim Actions As New _
Entities.Modules.Actions.ModuleActionCollection
Actions.Add(GetNextActionID, _
Localization.GetString( _
Entities.Modules.Actions.ModuleActionType.AddContent, _
LocalResourceFile), _
Entities.Modules.Actions.ModuleActionType.AddContent, _
"", _
"", _
EditUrl(), _
False, _
Security.SecurityAccessLevel.Edit, _
True, _
False)
Return Actions
End Get
End Property
Public Function ExportModule(ByVal ModuleID As Integer) _
As String Implements _
DotNetNuke.Entities.Modules.IPortable.ExportModule
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Function
Public Sub ImportModule(ByVal ModuleID As Integer, _
ByVal Content As String, _
ByVal Version As String, _
ByVal UserID As Integer) _
Implements DotNetNuke.Entities.Modules.IPortable.ImportModule
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Sub
Public Function GetSearchItems( _
ByVal ModInfo As DotNetNuke.Entities.Modules.ModuleInfo) _
As DotNetNuke.Services.Search.SearchItemInfoCollection _
Implements DotNetNuke.Entities.Modules.ISearchable.GetSearchItems
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Function
End Class
|
|
|
|
|
hi
you have to implement the interface in the class definition i.e
public class myclass : DotNetNuke.Entities.Modules.IPortable
then implement all methodes and properties from this interface
in your class
regards
joe
|
|
|
|
|
the whole code that i want to convert is as:
If you could convert plz .
Public MustInherit Class ShopList
Inherits Entities.Modules.PortalModuleBase
Implements Entities.Modules.IActionable
Implements Entities.Modules.IPortable
Implements Entities.Modules.ISearchable
Private Sub Page_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
End Sub
Public ReadOnly Property ModuleActions() As _
DotNetNuke.Entities.Modules.Actions.ModuleActionCollection _
Implements DotNetNuke.Entities.Modules.IActionable.ModuleActions
Get
Dim Actions As New _
Entities.Modules.Actions.ModuleActionCollection
Actions.Add(GetNextActionID, _
Localization.GetString( _
Entities.Modules.Actions.ModuleActionType.AddContent, _
LocalResourceFile), _
Entities.Modules.Actions.ModuleActionType.AddContent, _
"", _
"", _
EditUrl(), _
False, _
Security.SecurityAccessLevel.Edit, _
True, _
False)
Return Actions
End Get
End Property
Public Function ExportModule(ByVal ModuleID As Integer) _
As String Implements _
DotNetNuke.Entities.Modules.IPortable.ExportModule
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Function
Public Sub ImportModule(ByVal ModuleID As Integer, _
ByVal Content As String, _
ByVal Version As String, _
ByVal UserID As Integer) _
Implements DotNetNuke.Entities.Modules.IPortable.ImportModule
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Sub
Public Function GetSearchItems( _
ByVal ModInfo As DotNetNuke.Entities.Modules.ModuleInfo) _
As DotNetNuke.Services.Search.SearchItemInfoCollection _
Implements DotNetNuke.Entities.Modules.ISearchable.GetSearchItems
' included as a stub only so that the core
'knows this module Implements Entities.Modules.IPortable
End Function
End Class
|
|
|
|
|
Hello,
I am using an ActiveX control in my form application of C#.
I want that this application should be restricted up to UI support only and all the operation(like Drawing) on this ActiveX control should be handled by a separate ClassLibrary application.
To obtain this i took a global object of ActiveX control in my class library application and initialised it in the FormLoad() of C# form application.
But it is saying a type mismatching in assigning the object.
Please help me to come out of the problem or if u can suggest any other way to fulfill the requirement, i ll appreciate it.
Gajesh Mangal
Pune(India)
|
|
|
|
|
Hi,
i have one class i compiled.In file dialog all the dll's of different classes are there if i choose one dll then the corresponding class name and all its public methods should be displayed then it will show all the public methods is it posible, if posible how can we achive this in c#
|
|
|
|
|
Stop flooding !
I answered this question twice ! If you don't understand, tell me "what you can't understand !"
And, finally you must read this first !
Best regards, Alexey.
|
|
|
|
|
Hello,
I have made my application with SQL Server 2005 Express (C# Windows Application.) . Now, I have made a copy of the application in different folder and I copied the .MDF file and Now When I run that application, I do some change in the .mdf database and I close. After that, when I open another version of the application which is located in different folder, I see that, the .MDF database is updated with the changes I made in the other version of the application even though I copied another instance of the .MDF file in that directory. Why is this happening ? Cant I isolate all .MDF files so that one database is not being affected by others ?
Thanks
emran
|
|
|
|
|
Have a look at Bob Tabor's video tutorial available from Microsoft's SQL Server 2005 Express pages (streaming video) for an overview of security and network connectivity
modified 1-Aug-19 21:02pm.
|
|
|
|
|
Hi,
I have one problem, i.e i have one class, within that class so many public and other methods are there now my requirement is that i want to display the public method names can you tell how can i achieve this in C#
|
|
|
|
|
Try this:
<br />
MethodInfo[] infos = myClass.GetType().GetMethods(BindingFlags.Public);<br />
for (int i = 0; i < infos.Length; i++)<br />
{<br />
Console.WriteLine(infos[i].Name);<br />
}<br />
Best regards, Alexey.
|
|
|
|
|
Hello everybody
Please help me and suggest me on my problem,,,,,,,,,,,,,,
Actually I have a windows application(Devloped in asp.net 2005) connected with the remote databse (sql server 2005)..which I can access through the internet………………….
The requirement now is to secure my data in between ..that is the transportation of data should be secure ..so that no one can access it in between the network..
I know that sql server provide security to encrypt the data but I need the data security in the network. is it possible by some ways?
I hope u got the point…
Please reply. as I am waiting for it
|
|
|
|
|
|
I want to create an application from a source, but the source is on Java language. For Windows application I just reference into vjslib.dll (Contains all Java functions), but in mobile we can not reference to this library because the application will be large. So I just need the compact that contains java hashtable, vector, thread, etc. If you confuse what I want to make, I just want to convert the TinyOS and TinyDB library (that library written on Java), to convert that library is easy but both sometime have a variable typed on Java like hashtable, vector, etc.
Simple mind programmers, I don't need a complicated mind.
|
|
|
|
|
Hi,
I see you posted a question a few years ago regarding using vjslib.dll in a Windows App. I am looking into unzipping a file on a scanner using Windows CE and am running into a size issue. I was using the vjslib.dll in my C# application but I am looking for the equivalent dll in the Compact 2.0 framework. Did you ever resolve this issue?
Thanks for any information.
Tom
|
|
|
|
|
There's no resolve for this, I just write/convert manually javacode into C# code using Compact Framework 2.0. It's look like Microsoft stop developing J# platform.
Windows Mobile, you'r mine....
|
|
|
|
|
Hi everybody,
I want to call a secure web page through desktop application. Though .net automatically validates it but i want to get the exact status of error. In previous version certificatePolicy property of ServicePointManager was used for this purpose but now it is obsoleted. They have provided another function ServerCertificateValidationCallback but when I reach at the statement, it gives an error :
"System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed."
|
|
|
|
|