|
hi,
I have developed a VB.net project in 800 X 600 resolution.
Now i deployed in a computer which is having 1024 x 768 Resolution.
It is not covering whole screen and looking bad.
any process by which it will adjust automatically....by the screen resolution.
cheers
Paritosh
|
|
|
|
|
Nope. You have to resize your form to fit, if needed. You're form also has to be designed to compensate for varying sizes. This means anchoring controls so they stay in the spots you want them and can resize themselves accordingly. Check out the Archor property, among othet things, of just about every visual control in your form.
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 9:00 Friday 21st April, 2006
|
|
|
|
|
What is the way to check for EndOfStream while using a Binary Reader ? StreamReader has the EndOfStream Property, but there seems to be no equivalent Property in BinaryReader. I am using BinaryReader because I am dealing with Byte Arrays, and sadly, StreamReader seems to insit on reading Character Arrays. And, the Stream I am reading doesn't support Seeking, so we cannot check if the Position Property is equal to the Length...
I googled for it, but can't seem to find anything. Any help people ?
Yuvi Panda T
Microsoft Student Partner
Blogs at : http://yuvipanda.blogspot.com
|
|
|
|
|
Yuvi Panda wrote: and sadly, StreamReader seems to insit on reading Character Arrays
That's what it was designed to do! From the MSDN docs on StreamReader:
StreamReader Class
Implements a TextReader that reads characters from a byte stream in a particular encoding.
As for the BinaryReader[^], you're looking for it's <a href="http://msdn2.microsoft.com/en-us/library/system.io.binaryreader.peekchar.aspx" rel="nofollow">PeekChar</a>[<a href="http://msdn2.microsoft.com/en-us/library/system.io.binaryreader.peekchar.aspx" target="_blank" rel="nofollow" title="New Window">^</a>] method.
Dave Kreskowiak
Microsoft MVP - Visual Basic
-- modified at 8:57 Friday 21st April, 2006
|
|
|
|
|
Thanks, but I am reading from a Network Stream, which Does Not support Peeking.
Yuvi Panda T
Microsoft Student Partner
Blogs at : http://yuvipanda.blogspot.com
-- modified at 22:44 Friday 21st April, 2006
|
|
|
|
|
Hello there,
I found a wayout to check for the end of stream.
<br />
using (BinaryReader br = new BinaryReader(fs))<br />
{<br />
while(fs.Position<fs.Length)<br />
{<br />
}<br />
}<br />
...assuming that "fs" is defined as the FileStream in the outer block.
Hope this works...
Mafaz
|
|
|
|
|
Hi all,
Can anybody tell abt the VB's chr() function equivalent in vc++ ?
|
|
|
|
|
In C++ doesn't exists.
Example:
VB:
Chr(13)
C++:
char mychr = 13;
|
|
|
|
|
One is not really needed in C++, but the compiler mite complain.
Implicit conversion:
char ch = 10; // compiler mite complain
Explicit conversion:
char ch = char(10); // compiler happy
Explicit conversion:
char ch = (char)10; // compiler happy
INTP
Every thing is relative...
|
|
|
|
|
Hi!
I have a table with about 50000 rows of data. if the user's search is not specific it returns not less than 200 records and i want to make their search as specific as possible.
say if they type A i want to scan a data in the database as soon as user types A i need to display
Accord
Amber
A..
those matching records are in database once they type AC
the matching record should anything after AC from database. i dont know what control do i need to use may be combo control dont know.. please help or direct me to any article that has something that i am after
thanks very much
|
|
|
|
|
Is this windows or web application?
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Dear all,
----my aaplicationis WINDOWS APPLICATION----
How to display data of two database table (EMPLOYEE AND SALARYDATA ) into Crstal Report according to selection of month and year in windows application. actually only employee name data coming from employee table and rest of all data(i.e. total,hra,basic,gross,) coming from salrydata table. How can i solve this problem help me plz
|
|
|
|
|
|
i am getting problem in executing oracle procedure in vb.net
i am using adodb connection. Oracle Procedure accept 6 input parameters and return back 3 parameters. I know how to pass parameters using oledb. But problem is that i have to do it using adodb as per requirement.
Pleasee help me in solving this query.
Thanks in advance
Manish
|
|
|
|
|
we are trying to create a login for our application, but its not working, we know that we need the code to check against the database to see that the password and the login is correct but our code doesnt seem to work.
The code is:
If my.User.isauthenticated then
Textuser.text=my.User.name
If userexixts(my.user.name) then
Textpassword.focus()
Else
MyNewUser = true
Messagebox.show("Please chose the Reguest Account link")
End if
Else
messagebox.show("Contact help if you are a Auckland University Staff member")
|
|
|
|
|
What do you mean by "doesn't seem to work"?
...Steve
1. quod erat demonstrandum
2. "Give a man a fish and you've fed him for a day. Teach him how to fish and you've fed him for life." I read that somewhere once
|
|
|
|
|
You will have to describe in more detail on "not working", what happened, which line of code causing error, any error message. Without know what are the inputs, and what your functions (isauthenticated, userexists) doing, nobody can help you.
You should first do a debug by tracing how the code flow. If you can't do that (due to not able to use debugger), you can print out the values and look at why it doesn't work according to your intention.
There's no such thing as "not working". It's either working, or not working as intended.
|
|
|
|
|
Hi. I have two winform one of them have region tranparency ("foreground" form); the other no ("backgroung" form). I want to move the background form and make the foreground form move with it. Any ideas?
Thanks a lot, Gonzalo.
|
|
|
|
|
Well, in the Move Event of the Background Form, add this code :
ForegroundForm.Location = BackgroundForm.Location
I haven't tested it though, but it should work.
Yuvi Panda T
Microsoft Student Partner
Blogs at : http://yuvipanda.blogspot.com
|
|
|
|
|
I will try it.
Thanks a lot Yuvi.
|
|
|
|
|
Hello DotNet group,
I have a general question in regard to running an insert command using a sqlDataSource.
I have a gridview that displays things that can be inserted into my database.
I now can select an item from the gridview (just one), and run the insert.
But, I might want the user to select multiple items in the gridview, and then perform an insert of these items (like 2 or 3 or whatever). I have a button to click when it is time to do the insert, the insert does not happen when the user clicks the "select" button in the gridview. What would be a good way to handle performing the insert on multiple items?
My first thought would be to create an array (in the code-behind page) that would hold the items to insert (in this case single integers), and set up a loop that reads the array values, and runs an insert for each item.
Any other ideas will help.
Thanks,
eric
Thanks for the information!
eric
|
|
|
|
|
I have developed a SmartDeviceApplication in Visual Studio 2003 that connects to a SQL database. It works when it runs in the Visual Studio pocket pc emulator but when I try to run it on the pda itself an error occurs when it trys to connect to the database. The error reads:
SmartDeviceApplication1.exe TypeLoadException
Application::run+0xf
Form1::Main+0xa
I'm wondering if it errors because I need to install sql server ce on the pda? And if it needs to be installed, how do I do it? Or is there something else I need to do? Please help!
Thanks for any help you can provide.
|
|
|
|
|
Hello there,
I have a Requirement class. I wanted to instantiate a number of objects of the same class. So I created a array of Requirement object. Here is what I had:
<br />
dim req() as Requirements<br />
<br />
Private sub CreateRequirements(num as Integer)<br />
for i as integer=0 to num<br />
req(i) = new Requirements<br />
next<br />
<br />
end sub<br />
Above code gives an error like "Object reference not set to an instance of an object". Can someone help me out?
Thank you,
Bashar Amin
Sr. Software Engineer
|
|
|
|
|
You should Redim the array first:
dim req() as Requirements
Private sub CreateRequirements(num as Integer)
Redim req(num) as Requirements
for i as integer=0 to num
req(i) = new Requirements
next
end sub
|
|
|
|
|
Thank you. It solves the problem but does not need "as Requirements" for the Redim statement.
I have another question. If you do not know the size at a time and I want to create the Requirement object dynamicly, do I need the Redim statement?
Bashar Amin
Sr. Software Engineer
|
|
|
|