|
|
How can I create an XML document as a result of Visual Basic code compilation?
|
|
|
|
|
What would you like this XML file to contain?
my blog
|
|
|
|
|
do you mean XML comments? do you mean old VB, or VB.NET? which version?
Never forget: "Stay kul and happy" (I.A.)
|
|
|
|
|
I'm looking to write an app that will pull data from a txt, excel, or access file. I would like to have 2 combobox2 pull names from col 1 and Row 1 and return info to a couple of labels depending on the selected value. This would be the equilivent of vLookup in Excel I believe. So...
Size TW THHW THHN
18 - - 14
16 - - 18
14 20 20 25
12 25 25 30
if Combobox 1 was selected as 14 and combo box 2 THHW Label 1 would return a value of 20. Can someone please tell me what this operation is called in VB.NET so that I may lookup how to do this. I can build the table in any of the above formats, .txt, .xls., or .mdb. The idea being that I can update the values eaisily when needed.
Thanks for your time,
Glisson
|
|
|
|
|
I'm resizing multiple 24 bit RGB images from 752x480 to 640x480. When some of the images are resized the interpolation (at least I'm assuming that's the cause) is shifting the image down one pixel; this happens with about 50% of them. Since they're sequential images, which are then saved into a video, this shift causes vertical jitter.
The following is the function I'm using to resize the images. Since I'm only resizing horizontally bilinear is all that's required. I've tried both Bilinear and HighQualityBilinear, neither makes a difference.
public static Image HighQualityResize(Image source, int newWidth, int newHeight, bool useBicubic)<br />
{<br />
System.Drawing.Bitmap retImage = new System.Drawing.Bitmap(newWidth, newHeight, source.PixelFormat);<br />
System.Drawing.Graphics graphic = System.Drawing.Graphics.FromImage(retImage);<br />
<br />
if(useBicubic)<br />
{<br />
graphic.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;<br />
}<br />
else<br />
{<br />
graphic.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.Bilinear;<br />
}<br />
<br />
graphic.DrawImage(source, 0,0, retImage.Width, retImage.Height);<br />
return retImage;<br />
}
Am I doing something wrong? Is there something that I need to do in addition to remove jitter? I don't understand why this is happening...
|
|
|
|
|
|
Hi,
I've made this DLL, which is still under development, and I've made an application that uses it. Since I want the program to always use the latest version of the DLL, I've put these two in the same solution and I've put the DLL as a reference in my application project.
But now I want to deploy my application, and I want my DLL to be in the System32 directory. However, I have to change the reference in my application.
Is there an easy way of switching back and forth from a reference to the DLL project to a reference to a .NET dll in the System32 directory?
Thanks!
|
|
|
|
|
It is not recommended to put .NET dlls in System32. If you want to install it in a globally accessible place, then that place is the GAC (global assembly cache). It can be installed into the GAC using the command-line gacutil utility.
Before installing into the GAC, you need to give the application a strong name, to uniquely identify it. The .net sdk help files have all the details on how to do that.
my blog
|
|
|
|
|
I have a written small Compact framework application using c#. I now want to add logging functionality to help debug problems when in production.
What is the common methodology used for C# logging in Compact Framework? Are there opensource classes or in built c# classes I can use for this purpose?
I am thinking of something along the lines of Log4j, but even a very basic logger will do to begin with.
Thank you and regards,
Shibu
|
|
|
|
|
log4net is the equivalent to log4j (google for web page). Otherwise, .NET comes with some basic logging, through the use of System.Diagnostics.TraceListener . I do not know how much of it works with the compact framework.
my blog
|
|
|
|
|
Hello,
Is it possible with this namespace to build a construct, with which i get noticed when a new window or a new tab pane on the Pocket Pc is opened?
thx
regards
pat
|
|
|
|
|
Hello,
As i said in the previous posting I want to write a little code fragment where i get noticed when a new window or a new tab pane is opened on the PocketPc - independent of the application.
I think this is possible withe IMessageFilter-Interface. Can anybody please explain me how i can implement this with the IMessageFilter??
thanks in advance.
regards
pat
|
|
|
|
|
Now i have an other initial stage: Is it possible to get noticed when the user triggers the display of the PocketPc with the stick of the PocketPc??
regards
pat
|
|
|
|
|
Hi, i'm writing a windows service nad it wroked very well in C#, the problem is that it runs unser the LocalSystem acount and i want to run it under a specific User acount in the network, but whenever i chose this option the Service is failed to be installed, i use the "installutil.exe" that comes with the .NET and when i ask to install the service it shows a login dialog that asks for the username and password, and i enter a valid user name and password in the domain ( which is my account!!!) but still it keep fails to install and it rollback! does anyone have a solution for this problem?
|
|
|
|
|
Did you set the account you want your service to use, "log on as service" rights. If not, you'll need to do this manually in the "Local Security Policy" MMC Console.
|
|
|
|
|
thanks for your help, it wasn't actully the problem but your way helped find it, i was it seems i wasn't writing my user name in the way that should be, Domain\UserName.
thx again.
|
|
|
|
|
can i ask another question, ow if i want to change the user name name and password from the code (since i'm bilding a controller for the service) i can stop and start and query the service but i need to have control on changing the User name and Password, so do you know or any other how can i do it in C#?
|
|
|
|
|
There are a few Articles here on CP in the C# section dealing with that, just search "service".
Here is an example:
http://www.codeproject.com/csharp/CSharpWindowsServiceInst.asp
|
|
|
|
|
i have worker table and related table
i want to make report and to see worker and the related
how can i do that ?
in the crystal repororts i have
report.setdatasource(dataset);
do i need to enter all of the data fileds to 1 dataset ?
or maybey there is a way to have more of 1 datasource ?
plese help )
|
|
|
|
|
I am not an expert on this but i guess
u can bring all the data in one dataset
and group it in the crystal report.
cool man
|
|
|
|
|
u answer write
thanks )
|
|
|
|
|
I'm working on an program and I need help. It seems like a basic thing to do, but does anyone know how to make a desktop shortcut open a currently running tray program/process? Any help would be greately appreciated. Thanks!
|
|
|
|
|
Hi,
one way to do this is by letting the shortcut open the same running application. However, that application should be made to run as a single-instance...if the app is yours, you can do that easily by checking out some of the articles showing how to make a single-instance application (this means that if your app is running, trying to re-open it again will not create a new instance, it opens the already running one instead.
|
|
|
|
|
Hello,
You know there is some language which is not support in built-in NLS. I learned System.Globalization can accept custom sort key data or NLS+ sort data. And www.unicode.org give us the key file sample in format like:
E0040 ; [.0000.0000.0000.0000] # [E0040] TAG COMMERCIAL AT
E0041 ; [.0000.0000.0000.0000] # [E0041] TAG LATIN CAPITAL LETTER A
E0042 ; [.0000.0000.0000.0000] # [E0042] TAG LATIN CAPITAL LETTER B
And code page sample like:
0x3F 0x003F #QUESTION MARK
0x40 0x0040 #COMMERCIAL AT
0x41 0x0041 #LATIN CAPITAL LETTER A
0x42 0x0042 #LATIN CAPITAL LETTER B
So how could I make the resource file for sort key data and which format is right. How could I make the resource exactly.
With Regards
Kyaw Zayar Han.
KZYH
|
|
|
|