|
Sorry that you didn't find my post that helpful. I came across the same problem and I couldn't find any other solution. While the code I posted is OTT, I was trying to demonstrate a quick fix to the issue. For your case, it could make sense to create a method that you could reference that would do this, so you only have to write it one time. If your string bank in in a class, you could possibly override the accessor to get your value from the string bank so that it did this "automatically".
Hogan
|
|
|
|
|
Hey, thanks for your input!
|
|
|
|
|
In the end, I decided to type the text out in notepad with the relevant newlines/tabs in place and then paste the string in the string resource database. Not very pretty but works fine
|
|
|
|
|
Hello friends,
In my program I need to create a report with Crystal Reports at runtime. The user may select any dataset column to view in the report so a Crystal Reports template which already has fields do not work for me.
I searched through the net but found nothing about creating a report file from ground.
Hence, I need to create a report file on the fly, add fields to it (depending on users' choice) and fill these fields with data.
I will appreciate any help, code, advice, link etc.
Best regards.
.:: Something is Wrong ::.
|
|
|
|
|
hi
i just deploy my program with clickOnce but i cant figure how i can decide where the program gonna be installed
it seem to install it where he wants and i dont find where i can change the destination in my project
if someone can help me
thanks
|
|
|
|
|
RIPOUX wrote: just deploy my program with clickOnce but i cant figure how i can decide where the program gonna be installed
AFAIK, you can't. ClickOnce distributes all applications in their own folders to a common root that you can't change.
If this is an option you want, you have to go with the traditional setup project, which isn't an option with the Express Editions of Visual Studio. You'd need an external tool to do this.
|
|
|
|
|
thanks for the answer though
|
|
|
|
|
www.advancedinstaller.com[^] is, I think, the link for Advanced Installer. Their free version is probably all you need.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have a form called frmsettings where the user can make changes to settings in my application. The form has a close button and I can intercept the this.close() method there to make sure they have saved their changes but I do not know how to catch the closing of the form via the X in the upper right hand corner of the form. Pretty much I want to catch the form closing from any method and check to see if they have saved their settings, if not I would like to give them the option to cancel the close. Much thanks
|
|
|
|
|
Have you tried the FormClosing event?
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
There are formclosing and formclosed events
|
|
|
|
|
I tried those events but did not see a way to cancel the event. I can have something happen when the event fires but don't know how to stop the close.
|
|
|
|
|
In the eventhandler of formsclosing event write this:
e.Cancel=true;
Of course it won't work if the program is killed through task manager
|
|
|
|
|
Giorgi Dalakishvili wrote: Of course it won't work if the program is killed through task manager
Actually it will, just use: e.CloseReason .
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
Yes I know that enumeration but you won't be able to cancel application closing if it is killed by task manager
|
|
|
|
|
Very cool, thank you
|
|
|
|
|
hello,
can anyone tell me how I can string.format a double to turn a value of 0.5 into 1/2 or, for example 2.0 into 2/1?
thanks in advance!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
|
Your article is getting smacked pretty hard. You might want to rewrite it so it explains how these things are done instead of just documenting how to use your library.
|
|
|
|
|
You might want to have a look at this:
http://www.codeproject.com/csharp/fractiion.asp
|
|
|
|
|
How can I make the binding between treeviwe and a list contaning of object each object contains a list of athere objects
merwa
|
|
|
|
|
<br />
public class ActiveTable<br />
{<br />
public string omniwinRoot;<br />
public string table;<br />
public string tableKey;<br />
public int tableRecords;<br />
public int tableUniqueRecords;<br />
public int diff;<br />
public Queue<string> doubleKey = new Queue<string>();<br />
public Queue<string> noNversion = new Queue<string>();<br />
<br />
analyzeTable()<br />
{<br />
<br />
}<br />
<br />
}<br />
<br />
<br />
public class form1<br />
{<br />
BindingList<ActiveTable> bindingList1 = new BindingList<ActiveTable>();<br />
dataGridView1.DataSource = bindingList1;<br />
dataGridView1.AutoGenerateColumns = true;<br />
ActiveTable tableToCheck = new AvtiveTable();<br />
<br />
tableTocheck.analyseTable();<br />
if (tableToCeck.doubleKey.Count() > 0)<br />
{<br />
bindingList1.Add(tableToCheck);<br />
<br />
}<br />
<br />
<br />
}<br />
My question is: why doesn't this work.
The DataGridView has a datasource and should be able to generate columns, yes?
Why doesn't my DataGridView create columns and adds rows when items are added to bindinglist?
I've tried lots of different things.
Such as defining the columns myself. With defined columns i see that there are rows added to the DataGridView but the columns remain empty.
Any suggestions?
-- modified at 13:35 Tuesday 29th May, 2007
|
|
|
|
|
sharp source wrote: BindingList listOfDoubleIndexTables = new BindingList();
dataGridView1.DataSource = Bindinglist1;
OK. You define a new BindingList, but then you never use it. You bound the DGV to something called BindingList1.
So, which list does addItemsToBindingList1 add stuff to? What are those items? What does this code look like?
And what does this ActiveTable class have to do with anything?
|
|
|
|
|
Sorry, i only wanted the relevant parts of my code. I messed up and should have reread before posting.
I made some corrections and added a few lines.
Hope it will make more sense.
If you want to, http://users.telenet.be/simonsmeets/source.zip[^] holds the project.
thx 4 your time...
simon
|
|
|
|
|
That still doesn't help. I have no idea what you're trying to bind the DGV to, or what you're trying to display, or why, ...
|
|
|
|