|
Inside my solution has 4 projects. When I opened the solution and loading those projects in Visual Studion .NET, it pop out a error message..
The application for project 'C:\projects\DRM\Setup\Setup.ism is not installed. Make sure the application for the project type (.ism) is installed.
The result was one of my project status call "Setup" is unavaliable and can't opened it...
Angela
|
|
|
|
|
>> calculator code using visual basic 6.0
>> could anyone help me... pls....
>> thanks in advance.....
-- modified at 21:39 Monday 3rd July, 2006
|
|
|
|
|
Sorry, you're going to have to write it yourself. No one here is going to just give you an entire app like that. Besides, this reeks of homework. Why should anyone do it for you??
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hello Everyone!
I am programming graphic program.i use doublebuffer technology to draw graphic to bitmap object.Using e.Graphics().DrawImage(bmp, 0, 0) to draw bitmap object to panel in panel paint event.It's really good idea.Thanks to Dave Kreskowiak.
I do need to zoom in\out the graphic.and i use e.Graphics.ScaleTransform(xscaletran, yscaletran) in panel.paint event to do it.But problem happens.pen size changed too.
i think i know something about it.The method graphics.scaletransform just draught\extrude the graphics physically.
Do i have to redraw bitmap to zoom in\out the graphic?
Thanks for all replies!
Best regards!
ICQ:258-235-734
MSN:msnadair@hotmail.com
|
|
|
|
|
Hi all .There is an external listview application and i want to change the color of selected text item. i be happy if some one show me how that can be done. The item is already selected and i have its class name .Thanks
|
|
|
|
|
To clarify, you want to change the color of an item in a ListView that's inside a different application?? If this is true, then you can't do that. You would have to replace the rendering code for the ListView in the other app. This being a HUGE security violation, there is no support for doing this...
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi, this is realy importent to me.
I need to set a new array, from a SPLIT function, and I need to get it's length.
The question, is HOW?
This is my snifft, what's wrong?:
<%
arr = Split("b;c;d ;e", ";")
For I = 0 To Len(arr)
Response.Write(arr(I) & "
|
|
|
|
|
You can get the length of an array using UBound, not Len.
arr = Split("b;c;d;e", ";")
For I = 0 To UBound(arr, 1)
Response.Write arr(I) & "..."
Next
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I am trying to retrieve a webpage using HttpWebRequest. My program works fine from home but if i try to run it from work and a few other places I get the following error
An unhandled exception of type 'System.Net.WebException' occurred in system.dll
Additional information: The underlying connection was closed: The server committed an HTTP protocol violation.
I believe that I read somewhere that in Windows XP they implement some stricter rules for exceptable responses or something to that effect. I dont remember exactly it was awhile ago.
I would appreciate any help I can get with this situation
-- modified at 12:21 Monday 3rd July, 2006
|
|
|
|
|
I found a way to fix the problem by creating a .config file for the executable with the following inside it.
<?xml version="1.0" encoding="Windows-1252"?>
<configuration>
<system.net>
<settings>
<httpWebRequest useUnsafeHeaderParsing="true" />
</settings>
</system.net>
</configuration>
However I would still like to find a programmatic solutions to the problem that way i dont have create a .config file for every executeable.
-- modified at 13:43 Monday 3rd July, 2006
|
|
|
|
|
Hi,
Thx a lot. Another question. If I want to open the program with a function initiated automatically, is that possible? For example, if start button is clicked, then paint is opened with the save command initiated.
|
|
|
|
|
No, there is no way to do this. If the app you're launching doesn't support opening certain items on launch, then you can't do it, period. This kind of functionality, also, doesn't have any standards defined for it, outside of DDE, so it's implementation would be entirely up to the application your trying to launch, if it supports it at all!
The only other method, though unreliable, would be to use SendKeys to try(!!!) to send the appropriate key strokes to the application you launched to get the functionality you want. The problem is that you have to launch the app, then wait, somehow, for the app to finish loading, then send the keystrokes. Also, between the time the app is launched and the keystrokes are sent, pray that the user doesn't hit any keys and doesn't click on anything with the mouse. Oh! Since Windows is a shared system, you also have to hope that no other application running in the system steals the input focus during that time too!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
|
Hi,
Do anyone of u know how to open another program/software from a vb.net project? For example, if the user click a certain button, it will cause a program(paint, for example) to open. Is it possible to do that?
-- modified at 10:53 Monday 3rd July, 2006
|
|
|
|
|
System.Diagnostics.process.Start("paint.exe")
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
|
hellow to all
i had created a DataGridTableStyle , and DataGridTextBoxColumn , now i wanna to access the datagrid and get information about the width of every coloum in the datagrid , i had worte this line of code
(grdWorkMaps.TableStyles("ts").GridColumnStyles.Item("cs28").Width.ToString)
but it is not working for me .
anyone have anyidea ?
thxx
|
|
|
|
|
Newbi to the whole appdomain-ting but my understanding was that it is a controllable area of a process where I can load code where I can enforce security and at any time unload it.
I want to use it to extend my applications functionallity and at any time given a specific term can unload from memory and eventually restart. This way I could have memory intense parts loaded when I need them instead of all the time.
However I don't get this to work but I'm probably doing some beginners error?1
My code goes something like this:
AppDomainClient<br />
- Plugin.vb (class implementing AppDomainInterfaces.IPlugin)<br />
<br />
AppDomainInterfaces<br />
- IPlugin.vb<br />
- IPluginFactory (Inherits MarshalByRefObject)<br />
<br />
AppDomainApplication<br />
- MainForm.vb
I start the MainForm by creating an AppDomain. The appdomain object is passed to an instace of the IPluginFactory and used to CreateInstanceAndUnwrap an instance of the Plugin class. The Plugin class is returned as the IPlugin interface to the MainForm. In the constructor of the Plugin class a method EatMemory is called which allocates a very big string. This workes fine and the memory allocated by the application goes through the roof!
When I try to unload the AppDomain I don't get any errors but the memory is still occupied with the same number of bytes as before I ran the unload command:
AppDomain.Unload("MyCustomAppDomain") I was expecting it to decrease mack to what I had before I loaded the Plugin?
-- modified at 7:37 Monday 3rd July, 2006
|
|
|
|
|
matsnas wrote: When I try to unload the AppDomain I don't get any errors but the memory is still occupied with the same number of bytes as before I ran the unload command:
Did you determine this using the TaskManager or using the Performance Monitor or a Memory Profiler? If you used TaskManager, you picked possibly the worst tool you could use for checking the memory use of your app. TaskManager will show you the memory use of the entire virtual machine your app is running in (the .NET Common Language Runtime). This includes memory that the CLR has reserved for your app, but not in actual use by your application...
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 13:42 Monday 3rd July, 2006
|
|
|
|
|
Well actually I did but only because I didn't get the Performance Monitor working in a good way. Anyway I also tried to have my plugin display a WinForm in it constructor believing that it would go away when my plugin's appdomain was unloaded but it didn't.
I'm missing some vital part of understanding here I think. All documentation refer to the current AppDomain beeing "unloaded" but what do they actually mean by unloaded? Valid for unloading when the GC feels like it? I would have guessed that the AppDomain stopped/killed and all allocated memory space freed.
|
|
|
|
|
|
Thanks, I'll have a go at the examples you posted.
Just one question though, I was expecting to be able to have other programmers write plugins for my application but using AppDomains I would be able to securly shut these plugins down and unload them without disturbing the plugin host?
Note! Written from memory so there might be compilation errors...
namespace AppDomainHost<br />
public class Host<br />
<br />
private mAppDomain as AppDomain<br />
private mIPlugin as AppDomainInterfaces.IPlugin<br />
<br />
public sub New()<br />
Dim vEvidence As Evidence = AppDomain.CurrentDomain.Evidence<br />
mAppDomain = AppDomain.CreateDomain("MyAppDomain", vEvidence)<br />
mIPlugin = AppDomainInterfaces.Factory.CreateIPlugin(mAppDomain, "AppDomainClient", "AppDomainClient.Client")<br />
mIPlugin.Connect<br />
AppDomain.Unload(mAppDomain)<br />
end sub <br />
<br />
end class <br />
end namespace <br />
<br />
namespace AppDomainClient<br />
<serializable()> _<br />
public class Client<br />
implements AppDomainInterfaces.IPlugin<br />
<br />
private mForm as Form<br />
public sub New()<br />
mForm = new Form()<br />
end sub <br />
<br />
public sub Connect() implements AppDomainInterfaces.IPlugin.Connect<br />
msgbox("Connected")<br />
end sub <br />
end class <br />
end namespace <br />
<br />
namespace AppDomainInterfaces<br />
public interface IPlugin<br />
sub Connect()<br />
end interface<br />
<br />
public class Factory<br />
function CreateIPlugin(byval pAppDomain as AppDomain, byval pAssembly as string, byval pType as string)<br />
dim vIPlugin = directcast(pAppDomain.CreateInstanceAndUnwrap(pAssembly, pType), IPlugin)<br />
return vIPlugin<br />
end function <br />
end class<br />
end namespace
|
|
|
|
|
I really couldn't tell you. I've done plugin's before, but not in AppDomains. I've never needed the ability to unload plugin's.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Ok, I'm not sure I understand what happens or what to do about it but as the first article talks about leaking datum into the original AppDomain it seems like loading the Plugin loads an extra assemby into AppDomain.CurrentDomain.
I thougt that I was only calling a sub on the interface object IPlugin. Why is the AppDomainClient.DLL loaded and how do I prevent this? More correctly, how do I assure that my plugin can be removed from memory at any time?
|
|
|
|
|
I am having problem when i make procedure and declare parameter as datetime and when i call it in crysat report it asks for the value and as in the database that is saved as date only it does not return anything.Can anyone tell me what to do?
Mohinder Singh
|
|
|
|