|
its the beginning of the matrix...
|
|
|
|
|
It's a rash....awe crap wrong board again!
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Hi ,
I have a table (tblSql, a primary key included) stored in Sql Server which has the same infomation as the table (tblVFP, no primary key) in VFP. Can anybody tell me what is the simplest way to update infomatioin in tblVFP when information in tblSQL changes?
A friend has ever told me to update VFP table with ds_SQL with the following code:
DataSet ds_VFP=ds_SQL.Copy();
da_SQL.Update(ds_SQL);
da_VFP.Update(ds_VFP);
I tried, but get the following error information:
Update requires a valid update command when passed DataRow Collection with Modified rows.
My friend told me he didnot write any update command by himself in his program. But I just cannot work it out, what is wrong here?
Thanks...
|
|
|
|
|
|
Hi,
Not sure where to post this...
I'm busy converting an old VB 6 app ( ) to .NET and I'm having a little issue with crystal. In the VB 6 code, when you export a report to disk, it used to pop up a dialog box that showed you how far, percentage wise, it was in the export. I've converted this to .NET and it exports perfectly BUT it doesn't pop up that little crystal dialog box to show how far the export is...
Anyone have any ideas on this? I've looked for methods and properties in the ReportDocument and ExportOptions classes but couldn't see anything.
Thanks!
Nick
The man who smiles when things go wrong has thought of someone he can blame it on.
If you tell a man there are 300 billion stars in the universe, he'll believe you. But if you tell him a bench has just been painted, he'll have to touch it to be sure.
|
|
|
|
|
Dear All,
I have an EventInfo object of an event. I want to know the parameters type of the event Handler function.
for example, EventHandler is the event parameters of event handler is object and EventArgs.
please help me regarding this.
regards,
Mohamed Hasan.
Contact him at: hasansheik@hotmail.com
hasansheik@yahoo.co.in
hasansheik@lycos.com
|
|
|
|
|
Get the Type object for the delegate behind the event and get the parameters of the Invoke method. Something like
EventInfo []events = ktfaType.GetEvents();
for(int i = 0; i<events.Length; ++i)
{
MethodInfo methodInfoType = events[i].EventHandlerType.GetMethod("Invoke");
ParameterInfo []parameters = methodInfoType.GetParameters();
for (int j = 0; j<parameters.Length; ++j)
{
Console.WriteLine(paramaters[j].ParameterType + " " + parameters[j].Name);
}
}
This code relies on the fact that every delegate has an Invoke method which is automatically generated by the compiler depending on the type of delegate's declaration.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi I trying to use web services which works fine as long as I have a working internet connection and the service is running. If my connection goes down then it takes a very long time for the service to time out. Is there any good WebPages about best practices regarding web services when working offline?
|
|
|
|
|
hi
I am implementing Windows application.
When i access the network through my program i am getting Access denied exception
pls check the message given below
An unhandled exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll
Additional information: Access is denied.
regards
sanjeev
|
|
|
|
|
This is nowhere near enough information to diagnose your problem.
Your code is either running from a network share, in which case, it'll be running in a more security-restricted sandbox, or your code is trying to do something where the user doesn't have sufficient rights to whatever resources your trying to get at.
Without knowing more about your code, the failing code snippet would help GREATLY!, and the environment it's running in, it's impossible to tell what's going on.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have a windows application and in a form page are a datagrid and 2 labels.
I want to print them but I printed the label over the datagrid.
Can somebody to help me.
<<<<
private void printDocument1_PrintPage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
{
PaintEventArgs myPaintArgs = new PaintEventArgs(e.Graphics, new Rectangle(new Point(230, 0), this.Size));
this.InvokePaint(grdExpenseSheet, myPaintArgs);
myPaintArgs = new PaintEventArgs(e.Graphics, new Rectangle(new Point(500, 300), this.Size));
this.InvokePaint(lbTSEmployeeContent, myPaintArgs);
}
>>>>>
|
|
|
|
|
How do you map TimeStamp (SQL Server) to DateTime (.NET) datatype? I ran into the following error:
"Could not cast the value in field ts_times4_ to the Type TimestampType. Please check to make sure that the mapping is correct and that your DataProvider supports this Data Type."
My table:
CREATE TABLE [some_table] (
[field1] [int] NOT NULL ,
... other fields ...
[ts_timestamp] [timestamp] NULL ,
.... other fields ...
) ON [PRIMARY]
My class:
Namespace ....
Public Class AtDivision
... other properties ...
Protected _timestamp As DateTime
' How do I map to data type 'Timestamp'?
Public Property Timestamp() As DateTime
....
End Property
End Class
I tried this in my mapping file, but, ran into the error I mentioned...
property name="Timestamp" column= "ts_timestamp" type="Timestamp"
Thanks in advance!
Norman Fung
|
|
|
|
|
Not sure about how nHibernate handles this, but a SQL timestamp is a .NET byte array.
Cheers,
Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG blog:: brokenkeyboards "Most of us are programmers, but a few use VB", Christian Graus
|
|
|
|
|
I'm having a VERY hard time finding material I can read to understand this stuff. So far I got a program to evaluate mathematical equations and a basic Lexer that splits a string simply into a stack like so...
Example string - FunctionName ( "Param1" );
Stack[5]SEMICOLON
Stack[4]CLOSE_PAREN
Stack[3]"Param1"
Stack[2]OPEN_PAREN
Stack[1]FunctionName
Basically it tells me when it hits a special character, and after that it tells me what's inside it. I'm having a really hard time explaining this, a bunch of source is available here:
www.insolence9.com/downloads/SBN.zip
Thanks
|
|
|
|
|
But what are you needs? Do you need to write a parser/lexer or is it a homework assignment where you need to understand how it's done?
If all you need is to write a quick parser, try COCO/R or ANTLR.
I see dead pixels
Yes, even I am blogging now!
|
|
|
|
|
(I'm replying from school right now)
I'm only 16, not in college quite yet, so it's not an assignment
I've realized these easier solutions, but I want to hardcode it (for fun). The documentation on this is geared towards people already very well versed in computer science and such. This is a bit out of my league, so I'm going to ask that you link me to a bit of less-savvy-specific material
|
|
|
|
|
|
I have written 2 jagged arrays to a binary file using the following code:
string path = "c:\\question.dat";
BinaryWriter binaryOut = new BinaryWriter(new FileStream(path, FileMode.Create, FileAccess.Write));
try
{
for (int i =0; i < questionData.Length; i++)
{
for (int j = 0; j < questionData[i].Length; j++)
{
binaryOut.Write(questionData[i][j]);
}
}
for (int i = 0; i < repsonseData.Length; i++)
{
for (int j = 0; j < responseData[i].Length; j++)
{
binaryOut.Write(responseData[i][j]);
}
}
binaryOut.Close();
}
catch (System.NullReferenceException)
{
binaryOut.Close();
return;
How do I read the data back into the jagged array??
questionData is type String and responseData is type Bool.
Could you please help me with the code..
|
|
|
|
|
Seeing as your array sizes are not always the same, shouldn't you be writing the length first, so you know how much reading you need to do ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Thats a good point. I can see how to do it now.
Thanks
|
|
|
|
|
I would like to know if anyone tried to get the calls information (CDR) using TCP/IP from Nortel PBAX (Norstar).
or any resources to refer to..
Many Thanks..
|
|
|
|
|
Hi, ive just created a custom control following one of the tutorials here. It was great, but as soon as i add in support for the "DesignerAttribute" it stops my control from non-transparent and selectable by clicking anywhere in the control at design time.
If i uncomment the line:
[DesignerAttribute(typeof(GridDesigner))]
Then the control appears as a grey square, and allows me to select it by selecting anywhere in that square.
However, if i leave the line in, it goes transparent so i can see the design grid and i can only select it by clicking on the border.
Does anyone know why this is?
Thanks
Skute
|
|
|
|
|
Sorry, got that slightly wrong.
With "DesignerAttribute" set, i can only move the control by dragging the border around.
Without it set, i can move it by dragging anywhere inside the border.
Skute
|
|
|
|
|
Hello,
I encountered a strange problem and I do not know what is causing it.
I created an empty form, added a tabs control to it and set the tab control
dock style to fill. Then I added three tabpages to it. To the first tab page
I added three buttons. The first button's click handler would set the tab
control's tab alignment to TabAlignment.Left and the second buttons click
handler would set it to Bottom.
I added mouse enter and mouse leave handlers to the third button. Whenever
the mouse would enter or leave the button, I would use Debug.WriteLine to
write a message.
Now, when I start the form, the mouse enter/leave events work great and
everything is fine. However, once I change the tabs alignment by hitting one
of the first two buttons, the third button no longer fires it's mouse leave
event. The mouse enters and mouse enter fires correctly, but it seems that
the mouse leave event has been unregistered when the tab control's tab
alignment changed. Also, when I enter the button again, the mouse enter
event is not fired.
Does anyone know what can be causing this behavior?
Thanks,
-Flack
|
|
|
|
|
Hi,
I am writing an SQL Server database application and I have noticed that under Management there are some database locks from my application. I don't think this is a good thing and want to make sure I am releasing the connection properly.
How can I do this?
At the moment I am doing this.
connection.Close();
connection.Dispose();
connection = null;
Is this enough?
Thanks
Stephen
|
|
|
|