|
It is the GUI thread which changes the cursor - the long running process just raises an event to say it has started then one to say it has completed - these are handled on the GUI thread.
|
|
|
|
|
There have been many posts on dynamically displaying images in a Crystal Report, but none of the replies have helped me with my problem... Hope somebody has the answer
Using: VB.Net 2003 with CrystalReports.Net 2003 and MS Access (XP) DB.
I have a table with images (have tried .bmp and .jpg) stored as OLE type.
My CR DB at design time is XML schema file which contains my image field as a base64binary type.
I've dragged this field onto report creating an IBlobField. At runtime the image is not displayed. I have tried multiple resolutions (72 - 300 dpi) and image sizes. Does the Blob field resize the image for you? When I insert the image statically from the .bmp or .jpg file at design time, it displays correctly.
On another note: Anyone know what the best resolution to use for inserting images into a CR. Often the images I've inserted have appeared distorted. I'm trying to add an electronic signature to the CR.
Thanks for any help I can get!
Kevin
|
|
|
|
|
Hi, I created windows chat application. It's working properly, but only one problem is there. When any client type message & send it to common window, server give responce but that message displayed only that client's common window other clients can't see that message. So please tell me that when any one send message using which code server send that message to all clients?
If possible please give me code for that. Thank you very much.
|
|
|
|
|
So in other words it works for people who talk to themselves ?
It's pretty much impossible to help you here, you need to provide some code and let us know what you're trying, so we can point out where you're going wrong.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I am working on a project for work, and was wondering what the best choice for data storage and recall would be. I only need to save three pieces of data per line, but need to be able to search with a match on two of them.
example:
data1, data2, data3
select data3
from ?
where data1=string1, data2=string2
While I realize that this is not proper coding for SQL, it is just and example. Any help would be greatly appriciated.
Mega1
|
|
|
|
|
Well, if you're using SQL, then you're using a database, surely ? For a single flat table with three pieces of information, I reckon Access is sufficient.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
can any one help me?
i have exe project , and the problem is:
how can i insert a procedure in this exe project
to work under any startup event(e.g load event)
and thank for all
|
|
|
|
|
What do you mean by "any startup event"? There is no startup event for an .EXE...
And what kind of procedure are you talking about?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You can't. You can't change an exe to have another procedure in it, it just doesn't work that way. If it's VB.NET you can decompile it, add your proc and recompile, I guess.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
well,
my project in vb6.
can you help me in find the tool
that enable me for decompiling my exe project.
|
|
|
|
|
It's obviously not YOUR project, or you'd have the source code. Why are you hacking someone elses program ?
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
System.NullReference exception occurs when the code is run
dim pt as new POINTAPI
l=getcursorpos(pt)
|
|
|
|
|
You haven't supplied enough information to troubleshoot the problem. You need to post the code showing how you declared POINTAPI and GetCursorPos().
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
For some reason, the CurrencyManager will not let me remove the last item in the collection. For example, if I have a CurrencyManager bound to a collection with a Form and Control bound to the CurrencyManager. I can remove any item from the CurrencyManager just fine with RemoveAt. However, if it is the last item , it simply ignores the call. It doesn't throw and error, it simply doesn't do anything. Count remains Same, Position remains 0. Even if I try calling CurrencyManagerVar.List.Clear(),
it ignores the call. Again, no error, just doesn't do anything.
But in my Another form it has worked fine with CurrencyManager.RemoveAt(CurrencyManger.Position)
Any Problem in my code?
My code is :
CurrencyManager.RemoveAt(CurrencyManager.Position)
I have also tried with
Dataview.Delete(CurrencyManager.Position)
And
Dataview.Delete(CurrencyManager.Count-1)
And also with
DatarowView = CurrencyManager.Current
DataTable.Remove(DatarowView.row)
above all are not working
|
|
|
|
|
i have a datagrid which is displaying a table of database db1. i have also a button btn_insert
now i want to enter one more row in datagrid so that when i click btn_insert a new row gets inserted
i want that user should append the details of new row (that he wants to insert) in the datagrid
and when he press btn_insert i fetch those values and insert the row in the actual database
is there any method to count rows in datagrid ?
plz help, how should i go for this.....
|
|
|
|
|
how to know if a tooltip is displayed or not when mouse is moved over minimize,maximise,close icon on title
|
|
|
|
|
Hi To ALL!
In VB.NET, i need to display a form in Sub Main().I have written code something like this but its not working. Pls help me ...
Public Sub main()
dim frm as new form1()
frm.show()
End sub
Thanks
Mahesh
|
|
|
|
|
well its very difficult from this code to pointout ur error
but i got two points
1. check ur startup object. is it sub main ?
2. u are writing dim frm as ew form1()
istead try out
public frm as new form1()
even if this does not work, then u better make a module
and write the staatement there
public frm as new form1()
then in main u can use frm.show()
hope this will work
sumit
|
|
|
|
|
Thanks
My start up object is Sub main.
I have tried all the tips given above.
I would like to tell you some information....
My application starts executing from Sub Main(). Iam checking a condition in Sub Main procedure and based on that i displaying a form. So when i tried to do that form is displayed for few seconds and the application is terminated.
and i assure that there are no errors like logical or syntax error in coding
I hope that there must some other steps to display a form in Sub Main
Pls help me to find a solution......
Thanks
|
|
|
|
|
OK,
In VB6 you could do this and then if you displayed a form the application would continue to run.
In VB.NET even if you show a form in Sub Main, when Sub Main ends, the form will be destroyed and the application will terminate. There is a simple fix for this. The critical line of code you need is in bold:
------------------------------------------------------
Sub Main()
...your initialization code goes here ...
If ...your conditions are met... Then
MyForm.Show
Application.Run()
End If
End Sub
--------------------------------------------------------
Robert
|
|
|
|
|
If you want to open that form when your application starts then why dont you make it as startup object.
|
|
|
|
|
hey, it means there is some condition which is forcing ur program to end.
i also had faced such problem previously
then i put message box whereever i was doubtful in my code
u can also put msgbox in formload of form1.
this will tell u is form1 is loading or not
then u can put the msgbox in other functions of form1
this may tell u the code which is creating problem
my suggestion is to use msgbox and try to debug ur code
|
|
|
|
|
Hello,
You could try to put your conditional statements inside of the Form Load event. If the conditions are not met, you could then use Me.Close() to exit.
For an example,
If <conditions> then
'Do your stuff here if it is met
Else
Me.Close() 'Exit the application since the conditions are not met.
End If
I hope this helps,
Programmer2k4
My sig:
"And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright
I now use my CodeProject Blog!
Most recent blog post: March 24
|
|
|
|
|
I had this one about 2 years ago...
I had put some code inside my "form1" and found that the code ran, but the form seemed to never appear.
If you put a DoEvents after the show, then a Msgbox, you'll see what's happening... Your form is actually loading, but the program is exiting after the form.show method.
If you want to load the form and not exit "Main" until you close the form try using the ShowDialog method of the form instead of the Show method. I think that's what you are looking for.
|
|
|
|
|
Thanks Alot!
It finally worked as Benjamin Liedblad said.
I would like to thank all of you who spared your precious time for me.
Thanks
|
|
|
|