|
hi all
Reasons given by all of u are correct but i have some more reasons.
So days ago, i have a problem in inserting data into the table of SQL Server through C#. I tried it many times, posted it on another forum ( not cp ). after many hours , i got the response, and the problem was that i was missing only a comma in the string. This was a very short problem, had it been corrected quickly, it may have taken me only five minutes to complete my task, which otherwise took many hours. Many times such things happen. For this type of things i am asking for some kind persons to add me.
For longer problem , i agree that they must be posted on the CP so that other people can also be benefited by them. And there must be many possible solutions that come as a output for that big problem. But for small problems like the one mentioned above, i donot think that there are many solutions for that, and if it takes hours to solve problem like mentioned in above para, then i think its better to leave the software engg and start so other work.
As for as the point that no one can help other instananiously, because no one is free..... i will only say that if a person can come to cp and spend his hours to answer the queries, then that person can also spend seconds to answer questions like described in first para, ask from them on the messenger.
Now i think that, if there are some kind persons available there in this forum, then they will surely add me to their messenger list in order to solve the short problem of their younger brother....
Looking for very much health response...
|
|
|
|
|
Hi,
Does any body know how to take SQL Sever 2000 or Access Database backup in c#.net? Mean what program we write in c#.net to take whole database [Table,Relation etc] backup.
Please help me...
Muhammad Waqas Butt
waqasb4all@yahoo.com
|
|
|
|
|
For Access, it's simply a matter of copying the .mdb file (via File.Copy). With SQL Server, it's a bit more complicated, you have lots of options, but the two simplest are:
1. Execute a "DUMP DATABASE" or "BACKUP DATABASE"
2. Use SQLDMO. There are lots of articles teaching how to use SQLDMO in C#, search on Google and you'll find it.
Yes, even I am blogging now!
|
|
|
|
|
Thanks Daniel for your help. It's good in case of .mdb but maybe i need sql solution but anyways your help is still for thanks... Thanks again..
Daniel do you have idea how can we share same database in different client mean if some there are some changing in one side db than how can we send changes to other client db. If you know i great but if you never know than it's not matter... Anyways thanks for you help
Muhammad Waqas Butt
waqasb4all@yahoo.com
Muhammad Waqas Butt
|
|
|
|
|
WaqasButt wrote:
Daniel do you have idea how can we share same database in different client mean if some there are some changing in one side db than how can we send changes to other client db.
It depends what you mean by "change": if you want to keep data in sync, you could use SQL Server's replication (I believe that Access also support it, but I'm not sure).
If by "change", you mean changes in the database structure, I'd suggest you to use a product like "SQL Compare".
Yes, even I am blogging now!
|
|
|
|
|
Thanks again for your quick reply.
[SQL Compare] is this product free or i have to purchase it. and please also told me about the web site from i download it and view it..
Thanks...
Muhammad Waqas Butt
|
|
|
|
|
i wanna example of solving this eq.
i will use ~ insted of integration sign...
m= y1~y2 x1~x2 1 dx dy
double integral from y1 to y2 and from x` to x2 the value 1 dx dy
please help and thanks in advanc.
ADEL K Khalil
|
|
|
|
|
|
i didn't get it....that's not integral !!!
ADEL K Khalil
|
|
|
|
|
You do realize this is a C# Forum and not a "solve my math problem" Forum... right?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
really so when i wanna know how to solve equation by C# i have to go to "What the hell you talking about Forum"
ADEL K Khalil
|
|
|
|
|
I am unsure as to if there is a class out there to do integration. I would suggest using Remiann sums and limits with ever increasingly small delta values. You will be able to get a close approximation for the integral. If anyone knows of calss to do differentiation and integration please comment on this. Thanks
|
|
|
|
|
Hi~
How do I write a form class extend to another form?
E.g
class Form1 : System.Windows.Forms.Form
class Form2 : Form1
However, I would like to use design to add controls to Form2
can I do that? Thanks
|
|
|
|
|
Hi,
yeah this is simple but required most of time.
suppose i had made one class and i want to use the properties and method of that class into another class of another form but is there any common thing (like common class or place) by in which i can create the instance of that class for once and i got excess of the properties to every class any time?
regards
montu3377
|
|
|
|
|
Hi!
I have created a similar thread before and I was not able to find a possible solution. Here is the issue again.
I need someplace where I can filter all messages of the application (main form and all child forms). I have implemented message filters but somehow the child modal dialogs does not seem to have message filtered (there messages do not come into the filter).
|
|
|
|
|
MSDN link[^]
I'm sure someone has mentioned Application.AddMessageFilter Method. Its exactly what you need. The following example traps all left-button mouse activity:
#region IMessageFilter Members
public bool PreFilterMessage(ref Message m)
{
if (m.Msg >= 513 && m.Msg <= 515)
{
System.Diagnostics.Trace.WriteLine("Caught");
return true;
}
return false;
}
#endregion
If you have any problems post back.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
I tired that but this message filter does not seem to work on child dialogs (froms).
|
|
|
|
|
I have an app written in C# (obviously). Here is my dilemma:
The form loads, instantiates a bunch of worker threads that execute one at a
time. When one finishes, it starts the next one in line. I have about 5
datagrids on 5 different tab pages in a tab control. What I'm using the
Threads for is pretty basic: get data from a database and fill a datagrid. I
use delegates throughout to allow the worker thread to call the
'FillDataGrid' method in the main thread (the form thread). I've had
problems before with threads not accessing other threads controls which is
why I use the delegates. But still it crashes with the following:
An unhandled exception of type 'System.ArgumentException' occurred in
system.windows.forms.dll
Additional information: Controls created on one thread cannot be parented to
a control on a different thread.
I decided to add another tab page (out of pure imagination) as the first tab
page in the control. voila! now everything loads properly (without changing
any code whatsoever). Problem is, I try to programmatically remove the
temporary page (with a generic "please wait while loading" message). It
removes the page fine, but on the next page in line, all the controls
dissappear. If I don't change or remove tab pages programmatically, all the
controls stay intact. I'm not sure what I am missing, and leaving the temp
page intact is just ugly. Anybody know what I'm missing?
If you put a time limit on this project, it won't ever get finished . . .
|
|
|
|
|
I'm trying to use an ocx written in VB6 in my C# app and
when i try to show a form ("click a button") i get an error message
"run-time error 406 Non Modal Forms cannot be displayed ... "
what can be done if i need these forms Non Modal?
thanks
sharon
thanks
sharon
|
|
|
|
|
Personally I haven't worked much with this stuff, but from what I read I think that it might be a problem with how .net works with the ocx. Take a look at this article: http://support.microsoft.com/default.aspx?kbid=176468[^]
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
Are you talking about a ASP.NET app ??. For example in ASP.NET you are executing the application in the context of a web application and you can only show WebForms..
Try compiling as exe
~Alexander Kent
|
|
|
|
|
No i'm talking about a windows app in c#
have any ideas ?
10x
sharon
thanks
sharon
|
|
|
|
|
does the .net framework have a class and constants for working with bits already defined or do i need to write my own
|
|
|
|
|
|
hello i am trying to move a form based on where the user clicks however it doesnt go where it supposed to ive tried 3 different ways and none work
here is what i have tried
this.Location = PointToScreen(MousePosition);
this.Location = PointToClient(MousePosition);
and
this.Location = MousePosition;
none of these work properly what am i doing wrong.
do i need to do anything to get MousePosition becuase im just using it im not initializing it
or anythning
can someone please give me tips
thanks
|
|
|
|