|
Uhhh...I really hate to say this but this should have been covered in the specifications/requirements meeting with the customer. You shouldn't be asking this question at the end of the project. This should have been one of the questions you asked before you ever wrote a single line of code, even before you sat down to design this thing.
|
|
|
|
|
Thanks dude ....... that was ma mistake ... i hope it will never be repeated like that again
Tnx a lot
|
|
|
|
|
Hello,
I have many tab pages in my tabcontrol.
The tabpages are shown in one line.
How can i do so the tabpages will be in 2 lines (for example 5 in the upper and 5 in the lower etc)?
|
|
|
|
|
Have a look at this:
private void Form1_Load(object sender, EventArgs e)
{
TabControl tabControl1 = new TabControl();
TabPage tabPage1 = new TabPage();
TabPage tabPage2 = new TabPage();
TabPage tabPage3 = new TabPage();
TabPage tabPage4 = new TabPage();
TabPage tabPage5 = new TabPage();
Label label1 = new Label();
tabControl1.Multiline = true;
tabControl1.SizeMode = TabSizeMode.FillToRight;
tabControl1.Padding = new Point(15, 5);
tabControl1.Controls.AddRange(new Control[] {
tabPage1, tabPage2, tabPage3, tabPage4, tabPage5});
tabControl1.Location = new Point(35, 65);
tabControl1.Size = new Size(220, 180);
int rows = tabControl1.RowCount;
label1.Text = "There are " + rows.ToString() +
" rows of tabs in the tabControl1 tab strip.";
label1.Location = new Point(35, 25);
label1.Size = new Size(220, 30);
Size = new Size(300, 300);
Controls.AddRange(new Control[] { label1, tabControl1 });
}
zafer
|
|
|
|
|
You could try Google[^]
You could try reading the documentation[^]
You could try reading the "how to get an answer to your question" at the top of the page.
All of these are quicker than "post and pray"
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
I'm currently writting a web service with sessions. I have a few methods like (getPrivileges) that need to read from Session[], but that I would not like to have them visible to outside requests.
The question is: how do I read a Session[] value (like Session["id"], or whatever) on a method that is not a WebMethod?
Best regards
Fratelli
|
|
|
|
|
AndreFratelli wrote: The question is: how do I read a Session[] value (like Session["id"], or whatever) on a method that is not a WebMethod?
You mean those methods which are not exposed as Web Method ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Abhijit Jana wrote: You mean those methods which are not exposed as Web Method ?
Exactly
Fratelli
|
|
|
|
|
I am in need of some guidance of how to carry out a specific task I need to perform...
I have a database table that contains requests made by users for excel spreadsheets.
In that table there is a status column which indicates the step the request is in.
I need to write a service of some sort that will be able to keep checking the status column of that table.
When it finds a record that contains the status it is looking for, it should pull the data from the record and call another application which creates the excel spreadsheet.
(NOTE: I have written a program that contains a class which creates an excel spreadsheet and saves it to the local hard drive. All of this will be hosted on the same server)
Thanks in advance!
|
|
|
|
|
I'd do that with a Windows Service. I'd have it cycle every minute or so, query the table, do what it has to. Not a big deal.
|
|
|
|
|
|
I am trying to Trap a Windows Dialog that appears when a user exists PowerPoint and the system asks to save changes. The changes are not required and we don't want the dialog appearing.
We have managed to get the handle to the window and pass it the correct key to close the window but still have the window appearing for a second and the Window Beep sounding.
Is it possible to Catch this window and process it before it is displayed and the Beep sounds?
|
|
|
|
|
are you in Office 2007 ??
|
|
|
|
|
When the PP document is read-only, I expect PP won't let you change it and won't ask such question.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
Hi Thanks for the reply.
I am are targeting both Office 2003 and Office 2007.
I have managed a bit of a workaround.
We are giving the user the option to save changes by default of not.
If Save Changes is set we add the following to the SlideShowEnd Event.
CurrentPresentation.Save();
If not we use
CurrentPresentation.Close();
Application.Quit();
This seems to work well although when PowerPoint closes and the changes have not been saved and the show is being run from an open application as opposed to being run from a folder with (Right Click Show) the Save Changes dialog appears. We have managed to get a handle to this Dialog and pass it a "No" key press. The problem is that the dialog still appears for a second with a system beep. Would be nice to handle this more effectively. i.e trap it and action it to stop it appearing.
|
|
|
|
|
when the window created, it will show . you can't stop it.
but you can consider this.
1) if you can get the handle of the window,
why not monitor the messages of the window queue,
one window created, message must send out.
so pop this message from the queue, will success to stop window showing.
2) or you can 'hook' the function which create window in Win API.
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 22:01pm.
|
|
|
|
|
Hi.
I'm developing a small Windows forms application on which I must apply logon security. I need to verify that the user exist in the AD, is part of a certain group and has the proper role.
I also need to take care of the fact that the computer might not be connected to the network hence no contact with the domain controller.
Does anyone have an idea on how to implement this in a simple way?
|
|
|
|
|
Well, use base credentials. Once the computer is connected to the network cache the credential to the client, and use it until the next login to server. Get Roles, groups etc data of that particular user which is connected through login to the local cache (might be in database) and use it until it gets online to network again.
|
|
|
|
|
Allright, but how do I do this (I'm fairly new to C#). Is there some examples out there which I can take a peek at?
|
|
|
|
|
Hi.
I'm developing a small Windows forms application on which I must apply logon security. I need to verify that the user exist in the AD, is part of a certain group and has the proper role.
I also need to take care of the fact that the computer might not be connected to the network hence no contact with the domain controller.
Does anyone have an idea on how to implement this in a simple way?
Reply:
if you use 'socket' or other 'object'...,i think they always have a function like 'connect';
try like this way:
try
{
sokcet.connect();
}
catch
{
// not success.
// deal it.
}
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 22:01pm.
|
|
|
|
|
Hi
working on my first ever project with c# in visual studio 2008 using net framework 3.5
i'm trying to work out how to display a list of AVI files from a fixed directry (c:\video) and have that list update itself everytime a new file is added and to highlight the latest flle.
been looking and trying things out for over 2 weeks and getting no where so any help would be great, even just getting the list of AVI files to display would be a great start
thanks
kenny
|
|
|
|
|
Searching for 2 weeks you must have encountered Directory.GetFiles() and FileSystemWatcher many times, and have become an expert in using them.
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
yes came across them many times but every time i tried to use them i got errors
|
|
|
|
|
That depends on where you search.
|
|
|
|
|
Google is a great place however even that doesn't always give you what you want in a format you understand, everyone got to ask to learn
kenny
|
|
|
|