|
Hi all
I've read in some articles on the web about a new
scripting language called VBscript.net ,
I checked Microsoft web site but they say nothing about it
and actually no body are talking about it clear enough
, so anyone knows what is it?
and what is it for and how can we work on it
-what IDE?- and support stuff about it
& thank u
Z BASSEL
|
|
|
|
|
Greetings!
I have a custom class that has three public properties. I have a control that has a public property that is an instance of that class. I want the property to show up in the property grid with a + sign and to show the class's properties when a user clicks on the + sign.
Fine. No problem. I just set the TypeConverter attribute for the class to ExpandableObjectConverter, and everything works as advertised.
With one small exception.
I have a demo project that has a form that has an instance of the control. I edit the form and set one of the control's class instance's properties. I run the form and click a button that shows what the object's properties are. The message box tells me that the value I entered in the property grid got lost!!! It is not permanently applied to the object on my form!
What do I have to do to get .Net to remember my property change?
Thanks very much!
Rob Richardson
|
|
|
|
|
Hi,
Problems with version 1.1.4322....
I have used this tip How To Repair IIS Mapping After You Remove and Reinstall IIS(http://support.microsoft.com/default.aspx?scid=kb;en-us;306005)
The information is above is not helping because untill now after many
attempts this did not function yet!
Take a look at:
first:
%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -i
second:
regsvr32 %windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_isapi.dll
I have good messages that is OK, but untill I could not run ASPNET and nor
WEBService applications under VS.Net 2003/Windows 2000 server com SP 4/IIS
5.0 !
What shoud I do?
Thanks,
Vilmar Brazão de Oliveira
=========================
Vilmar Brazão de Oliveira
|
|
|
|
|
Hi, I fixed the problem pointing the new project to virtual folder created
at IIS Server!
thanks,
=========================
Vilmar Brazão de Oliveira
|
|
|
|
|
Hello there experts!
Im currently working on my first .Net application where i visualize some FEM calculations using VTK(visualiztion ToolKit).
Im using .Net and WINAPI as GUI.
But now I want to build an standalone application and really dont have any ideas on how to do this. So I dont really know what to look for on the web.
I have build an version by setting the build mode to Execute, and I guess that this version requires the dll files if it was to run on another computer? If that is the case I want to make an install/uninstall application that installs these files. Any suggestions?
And finally , if I dont want to use dlls, how do I build an static version ?
Regards
Peter
|
|
|
|
|
Ibana wrote:
And finally , if I dont want to use dlls, how do I build an static version ?
You cannot, you must deploy the .NET framework on the target machine.
Ibana wrote:
But now I want to build an standalone application and really dont have any ideas on how to do this.
You probably want to create a new Windows Application project (also know as a WinForms or Windows Forms application - if your looking for key words). You'll find the relevant type in the project type folder for your language of choice. Also there are a number of tutorials here on CodeProject for getting started.
Ibana wrote:
If that is the case I want to make an install/uninstall application that installs these files. Any suggestions?
You should add a Setup Project (in the Setup and Deployment Project category) to your solution. There are some tutorials on MSDN to help you get started with creating a setup project.
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
Hi, anyone know if there is a tool to search for date/time/wildcards within Visual sourcesafe?
As i tried the vssreporter.exe which is a nice tool. But its lacking of wildcard search. Im looking for a tool which can work with sourcesafe or does sourcesafe has such funcitonality??
|
|
|
|
|
I am building a custom Print Dialog box in VB.net that works similar to Microsoft Word Print Dialog box.
I have problem with these two features –
1. Printer Properties – When user clicks on this button a “Printer Properties” Dialog should be shown similar to what you get from here – ControlPanel >> Printers and Faxes
Right click on any Printer and in the pop up menu select “Printing Preferences” (For XP OS)
(Similar to dialog that opens when you click on “Properties” on the Print dialog of a Word or Excel Application)
I am using the API call to PrinterPropoerties in winSpool.drv, but this give a different Dialog than what I want.
2. Find printer – when user clicks on this button a “Find Printer” Dialog should be shown similar to what you get from here – Startup >> Search >>Printers, computers or people .. >>A printer on the network (On XP os)
(Similar to dialog that opens when you click on “Find Printer” on the Print dialog of a Word or Excel Application)
I am just not able to get these working.
I will appreciate, if any one can help me in solving the problem.
|
|
|
|
|
Hi
I want to save The Text of a MultiLine TextBox into the DataBase alongwith paragraph breaks.And retrieve the same.
How can I do it.
Thanks in anticipation
g
|
|
|
|
|
Unless I totally misunderstand the question, there is nothing special you must do as line breaks etc have their associated character codes and will be saved to a database exactly as any other character such as alpha-numerics/symbols/non-printables.
The only formatting needed on the return of data is when dealing with ASP.NET line breaks must be replaced by <br/> or <p></p> as required. This can be done with either Regex or a simple String.Replace
|
|
|
|
|
It seems we have to install the whole .net framwork before run c# application on WinXP.But even if I install the .net framwork 1.1 package on Win2000,my C# application still cannt run on it.Since C# is better than VC++,why the application developed with it has such a unbearable restriction?
If we have to asked our users to install the .net framwork before run our application? or if there someother way to let our C# application run fluently on WinXP,Win2000,WinMe,Win98?
Thanks
momer
|
|
|
|
|
|
Hello!
I'd like to copy a folder (without files). After creating in the destination folder I want the directory to have the same user-/group-permission like the source-folder.
does somebody have an idea?
|
|
|
|
|
Hi!Dear,
I released my c# project usbtest(Cs) and got the usbtest(Cs).exe.There is no problem when I run it on my own WinXP PC,but when I run it on other's WinXP PC or Win2000 PC,then error occurs:
Win2000:error name:usbtest(Cs).exe--cannot find DLL
error content:can not find DLL mscoree.dll in the appointed path. F:\;.;C:\WINNT\System32; C:\WINNT\system; C:\WINNT;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
WinXP: error name:usbtest(Cs).exe--application error
error content:application normal initialization (0xc0000135) fail.Please click "OK" to terminate application.
Can you tell what makes this error and how to work out it?
Thanks!
momer
|
|
|
|
|
|
Hi!
Sorry for posting in multiple boards, but my post in the C# board gave no replies what so ever, so I thought I give it a try here too.
I´m working on a project where we are making a hook for an other software. Now we have encountered a problem and I would like some help on finding a work-around.
When we are opening a new form in the hook an exception is thrown and the form is destroyed. The exception is a System.TypeInitializationException that says that "The type initializer for "System.Drawing.SafeNativeMethods" threw an exception. -->System.NullreferenceException: Object reference not set to an instance of an object".
I have traced the exception into the InitializeComponent() method and it is thrown when the first component on the form is initialized. This exception does not appere every time, but once in a while. I can not see any real reason for the problem and we are not doing any different when it works and does not.
I have searched the net and found others that have had the same problem, mut I have not found any good solution. The problem seems to be in GDI+, at least that is what how I have understod it when reading posts on other forums..
The application loading the hook is creating appDomains for all hooks so that it can unload them as it whishes, I think that this might be the root of the problem, or? We would really need to show this form, its for configuring the hook, and the main application really needs to unload the hooks now and then, so the problem is a fact.
Is there any good work-around for this? Is there anything we can do to solve this problem without having to make changes in the main application?
All help appriciated!
Regards Mikael
|
|
|
|
|
the Visual Studie dev environment will not list the contents of the GAC in the add references dialog.
If you are developing dlls that you wish to distribute and have others reference then there are some steps that you need to perform.
If the assembly is shared (installed to the GAC) then you need to install a copy of it in another directory. This is what happens when you install the .net Framework. (reason follows later)
For Visual Studio to automatically show your DLLs in the add references dialog, add the following registry key.
HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\.NETFrameWork\AssemblyFolders\SomeName
change its default value to the directory path where you installed your dlls.
(C:\Program Files\MyCustomDLLs\bin)
Now the reason for having to make a copy of the GAC'ed assemblies: If you had to reference them without making a copy, you would have an unweildly path to put into the registry. Also think about the scenario where you would have multiple dlls that you put in the GAC and need to have people reference the, a seperate key for each one of them as they reside in seperate folders.
Note: when one references a shared assembly (one that is in the GAC), from the location where a copy was installed, you will find that the "Copy Local" property for that dll will be set to false. This is what should happen. (In some circumstances, like some MS Sql app dlls, the copy local property gets set to true - can lead to some very bad behaviour).
Hope this helps.
Spent a lot of time trying to get all this info.
refenced: Applied Microsoft .NET framework programming (Jeffery Richter) a very very good book
|
|
|
|
|
I found that on some machines on running the uninstaller, Microsoft Installer would not remove the assemblies installed by it in the first place.
I could not uninstall the assemblies using the GacUtil either (even with a force uninstall flag). The problem seemed to stem from the fact that reference count was not decremented during uninstallation.
To make the uninstaller do the right thing, found that deleting the (default) key from the registry helped.
HKEY_CLASSES_ROOT\Installer\Assemblies\Global\
on machines that the unistaller did not remove the assemblies, the default key would most probably have some gobble dee gook.
If you delete this key, it will be replaced with
(default) no value set
After this, when you run the uninstaller, Microsoft Installer will correctly delete the dlls.
From what I found, the gooble-dee-gook is put there by MSN Messenger 6.0 and its a problem that MSN knows, but hasnt documented!!!
Kudos, to the person who found it first and posted it (to some obscure website)
|
|
|
|
|
I want to write an 3ds max plugin that exposes the max SDK interface through remoting or COM.
As 3ds doesn't support .Net i presume i have to make standard .dll in c++ and somehow get a CLR initialized and hosted. Any ideas on how i might go about this ? Would i have to wrap the max SDK to be able to remote it ?
Any thoughts/ideas appreciated
Im fluent in c++ but new to the .NET framework so be gentle.
|
|
|
|
|
Hi! Dear,
I need to compare two files' content in my multithread C# code project.So,which class and what method should I use?
Thanks!
momer
|
|
|
|
|
Do you have a specific problem in doing this? Im not aware of a class in the framework to do this for you but it should be pretty simple to write yourself.
|
|
|
|
|
Open two files as array byte and compare it byte by byte. This is te most simple way to compare
"Courage choose who will follow, Fate choose who will lead" - Lord Gunner, Septerra Core
"Press any key to continue, where's the ANY key ?" - Homer Simpsons
Drinking gives me amazing powers of insight. I can solve all the worlds problems when drunk, but can never remember the solutions in the morning. - Michael P Butler to Paul Watson on 12/08/03
|
|
|
|
|
Hello, I am writing an app using windows forms. This is the first time I've strayed from MFC. I have a basic form with a menu attached to it. I have successfully implemented owner-draw styles for each menu item, but the mainMenu (i.e. the menu bar running across the top of the form) stubbornly retains windows-95 style.
How do I owner-draw the mainMenu control (rather than the MenuItem controls) in my windows form? The MainMenu doesn't appear to have an ownerdrawn property in visual studio design view.
Thanks for your help!
Mick
|
|
|
|
|
Hi,
I have to split this string :
'3','2004/10/08/17/24/29','SILVACO','A145','00','5053813-07','SOCKET WRENCH','TRUBK.KLIC H55;K650,1200','3','350.48'
The Result should look like this :
3
2004/10/08/17/24/29
SILVACO
A145
00
5053813-07
SOCKET WRENCH
TRUBK.KLIC H55;K650,1200
3
350.48
I would like to use Regular Expression to split this String, but I do not know, how should it look? Could somebody help me?
Dan, CZ.
|
|
|
|
|
Hi,
you can do this with following regular expression: '[^']*' . It returns following:
'3'
'2004/10/08/17/24/29'
'SILVACO'
'A145'
(including quotes), so you'll have to trim qotes from begining and end of each string (you can do this using Trim method).
Anyway, I think that you don't need to use regular expressions for this, because you can do this using Split method like this:
string toSplit="'3','2004/10/08/17/24/29','SILVACO','A145','00',"+
"'5053813-07','SOCKET WRENCH','TRUBK.KLIC H55;K650,1200','3','350.48'";
string[] parts=("',"+toSplit+",'").Split("','");
BTW: CZ at the end of your post means that you are from Czech republic like me ?
|
|
|
|