|
I am programatically adding items to the ListView Control. I also want to programatically scroll to the last item in the control...how do i do this?
|
|
|
|
|
try ListView.EnsureVisible()
Luc Pattyn
|
|
|
|
|
Thank You so much!
|
|
|
|
|
Hey guys,
I need to hide the VS Report (.rdlc files) print window dialog when printing (that one that shows "printing page X of Y", or something), like a silent mode. Is there any way to accomplish it? I think there's not any silent mode in this component, so i think i'll need to tweak it a little.
I'm printing a lot of reports at the same time and a lot of these windows appears to our users - and no, they don't like it. XD
Thanks for your attention...
bad, bad engRish... :/
|
|
|
|
|
First of all, thx for your replies. And sry about my broken english. I'm still noob . But that's not my homework but a problem i wanna solve. Till now i cant find the solution. Let me make it more clearly:
1) The site i tested is: www.ou.edu.vn/diemthi. U can log onto it to check it. There are 2 textbox: ID and password. ID and password are alike for example 10300005. So i wanna build a program that inserts the ID & password automatically and submit it. The ID can be inserted from x to y such as 10300005 -> 10300008 one by one. Is there anyway i can solve this?
2) Once u click the submit button, the mark page occurs. It has a table which contains the student's marks. And i wanna get those marks to add them into my database but i dont know how. I searched in the MSDN and many e-books but still cant find any object or function that can solve it.
Any ideas for me ?
|
|
|
|
|
An edu address, and it's not homework? hmmm.
Use Firefox and let it populate it for you.
|
|
|
|
|
1) Yes there are ways to do this including commercial and freeware products, but this is called hacking, and it's illegal. You should use the page they provided to access individual records, and if you want mass transfer of data you should contact the adminstrator rather than just hack into their website -not to mention how poor a hack this way would be-.
2) Same as (1). Also MSDN is not designed to answer specific question, it's a general technical documentation that gives you guidlines and general help. You tailor that help to suit your needs. If you did look carefully you could have seen several classes dealing with Http data transfer, and this is as far as I would tell you.
Forgive my rudeness, but your request is quite unacceptable without appropriate clarification of your motives.
Regards
|
|
|
|
|
teeboss wrote: But that's not my homework but a problem i wanna solve.
hahaha
i like the way you try and "hide" what you're trying to do.
|
|
|
|
|
ty? I considered it a good compliment
|
|
|
|
|
Hello
i have a pabx(panasonic) connecting to a printer and now i want to connect it to my computer.if someone have an idea he can give me or some links.
thank
|
|
|
|
|
I fail to see how your question has anything to do with C#.
But, if it's a link you want - Click[^].
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Hi,
I want to add a reference of Live Communication Server API to my application and use its functionality. But I am unable to trace the LCS APIs like RTC Client API. I would be great full if some one help me out in finding the pysical reference of this LCS API.
Thank in advance:
Rakesh
|
|
|
|
|
All you have to do is type "Live communications server" into the search box on MSDN. Click[^]
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
My problem is: I have a "Mark review" web page that contains 2 textbox: username & password. When i insert the ID into the username & password textbox (password is the same as ID) and click submit button, it'll take me to the HTML page that shows the mark table.
The question is: is there anyway that i can use C# to build a program that insert the ID into the textbox automatically? After that, how can I get the mark in the table of the HTML page and add them to my own database?
I heard ppl said that i can use the WebBrowser control but sry, im still an amature. Pls help me solve this. Ty so much.
|
|
|
|
|
Actually, I don't understand a word of it... Obviously there's something wrong on your webpage[^], but you don't clearly explain what's wrong and what you wish to accomplish..
|
|
|
|
|
Aside from being unclear, as was mentioned, posts titled with URGENT or Critical Problem! are generally ignored.
If you would take the time to first read "How to get an answer to your question" then clearly describe your problem I'm sure someone can help you.
only two letters away from being an asset
|
|
|
|
|
Other than being incoherent, a "Critical Problem" usually means homework.
|
|
|
|
|
I have a problem.i cant raise any mouse events in my design surface.I tried with delegates but no use...Is there any way to raise events explicitly...like using interfaces
Ex :IComponentChangeService etc....
|
|
|
|
|
try importing SendMessage win32 APi with command WM_MOUSEXXXX
If u can Dream... U can do it
|
|
|
|
|
Hi there,
I wanna change the color of the blocks present in toolstripprogressbar. The default color is green. I want to change it to some other color.How can this be made?
|
|
|
|
|
I always have the same problem.
What I do to solve it is by drawing a rectangle in a panel (and thus creating my own control)
this might help:
<br />
public void DrawProgress(ref System.Windows.Forms.Panel drawpanel, int percentage){<br />
Graphics graph = Graphics.FromHwnd(drawpanel.Handle);<br />
graph.FillRectangle(Brushes.Black, new Rectangle(0, 0, drawpanel.Width, drawpanel.Height));<br />
int rectwidth = 1;<br />
if(percentage > 0){<br />
rectwidth = (int)drawpanel.Width*percentage/100;<br />
}
Rectangle rect = new Rectangle(0, 0, rectwidth, drawpanel.Height);<br />
System.Drawing.Drawing2D.LinearGradientBrush lgbred = new System.Drawing.Drawing2D.LinearGradientBrush(rect, Color.DarkRed, Color.Red, System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal);<br />
graph.FillRectangle(lgbred, rect);<br />
if(percentage > 0){<br />
if(percentage >= 23){<br />
graph.DrawString(percentage+"%", new Font("Arial", 12), Brushes.Black, new PointF(((int)drawpanel.Width*percentage/100)-50, 3));
}
else{<br />
graph.DrawString(percentage+"%", new Font("Arial", 12), Brushes.Red, new PointF(rect.Width+3, 3));
}
}
else{<br />
graph.DrawString("N/A", new Font("Arial", 12), Brushes.Black, new PointF(((int)drawpanel.Width*percentage/100)-50, 3));
}
}
good luck
V.
If I don't see you in this world, I'll see you in the next one... And don't be late. (Jimi Hendrix)
|
|
|
|
|
Hi V. Thanks a lot for your posting. But my project needs it to be in a progressbar only.Using paint event of toolstripprogressbar we can do that. I am trying for that.
|
|
|
|
|
private void Form1_Load(object sender, EventArgs e)
{
toolStripProgressBar1.ProgressBar.ForeColor = Color.Blue;
}
This code works for me.
|
|
|
|
|
Thanks alot vega. But it is not working with windows-xp theme. When i changed my xp-theme to someother theme. this code works. did u perform this with windows-xp theme?
|
|
|
|
|
You're correct: enabling visual styles causes this code to break. I don't know how to work around this, unfortunately.
|
|
|
|