|
Basically, the problem is that the images cannot be simply copied to other computers. So the anwer would be, yes, the .NET runtime has to be installed.
Think about it: The .NET Class Library is part of the .NET Framework. Now, even IF you could simply copy the NGEN-Generated images over, you still would need to
a) Work around the PE-Executable Format
b) Work around the missing Class-Library
c) Work around Windows not knowing what to do with your image
...
The runtime-installer is not too big. Many computers already have it installed as a part of regular updates, for example, WinXP SP1 or SP2.
This may be a problem if you plan to distribute your app as "download only", which would require you to warn people about the requirement and hint them as to where they can get the .NET FW (Microsoft / WindowsUpdate).
Remember, you only need the FW - and thats about 15 MB (if I got that right).
Cheers
Sid
|
|
|
|
|
|
hi,
As far as I have seen, there is no easy way to enter multiline text (while preserving spacing formatting, etc.) into a regular text box or rich text box. So I created an application that does this for you. You paste or enter your text into a rich text box, then click a button to generate the code with the formatting information (such as "\r\n", etc.). This is basically a way to batch convert your text into a format that can be inserted into another application to send that text programmatically into a regular text box or a rich text box. I hope you find it useful. You can download it here:
http://www.teched.coe.ohio-state.edu/lugnut/text_formatting_creator/Text%20Formatting%20Revealer.zip
|
|
|
|
|
HI
I am working on Infopath File attachment control Programmatically ,
I am reading a image file from my database table , converting to base64string ,
and then returning to attachment field in my Infopath Form .
the problem is that when I open the attachment , it is opening in binary or some other format , and not in standard readable format ,
filedata.Getfilename obj2 = new filedata.Getfilename();
IXMLDOMNode nodefld1 =thisXDocument.DOM.selectSingleNode("my:myFields/my:field3");
nodefld1.text = obj2.ReadfileInfo();
where obj2 is a object of a web service , which return a string of base64
and field3 is a file attachment .
what I need to do ,
thanks
thanks
|
|
|
|
|
How do i make an msi project in visual studio .net be a silent install all the time?
|
|
|
|
|
It's not done in the project, but in the command line that launches the msiexec processor that runs your .MSI install. An .MSI is a database, not an application.
msiexec /q /i myApp.msi
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
I'm a C#/.Net newbie, so be gentle...
I've added an MSChart control to my form and would like to populate it with data. My data is a single dimension (of size > 0) array of int s (eg: sales per region). I haven't been able to find any documentation on how to do push this array into the control and would appreciate a pointer.
(edit)
The "array" needs to be a dynamic collection of int s, a la an MFC CUIntArray . It will be populated (with approx 5-10 int s) just before I load the chart control. Looks like I have to a SetData() (i.e. set the control's Data property to point to my collection) but am stymied as to how to do this.
Sadly, this didn't work:
ArrayList counts = new ArrayList();
counts.Add (5);
counts.Add (10);
counts.Add (20);
counts.Add (15);
counts.Add (3);
axMSChart1.ChartData = counts;
(/edit)
Thanks!
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Figured it out! It was as easy as:
double[] counts = new double[3];
counts[0] = 5.0;
counts[1] = 15.0;
counts[2] = 25.0;
axMSChart1.ChartData = counts;
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Hello I need a little help.
I have three array lists for this example.
ArrayList one = new ArrayList()
ArrayList two = new ArrayList()
ArrayList three = new ArrayList()
I would like to do a foreach or for loop that can cycle through the items in the three Arrays. Instead of doing 3 foreach loops around my values like this:
foreach(int a in one)
{
foreach(int b in two)
{
foreach(int c in three)
{
get array valuse here
}
}
}
Hopefully that makes since. Thanks for the help.
JD
|
|
|
|
|
There is no one liner for this problem. If you REALLY want it I have two possibilities:
1. Write an own IEnumerable implementation which takes theses three lists and then exposes an IEnumerator which can handle these after each other.
This only make sense if oyu are doing this really often.
2. Add all items to one list and enumerate over the merged list.
|
|
|
|
|
Hi...
Can anyone tell me how to make a WebBrowser in my c# app, or an good articled. (I am a beginner)
I do not know how to do it... anyway i tried something with the System.Web class, but it all seemed very confusing.
All help is appriciated
QzRz
QzRz
|
|
|
|
|
Do you want to do it the hard or the easy way?
The easy way would be to use the IE, which can sort of be loaded into your App.
The hard way would be using the HttpRequest, which can obtain files from a web-server. You then need to draw that.
Writing a simple browser is not too hard - getting things displayed the way they are supposed to be, however, is.
Cheers
Sid
|
|
|
|
|
okay...
Can you show me how to use the IE in my application?
I can load the file into the users internet browser, but thats not what I want.
Or
How to show the it using the HttpRequest, but the file I want to show, is only on the users computer, not on a server.
QzRz
|
|
|
|
|
Hi all ,
i got this exception "Operation must use an updateable query."
When i tried to work with this code
OleDbConnection AccessCnn2 = new OleDbConnection("Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database Locking Mode=0;Jet OLEDB:Database Password=;Data Source=\"e:\\Fuu\\data_RWable.mdb\";Password=;Jet OLEDB:Engine Type=5;Jet OLEDB:Global Bulk Transactions=1;Provider=\"Microsoft.Jet.OLEDB.4.0\";Jet OLEDB:System database=;Jet OLEDB:SFP=False;Extended Properties=;Mode=Read;Jet OLEDB:New Database Password=;Jet OLEDB:Create System Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;User ID=Admin;Jet OLEDB:Encrypt Database=False"); <br />
AccessCnn2.Open();<br />
OleDbCommand myCmd_Access2 = new OleDbCommand(); <br />
myCmd_Access2.Connection = AccessCnn2; <br />
myCmd_Access2.CommandType = CommandType.Text;<br />
<br />
myCmd_Access2.CommandText = "Update [INVOICE HEADER TABLE] Set [INVOICE HEADER TABLE].[INVNOTE]='"+DateTime.Now.ToString()+"' Where [INVOICE HEADER TABLE].[INVNOTE] is null";<br />
myCmd_Access2.ExecuteNonQuery();<br />
AccessCnn2.Close();
help please
Regards
todary
|
|
|
|
|
This often means that the file cannot be written to by the account that the code is running under. Check your NTFS permissions for the file and the folder it's in.
If the operation succeeds for the first attempt to open a connection but fails subsequently, it often means that Jet cannot write to the log file in which it tracks concurrent operations (a file with the same name but a .ldb extension, in the same directory).
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
I would like to write an application that overlays information on external application windows.
My plan is to draw the information on a transparent window that is positioned over the external application window. In order to do that I would like to track some information from the external application, like position, size and z-order so I can reposition the transparent window accuratly. Ideally I would like a way to read these parameters and get events when the parameters changes.
I would like to write my application in csharp. How could this be done? Is there a way to accomplish this using the .net API or do I have to use the native Windows API? Is there perhaps a simplier way to accomplish the same task? Does anyone have any references to source code which solves the problem (or a similar problem).
|
|
|
|
|
I found some Javascript code on the Internet and it works very well for what I need to use it for. I want to do the same thing in c# code. Does anyone know of a program that converts javascript to c# code? If not does anyone know how to run javascript from a c# program?
|
|
|
|
|
Look into these methods for running javascript from within your asp.net app.
RegisterClientScriptBlock()
RegisterStartupScript()
-Richard
|
|
|
|
|
One thing you can do is compile the JavaScript code as JScript.NET (look at jsc.exe compiler in the DotNet SDK).
Once compiled as .NET code, C# code could call the JScript.NET functions without hassle.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: He has a funny face. And he's my son.
Judah Himango
|
|
|
|
|
Hello everyone. I have an interesting problem that I need help with. I'm sure someone else has already had this problem. I have a custom control (either win or web because I have both doing this) and this control contains other controls such as a label and richtextbox. Well I have a few public properties that set properties on the internal controls but I also have a property that exposes the internal control as a property. My problem is that when I goto the designer and set properties though the control exposed though the property none of the settings are kept, however if I set the properties on the exposed control in code behind everything works fine.
Any help would be apprciated
-Richard
|
|
|
|
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] makes sure it is saved - put that in front of your control property
|
|
|
|
|
if u have custom properties on that control property, be sure to use [DefaultValue(false)] on the properties if they are primitive types (int,string etc.).
If u have object properties use the [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] attribute and go into that object and use the [DefaultValue(false)] attribute.
etc. etc.
|
|
|
|
|
I have an RTF which is being used do text editing. When an existing text document is placed in the control, it automatically adjusts lines based on the text fitting inside the window. However when I issue a editWindow.GetLineFromCharIndex() it returns a line number (3 for example) which is outside of the internal editWindow.Lines property within the control.
So line 3 may visually be the 3rd line of text. Yet internally all of the text only exists on line 1.
Is there any way to get the Lines property of the RTF to match the visual lines created via WordWrap???
Thanks!
There are 10 kinds of people in the world.
Those that read binary...
...and those who don't.
|
|
|
|
|
I am new to C# and looking for a little help. I need to programmatically
add users "User Logon Name" / "WinNT logon" to the windows 2000 Active Directory. I need to control/add other properties, but for now this is the main objective.
I have successfully added pre-Windows 2000 users with DirectoryEntry & NetUserAdd, but can't find the syntax to add a WinNT logon name.
I am using Visual Studio.Net 2003
Thank you,
markaelkins@gmail.com
Other properties that I need to control/add: (password, Full name, pre-Windows 2000 logon, User cannot change password, Password never expires, Description, Office)
|
|
|
|