|
There are many MessageBox realted articles on CodeProject; you don't tell us which one you are referring to.
Consider posting a message on the article with your question.
«OOP to me means only messaging, local retention and protection and hiding of state-process, and extreme late-binding of all things. » Alan Kay's clarification on what he meant by the term "Object" in "Object-Oriented Programming."
|
|
|
|
|
If you downloded the MessageBox source from CP .You can also look for what actualy the author has made with that hope you can find the solution from the source to change the font size.If you cont find it you can also request the same message to the author at the comment section of that article.
Can you paste the article link so that it will be check for the possible ways to change the font size .
|
|
|
|
|
PLease elaborate your requirement?
hi
|
|
|
|
|
If you mean this one: Custom Featured MessageBox[^], then don't post this here - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.
The original author appears to be still logging in, so he may respond - even to a 6 and a half year old article!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Hi,
I have fromOptions and I am showing a user control for every option using this code:
ucOptionsBarcode options_barcode = new ucOptionsBarcode();
options_barcode.Left = 270;
options_barcode.Top = 12;
options_barcode.Width = 500;
options_barcode.Height = 300;
this.Controls.Add(options_barcode);
I would like to change the code to loop through all user controls on the form, if the user control was already added earler then just BringToFront, otherwise Controls.Add it?
How can I do this please?
Technology News @ www.JassimRahma.com
|
|
|
|
|
Try:
Control found = null;
foreach (Control c in Controls)
{
if (c is ucOptionsBarcode)
{
found = c;
break;
}
}
if (found == null)
{
}
else
{
found.BringToFront();
}
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
modified 25-Dec-14 2:05am.
|
|
|
|
|
Message Closed
modified 26-Dec-14 0:58am.
|
|
|
|
|
The name did seem familiar.
What are you doing up at this time of night?
You realise Santa won't come until you are asleep?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
sorry what's :
bool Control found = null;
it's not accepting it?
Merry Christmas
Technology News @ www.JassimRahma.com
|
|
|
|
|
That's a typo...
It should be Control found = null, without the bool...
Skipper: We'll fix it.
Alex: Fix it? How you gonna fix this?
Skipper: Grit, spit and a whole lotta duct tape.
|
|
|
|
|
As Peter says, it's a typo.
Fixed.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I have to generate and store bulk(almost 1 Million) pdf reports from a database to a LAN location.
Scenario: Here data is scattered in many tables. Need to fetch data from DB tables and then put them into a PDF format. These PDFs will be placed at a LAN location.
Question: Please suggest a best way (Whether batch job or crystal report in console application or any other suggestion) to do so.
Thanks in advance.
|
|
|
|
|
You should start by figuring out how you are going to convert this information into PDF format: using the iTextsharp library, a PDF printer driver, Web page, something else ... ?
|
|
|
|
|
There are more than 1 million records, thus it would be best if I can make a batch job for this.
Also for pdf format, crystal report will be feasible but the question is, if crystal report is feasible to take dynamic arguments and then will be able to export PDFs to the LAN location?
|
|
|
|
|
Listen to what the man said: don't start out with "oh I need a batch job", start with "how am I going to do the actual conversion?" and then work out how to automate that.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Member 11332969 wrote: I have to generate and store bulk(almost 1 Million) pdf reports from a database to a LAN location.
I seriously doubt that is a valid business requirement. Some one is confused.
Also is this supposed to be a one time effort? So three years from now exactly the same 'report' will still be valid?
But as noted else where start with creating one report just so you can measure how many resources it takes to generate it. Not to mention what resources you have available to create the report. But based solely on the requirements that you specified I would create an application that would do the following
1 Take input parameters that specified the 'range' of what should be create
2 Process that range sequentially and after each 'report' was generated create a entry in file to indicate it was complete.
3 Then 'send' the file to the 'lan' (whatever that means), Then make a different entry that it was successfully sent.
4 Repeat steps 2/3 till the entire 'range' is spanned.
Writing to the file above allows you to track that everything was done. It also allows you the option to restart if the app fails without redoing all of the work.
In terms of the specific technology necessary to create the report that depends on the content of the report. Crystal is ok but one can get by with other tools if necessary.
|
|
|
|
|
I have create windows application. I have a requirement of continuous stationary printing in vb.
|
|
|
|
|
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind.
Use the "Improve question" widget to edit your question and provide better information.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
OriginalGriff wrote: Use the "Improve question" widget Good luck to him trying to find it.
|
|
|
|
|
Well, he should post in the right forum then!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I have a area in my Project where i need to display a title and content in two text boxes. The Data base tables are:
ID | Title | Content
This is what I have so far, I know I am on the right track, I just cant figure out how to get each box to display based on the ID.
[CODE]
private void frmMain_Load(object sender, EventArgs e)
{
try
{
string connStr = ConfigurationManager.ConnectionStrings["sdcAssistDB"].ConnectionString;
OleDbConnection dbConn = new OleDbConnection(connStr);
dbConn.Open();
OleDbCommand dbCommand = new OleDbCommand();
dbCommand.Connection = dbConn;
string query = "select * from JobAid";
dbCommand.CommandText = query;
OleDbDataReader dbReader = dbCommand.ExecuteReader();
while (dbReader.Read())
{
txtTitle1.Text = (dbReader["Title"].ToString());
txtContent1.Text = (dbReader["Content"].ToString());
txtTitle2.Text = (dbReader["Title"].ToString());
txtContent2.Text = (dbReader["Content"].ToString());
}
dbConn.Close();
}
catch (Exception ex)
{
MessageBox.Show("Unable to Connect to Database" + Environment.NewLine + "SDC Assistant will now Close " +ex,
"Critical Database Error!",
MessageBoxButtons.OK,
MessageBoxIcon.Error);
Application.Exit();
}
}
[/CODE]
Thank you in advance
Rab
|
|
|
|
|
Um.
You do realise that the loop
while (dbReader.Read())
{
txtTitle1.Text = (dbReader["Title"].ToString());
txtContent1.Text = (dbReader["Content"].ToString());
txtTitle2.Text = (dbReader["Title"].ToString());
txtContent2.Text = (dbReader["Content"].ToString());
} will always leave the final row's worth in the text boxes, regardless of how many you return from SQL? I'd suggest replacing the while with if
And to make it do what you want, change this:
string query = "select * from JobAid";
dbCommand.CommandText = query;
To this:
string query = "SELECT * FROM JobAid WHERE Id=@ID";
dbCommand.CommandText = query;
dbCommand.Parameters.AddWithValue("@ID", yourIdValueToLookFor);
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I am writing a c# dll to Revit. I use the Util static class in the code ex.
Util.PluralSuffix(n)
but it seems that Util is not known to the visual c#.
What is I am missing?
brgrds
|
|
|
|
|
Hi brgrds,
The bit that is missing is the ability to understand the section at the top of this forum, i.e. the rules for the lounge.
They may help you in your quest for world dominance.
|
|
|
|
|
You're missing the right place to post the question.
Try here[^] for more specific answers or here[^] if you want more of a discussion.
Wrong is evil and must be defeated. - Jeff Ello
(√-sh*t) 2
|
|
|
|