|
There is no contorl that is going to load that image. You have to either find a library that will do what you want without loading the image, or write one yourself. Writing one yourself is NOT a trivial task, since you must known what the exact format of the image file is and how to work with the data. Then, you need to know about other image processing algorithms to pick out and blend individual pixels so that you can assemble the data in a smaller file, again, knowing the exact format of the image file you want write.
|
|
|
|
|
sorry I was wrong the image is 2.68 gigabytes
not 2 megabytes. Can anyone help me?
|
|
|
|
|
I think the problem may be your image then. I regularly deal with images that are in excess of 170Meg without problems, and as a simple test, I just saved one of these as a 8.5Meg .BMP file. In Paint (surely the most basic of basic rubbish image programs), it opens, edits, and saves without problems.
I would try with a different image; I suspect yours is not what you think it is.
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
|
|
|
|
|
sorry I was wrong the image is 2.68 gigabytes
not 2 megabytes. Can anyone help me?
|
|
|
|
|
The only thing I can think of is to get a handle to the file without actually loading the file into memory (OpenFile [^] may do this - if not, there may be other functions that will).
Once you have that, you can read the data in the file in sections and do what you wish with them, carefully disposing of each section from memory as you go. You'll need to understand the image format so you can interpret the headers and the image data itself.
I have no idea with regards to the implementation of this - just an idea that may work.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Problem: Login failed for user '(null)'. Reason: Not associated
with a trusted SQL Server connection.
Request
This problem is generate when i connected with remote server
i want to connection between two server to transfer data from
one table to another.and i got data froms local server but when
connect to another server then this problem arise..
From Mr.Saunat Sharma
|
|
|
|
|
Would probably be a good idea to start by pasting the code, especially your connection string.
Also, have you checked the value of your User to ensure it's not null since that's showing up in your error message?
Also again, if you're trying to use trusted connection (rather than SQL security) are you ensuring the workstation is actually logged into a domain account with proper rights?
|
|
|
|
|
Are you using web services to connect to the remote server? I seem to remember an issue with user details not being able to be passed through from one web service to another.
|
|
|
|
|
thanx DoctorMick.
exactly as u r telling me.
This Problem arise when i am using windows service.
What i m doing,Access records from one table from local server.Store it in dataset and then i will go for inserting record to Remote server.But i am unable to connect to remote server.
|
|
|
|
|
This is part of my program that activates the mouse movement sensor once a checkbox is ticked.
What i want is for it to be activated by default.
I've tried editing the checkbox in designer view of the form, setting the value to true, but the mouse movement is still not picked up until the checkbox is unchecked then rechecked.
Im new to C#, im assuming it's something to do with "CheckedChanged"....?
This is the code for the checkbox:
private void checkBoxOnMouseMove_CheckedChanged(object sender, EventArgs e)
{
if (checkBoxOnMouseMove.Checked)
{
HookManager.MouseMove += HookManager_MouseMove;
}
else
{
HookManager.MouseMove -= HookManager_MouseMove;
}
Any help at all would be greatly appreciated
modified on Friday, August 28, 2009 9:34 AM
|
|
|
|
|
You should add this line in your form load event.
if (checkBoxOnMouseMove.Checked)
{
HookManager.MouseMove += HookManager_MouseMove;
}
This will attach the event during the load.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
You need to add this into the form's constructor or Load handler too so the subscription is already active when the form loads.
HookManager.MouseMove += HookManager_MouseMove;
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Where and what is the form's constructor or Load handler?
My code is made up of bits and pieces here and there, so i dont know it inside-out. Just a brief understanding.
[EDIT] - never mind, i have found it and got it working
Thank you so much for the help
|
|
|
|
|
mostofmonty wrote: Where and what is the form's constructor or Load handler?
mostofmonty wrote: never mind, i have found it
Seems you are pretty C#-ignorant then, and just trying your luck at random. I suggest you do yourself a favor, buy and study a book on C#.
|
|
|
|
|
I do apologise for being new to C#.
I am interested in learning to write programs in C#, and am hoping to pick up as many things as i can through the questions i ask on this forums. Even if they are stupid.
I have my program working thanks to the help on this forum,
So again, i appreciate all the help
And i apologise for any future stupid/ignorant questions.
|
|
|
|
|
No need to apologize, everyone is new to something at some point.
However, rather than spending 100+ hours at asking 100+ questions and reading and testing all the answers, good and bad ones, you'd better take this advice[^]. And then ask more intelligent questions when they arise. Which we will be glad to answer.
|
|
|
|
|
I was considering buying a book on C#, but i shall take your advice and make it a priority
Thanks everyone for the help on my ignorant question, wont happen again
|
|
|
|
|
|
mostofmonty wrote: help on my ignorant question
No worries! Beginner questions are allowed, but real basic stuff should be known before being let loose with Visual Studio (or one of the Express Editions) and an internet forum IMO.
Don't be afraid to ask. A good book, and working through (and understanding) some online tutorials is a must though. We will happily help whilst you learn, but not hold your hand if you understand what I mean.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn) Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
Hi,
I am working in a INSIGHT project. Multipule Users can logging on that tool but after some time the session got Expired. So once the session got expired the Login Page Popuped or Floating on that Page and will back on same page after login successfully.
Problem is that how could I do this. if in Javascript then How I check the Login crediential with Database ??
Please help me.
|
|
|
|
|
What on earth has any of what you've written have to do with C#?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
To support such function:
Can draw three column a, b, c with the images.
User can use the scroll bar to control the column a,B
Column a and b are opposite. Column c is static.
User can draw 10 rows of column a,b to the column c.
then the program can draw the lines from the row of colun A to the row of column B.
Does anyonthe know the user control can do this? If I design this user control?
how to achieve it?
thks
|
|
|
|
|
What?
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I need one user control that can support user draw.
Column A Column B
A1 B1
A2 B2
A3 B3
A4 B4
A5 B5
A6
A7
A8
A9
A10
1.When user can select 3 rows of Column A and draw to row B2 of column B, three line will be created from a1 -> b2, a2 -> b3, a3 -> b4.
2.There are 200 rows in Column A, A1 -> A200. User can uses scroll bar to control which rows of column a to show.
|
|
|
|
|
AFAIK there is no control that does this, or at least I could not find one.
What you are describing sounds rather like a graphical database designer or query designer works.
If you google for c# database designer or c# diagram designer, you might well find something that you can get useful code from, or at least ideas.
It seems to me that you will need to build your own control, and if so I would suggest that you use ListBox es for ColumnA and ColumnB. You will need to research Drag and Drop, and for drawing the links I would suggest that you create a class that contains the starting listbox, the item (A1, A2 etc.) from that box and the same for the ending listbox. Then when a link is needed create a new instance of the class and add it to a list. when your control needs to paint itself, you just iterate over the list drawing a line from the start listbox to the end listbox.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|