|
Um yeah you use
SqlDataAdapter.Fill(DataTable);
Be sure you use the right set of commands for your version of SQL Server. i.e. SEL Server Compact Edition uses the SqlCe namespace.
Yup, I'm a NEWB
|
|
|
|
|
Maybe I shouldn't waste my breath saying this but using DataReaders and entity objects is much more efficient than datasets.
|
|
|
|
|
i am having set of 2d images .....how to stack this 2d images to view 3d image......using volume rendering method ...how to implement in c# ..
|
|
|
|
|
Dude, you've asked this already and clearly have no clue what you're doing. Ray tracing is not simple. Give up.
Regards,
Rob Philpott.
|
|
|
|
|
thanks for ur reply....we r working on computed tomography project.....my part is 3d visualization....
i am having set of 2d images..somewhere i got books related to 3d visualization.....there they mentioned volume rendering is the technique used for 3d visualization ....thuts why i am asking here bout that....
|
|
|
|
|
If you have a book, why do you ask us the questions???
Why don't you guys ever use google. It's the best for these kind of things...
I've googled this string: "volume rendering 3D".
What did I get? A wikipedia article:
wiki/Volume_Rendering[^]
At the bottom of the page there's almost always a link part with good and usefull links.
Use those and go to here:
visual tutorial[^]
"Do we have to write articles which will provide you the information to use google?"
|
|
|
|
|
Deresen wrote: "Do we have to write articles which will provide you the information to use google?"
Haven't you read this[^] ?
|
|
|
|
|
<defeated> <walks away="" with="" shame="" all="" over="">
|
|
|
|
|
Hi
I am trying to work with an ActiveX COM object written in VB6. Most of it works fine but there is one function defined as follows:
short GetExamDetailsBuffer(VARIANT pVariant1, VARIANT pVariant2, VARIANT pVariant3)
This should return the data in 3 arrays of strings. It translates into a function that looks like this in .Net:
public virtual short GetExamDetailsBuffer(ref object pVariant1, ref object pVariant2, ref object pVariant3)
So I tried calling it by declaring 3 object variables and passing them as parameters:
object var1, var2, var3;
var1 = new object();
var2 = new object();
var3 = new object();
short result = MyObject.GetExamDetailsBuffer( ref var1, ref var2, ref var3);
but I get the following error message:
System.Runtime.InteropServices.COMException: Type Mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TPYEMISMATCH))
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData)
Any ideas to how I can get this to work?
modified on Tuesday, February 24, 2009 6:39 AM
|
|
|
|
|
Hi all,
I have a custom winforms control. I want to be able to use anchor/dock type functionality in the form which hosts it, to facilitate dynamic resizing. Only thing is, my control must be square (ie width==height) to render properly.
how can i force this to be the case?
Thanks
Jon
|
|
|
|
|
have you tried ensuring that Width and Height = Math.Min(Width, Height) in the Resize event? Not sure if that'll do what you want but its where I'd start.
Regards,
Rob Philpott.
|
|
|
|
|
You can't use dock and have the control retain its shape. What you're going to have to do is use anchor, and handle the form's resize event to modify the size and position of the control.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
You could host your control in a parent control. Dock the parent control, and in its resize handler do something like child.size = min( this.width, this.height ) (and recentre it in the parent if desired)
|
|
|
|
|
Hi ,
I need help in creating a program to send a mail using Microsoft Exchange server not SMTP. Previously I created a DTS package with a send mail task in it. It seemed to work properly in my local system where I had my MS oulook configured. But it failed in the server since it does not have a local profile configured.
If any one is able to answer to either of the above problem would be grateful.
Jack Sparrow
--------------------------------------
Defeat is not the worst of failures. Not to have tried is the true failure.
|
|
|
|
|
Hi all,
Can anyone tell me that how to fire drag drop event in richtext box in C#.net??
Thanks in advance
Lijo
|
|
|
|
|
Basically, you have to set AllowDrop property to true , and use DragEnter event and DragOver
Calin
|
|
|
|
|
But in .net 2.0 i am not able to find out drag drop and drag enter event for rich text box??so how can i get it??
Regards
Lijo
|
|
|
|
|
|
you are saying that the events are not browsable from the Properties, right?
Try by extending the RichTextBox .
Calin
|
|
|
|
|
Hi ,
I am new to windows application. so i dont have much idea about this.Can u please explain me how it can be done?
Regards
Lijo
|
|
|
|
|
Actually, you don't need to have the events in the properties window, you may handle the events like this:
public Form1()
{
InitializeComponent();
richTextBox1.DragDrop += new DragEventHandler(richTextBox1_DragDrop);
richTextBox1.DragEnter += new DragEventHandler(richTextBox1_DragEnter);
}
void richTextBox1_DragEnter(object sender, DragEventArgs e)
{
throw new Exception("The method or operation is not implemented.");
}
void richTextBox1_DragDrop(object sender, DragEventArgs e)
{
throw new Exception("The method or operation is not implemented.");
}
Calin
|
|
|
|
|
Thank you....
regards
Lijo
|
|
|
|
|
Hi all,
On the release mode only, when build the project I want to execute a bat file. That bat file do another process.
What I've try is add the bat file name as the command argument in project property as pre-build event command line.
But it not works for me. Can anyone comments on this.
Thanks you.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
|
Something like this,
if $(ConfigurationName) == Release yourbatchfile.bat
|
|
|
|