|
Hi,
I am trying to add a plugin/add-in to Visual Studio 2008. But my limitation is, this application is in Java 1.6.
So, I was wondering is it possible to add a java based plugin in Visual Studio 2008? Are there any APIs?
Regards,
Manish
|
|
|
|
|
Take a look at www.ikvm.net. That might help though i expect the newness of the java release will cause issues.
Regards,
Dave
|
|
|
|
|
|
does anyone know what, if anything, is going on with the MAPI33 wrapper [site]?
I've been doing some research on Extended MAPI + .NET and came across this library (and it seems to suit my needs well)
at www.mapi33.adexsolutions.com but didn't download the trial or docs, and now it seems to be gone..?
it redirects to valuehost.ru; i would guess that maybe they've exceeded bandwidth on the colo/hosting plan, or something similar, but since i don't speak russian, and most of the text is actually images (no babelfish translations)
does anyone know if this library has been discontinued/abandoned? there is always the Outlook Redemption lib, but it seems like the MAPI33 was a bit more complete/robust.
thanks -
|
|
|
|
|
How to fetch and edit the properties of a File Type.
For eg: If the File type is ".txt"
Name of the default application associated.
Icons associated with this file type.
Is it possible using .NET Framework Managed Code?
Thanks,
Nagaraj
|
|
|
|
|
All this information is stored in system registry. You can either call registry methods directly or write a class that wraps low level registry calls into high level methods.
|
|
|
|
|
The easiest way would be to create an .msi installer that automatically associates the said filetype with that of the installed application. The other way would be: go through registry as previous CP member mentioned. Be sure your application has the proper administrative priviledges if you plan to alter the registry.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
there are two datetime peaker contains date
and twao textbox contain time in float eg.1.4,1.5
and suppose date1 is 01/12/08 , time1 is 10.00 am and date2 is 03/12/08 , time 2 is 15.00 pm
i want calculate the total hours from date1 to date2.
neha
|
|
|
|
|
Try not to cross post[^]. It's considered bad form.
Simon
|
|
|
|
|
The MSDN documentation states that the Reset method 'Resets the DataTable to its original state'
Now I may be a bit paranoid here thinking there could be a few interpretations of 'original' but here goes.
Does anyone know what is classified as the 'Original State'?
If the datatable contained data and then the Reset method was called. Do they mean it is the state when it was declared which has the structure of the datatable object but no data, or some other state?
|
|
|
|
|
It's the state that the original records were in before any changes were made. It basically throws out all the changes to the dataset/datatable it's called on. So, if you have a bunch of records in a databtable, let the user makes changes, you can throw out all the changes by calling Reset. If you call the Update method on a dataadapter, it will look at all the changes that have to be made, as tracked by the datatable, and update the database with each change appropriately. Reset throws out all those changes before you can attempt to update the database.
|
|
|
|
|
Hi, not sure where to post this. I'm developing for VB.NET, but I guess any answer would be of great help, so I'm posting it here.
I would like to obtain the colors used by the current visual style (specificly the two colors used in the gradient on the left side of the a menu, if thats of any importance).
I've found the color used around textboxes here System.Windows.Forms.VisualStyles.VisualStyleInformation.TextControlBorder, but i can't make any sence of the rest of this namespace.
The only solution I've found for this so far is to actually read from the registry or the msstyle file, wich I believe is not a very good solution. There must be some .NET or API way to do this.
|
|
|
|
|
I would hope the SystemColors class provides that kind of information.
|
|
|
|
|
Nope. It doesn't. SystemColors provides the theme colors, or whatever they call them, wich most of arent even used when a visual style is applied. I'm after the visual styles color scheme.
|
|
|
|
|
|
Did you read my reply to Luc at all?
SystemColors contain only system colors. They're used for theme Windows, and this set of colors have been there since Windows 3.0. Themes and visual styles however, are two completly different things, and many of the system colors aren't even used when a visual style is applied. Most of the visual style consists of images but some elements are built such as the menus and toolbars used (for the first time) in Office 2003, are drawn using a color scheme. A visual style, like the default one in Windows XP, can come with many color schemes. These color schemes are NOT editable by the user, wich the system colors are. These elements seems to be built into Windows, or more likely, into .NET, so that we can build beautifully looking applications. To make my application even more beautiful I want to use some of the colors from the color scheme elsewhere, and so I need to obtain them somehow. As i said, this can be done through the registry, but this is somehow complicated, or finding the applied visual style and reading the source files -- wich would be a stupid way of solving this. Many of Microsofts own applications seems to be using these color schemes, so I'm still wondering if they ar obtainable through .NET (preferably) or through APIs?
And once again, I'm specificly looking for the colors used in the gradiend to the left in the menus. These colors are NOT present in the SystemColors class. Prove me otherwise if I'm wrong, don't just say they are, becouse I can't find them, and they do not seem to be documented by Microsoft.
|
|
|
|
|
|
I have recently moved from .NET 2003 to .NET 2005.
I have written a simple application, re-using some code from a .NET 2003 project.
The program runs fine in the .NET 2005 development environment.
I have now created a setup project to produce the two setup files.
When I run the setup files on a different machine the program installs ok.
But when I run teh program I get a JIT window with message:
An exception 'System.InvalidOperationException' has occurred in ChordFinderAssembly.exe.
I have searched the internet but cannot find any suggestions appropriate to my problem.
Can any one help?
Roel.
|
|
|
|
|
Member 1871720 wrote: I have written a simple application
Member 1871720 wrote: But when I run teh program I get a JIT window with message:
An exception 'System.InvalidOperationException' has occurred in ChordFinderAssembly.exe.
Member 1871720 wrote: Can any one help?
Help with what? What do the log files your application is generating say about the error?
led mike
|
|
|
|
|
You gotta try and at least find out where the problem is occurring. Add logic to log what's going on or at the minimum put some msgbox statements in the CTOR, load, activate, etc to narrow down where the problem is happening.
From there, you can narrow it down to a specific stanza of code. Cheers!
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Thanks for your suggestions.
I put msgbox statements in various plaves and finally traced it down to a file that the app was trying to open. However I forgot to include the file in the build. I have now also added error catch statements everywhere just in case.
Reason I put the question on the message board was that this was my first app in .NET 2005 using .NET 2004 code snippets and I automatically assumed that he problem was with 2005.
Sorry, but thanks for your help.

