|
OK, i have written an App using SQL Server and Crystal Reports. I attempted a deployment on the program but it wasnt pretty. The crystal report does not load. Even bigger, there is no SQL connection between my program and another computer because i wrote my program to connect to My SQL on my machine. Where do i start? How do i configure my App so it attaches the database and connects automatically to client SQL? Any information at all will be helpful and appreiciated.
|
|
|
|
|
hello
I'm new to VB.Net and even to VB..
I'm building a multiform application which contains two forms - the main form (form1) and a sub form that can be called by pressing a button at form1.
my problem is that I have a textbox in form2 where the user is supposed to enter text. in addition to a button that I added to submit the text added by the user I want to enable the enter key to do the same submit action like the button submit.
the problem is: the KeyPress() event works only at form1 but not at form2 (again- called by pressing a button at form1)
help... please...
Abed Elkareem Barghouthi
E-mail: abedsb@yahoo.com
http://softlab.technion.ac.il/project/ProfilesPlatform/html/index.htm
|
|
|
|
|
Instead of using KeyPressed, try your code in the KeyDown event.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hello Dave
thanks for the quick reply but I already tried all the related events including the KeyDown event.
that's why I believe there is something needed to be done like setting focus or caption or something like that because all these events work fine when I use it with the main form (form1)
Abed Elkareem Barghouthi
E-mail: abedsb@yahoo.com
http://softlab.technion.ac.il/project/ProfilesPlatform/html/index.htm
|
|
|
|
|
I am not sure I understand your problem well enough, but maybe the following will help.
All forms have the properties "AcceptButton" and "CancelButton". Set these properties to each corresponding button on your form.
|
|
|
|
|
Rudy is correct. You can use the AcceptButton property to get ENTER to click the submit button. But it too won't work if the form doesn't have the focus.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hello Dave and Hello Rudy
It really didn't work.. as I said it works only when I use it with form1 but not when I use it with form2 (which appears as I press a button in form1)
maybe it would help you if add that while form2 is active on the top level form1 still also active but at the background
Abed Elkareem Barghouthi
E-mail: abedsb@yahoo.com
http://softlab.technion.ac.il/project/ProfilesPlatform/html/index.htm
|
|
|
|
|
From your descriptions, what you're saying isn't possible. There's something in your code and how your code is written that doesn't match your description of the problem. Without seeing your code for BOTH forms, we really can't tell you what's going on.
Only one form/control can have the focus at any one time. So when you say that both forms are "active", we don't know what you talking about.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
You should be able to create an event or use a delegate.
For example, if Form1 creates Form2 then add an event in Form2 and subscribe Form1 to that event.
Ex:
in Form2:
Event Form2Event(text as string)
when enter key pressed in Form2 :
RaiseEvent Form2Event(text)
in Form1:
AddHandler myForm2.Form2Event, Addressof SubmitPressed(text)
|
|
|
|
|
|
Why are you telling me this? Tell the OP! That way, he get's a message that says someone replied to one of his posts.
Besides, what he's describing shouldn't be happening. There's something else he's not telling us...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Oops, sorry. I didn't know.
|
|
|
|
|
I am populating a datagrid using threads.
Sometimes, the datagrid display gets distorted with double scrollbars appearing. and if click on the grid esp. the scrollbars, you get anyone of following 2 exceptions.
Try Catch blocks exist everywhere but the exception cant be trapped.
On clicking on Break(on the exception msgbox), the location of exception occurence is the begininng of the form class.
Two exceptions:
1. System.Runtime.InteropServices.SEHException' occurred in
system.windows.forms.dll
Additional information: External component has thrown an exception.
2.An unhandled exception of type 'System.NullReferenceException' occurred in
Unknown Module.
Additional information: Object reference not set to an instance of an object.
Need help urgently.
|
|
|
|
|
genius123 wrote:
I am populating a datagrid using threads.
You can only manipulate controls from the primary thread. The .NET framework provides the Control.Invoke method to ease this. Check this MSDN article[^] to further details.
I see dead pixels
Yes, even I am blogging now!
|
|
|
|
|
Hi
Thanks But have already implemented the me.begininvoke method.
It works fine but still sometimes ,I get these exceptions.
for reasons unknown.
Regards,
genius123
|
|
|
|
|
Dear guys
i have one problem in .net frame work designing
i have designed the winform in one mechine,and i implemented in another mechine ,but when i will
get the same design in another mechine the design will be changed like it gets big fonts and unsize to screen.how can i keep the designing settings in all mechines same and how can i write and get the registry for app settings
|
|
|
|
|
It sounds like you have a screen resolution problem or in the advanced settings of the screen properties the font is set larger. Its not your program its WINDOWS.
1. Out of clutter, find simplicity.
2. From discord, find harmony.
3. In the middle of difficulty lies opportunity.
Albert Einstein
three rules of work
|
|
|
|
|
dear guy
I have checked with resolution ,but thats not a problem,if resolution problem only the font is get bigger or smaller but my case the total control gets bigger or smaller in forms,in design time i have designed control is very compact in form but in another mechine it will not convenient fit
|
|
|
|
|
|
ThanX
Dear het ,
I have check with the font settings in two systems ,both are same (90dpi) so thats not the problem,only one diffrence is the screen Area (my developement system screen resolution is 800 * 600) but my designing system screen resolution is 1024 * 768) but when i will change the screen resolution,it will get more smaller all application in windows OS),actually in my application controls size only gets big size rather than designing mechine),for example(if Label1 size is 400*56 on design time in designing mechine then it will comes to development mechine it comes to 556* 67)
so that is problem in changing this setting in client side.now my question is how can we adjust our application's display seetings depends on screen display settings.
|
|
|
|
|
|
How to Find last Sundays Date using VB.net Code ?
Sagar J
|
|
|
|
|
First find the Sunday using Weekdayname and then if it is TRUE,then Stored the date nad minus 7 from it then you will get the date and using that day in the Weekdayname you can verify that whether it was sunday or not.
|
|
|
|
|
Uhm, I'm not exactly sure what Zafeer is saying, but here's some code that works:
Dim lastSunday As Date
lastSunday = DateAdd("d", -Weekday(Now), Now)
|
|
|
|
|
Hi Ppl
I am trying to create a service in ASP.net. This service would be called from command line and passed parameters (like the at service (MsTask)).
For example on the command prompt if I write 'myService param1'. Then the service should do something (like opening apps, sending logs, mails etc. in background)depending upon the value of param1.
I have been able to write, compile, build and deploy a basic service that logs some stuff. Thanx to the simple service wizard and even simpler tutorials on the net.
I have not been able to implement a mechanism where in I could accept stuff from command line and then open simple win32 apps based on the parameters.
Please help. Links to tutorials on this will also be of great help.
TIA
|
|
|
|