|
|
|
|
|
Assume I have a datatable named tb. And a bindingsource bsPlanning.
I set the bindingsource to have a datasource from tb.
And I have a datagridview to have a datasource from bsPlanning.
I made an update to database using UPDATE statement.
I reload the data to tb.
Then finally I call bindingsource bsPlanning.ResetBinding(False).
But the datagridview won't refresh the value.
Please tell me if I have done something wrong and tell me how to do this... Thank you ...
I have code like below:
Private Sub RefreshGrid(Optional ByVal intFilter As Boolean = True, Optional ByVal ReloadData As Boolean = False)
Dim strQuery As String = vbNullString
Dim sr As StreamReader = IO.File.OpenText("productionplanning.sql")
While Not sr.Peek = -1
strQuery &= sr.ReadLine & " "
End While
sr.Close()
tb = ExecuteQuery(strQuery)
If intFilter Then Call IntegrateFilter()
If ReloadData Then
Call DataLoad(bsPlanning, bnPlanning, dgv, tb)
Else
bsPlanning.ResetBindings(False)
End If
End Sub
|
|
|
|
|
Is your database getting updated properly?
Cheers!!
Brij
|
|
|
|
|
Hi,
Check first that database is updated with new values or not?
Try Calling bind function of datagridview again after ResetBinding().
Hope this helps.
Thanks
Shilpa
|
|
|
|
|
I am new at writing both C# code and with network protocol.
Let me summarize what I do know and what my problems are:
I am trying to use a UDP broadcast to send out a call and response. Basically I send out a command byte[] array with the first 5 characters being 'BURN' and 'R'. As I understand it correctly my device is listening always on the port 20034.
If "BURNR" is broadcast out correctly I should get a response from all the devices on the port 20034 that are listening to send me a byte[] array back. Later the byte[] array is parsed into a struct, but for now all I need is to establish the connection between my program and the hardware boards in the field.
I know the boards work because I have a C++ program that implements a scan to find all the IP addresses and it works. I need help implementing that code in C#.
This is what I have tried:
updClient udp = new udp();
byte[] sendBytes = Encoding.ASCII.GetBytes("BURNR");
IPEndPoint ipept = new IPEndPoint(IPAddress.Broadcast, 20034);
udp.Send(sendBytes, sendBytes.Length, ipept);
I have also tried some stuff with System.Net.Socket, but I have yet to make any sort of connection.
Please advise?
Thanks
|
|
|
|