|
Hi,
this site has a large collection of articles and a reasonably effective search engine. You can easily find what you want in one try.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
thanks alot for your help
|
|
|
|
|
You write code. If you want a more specific answer, ask a more specific question and show some signs of caring enough about the answer to have tried to find information yourself.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
well actually iam trying to make a program that will track the lips of human then read this lips..
so when i was reading its said that i should use openCv library in order to track the lips using special methode,
so my question is how to use this library with c#2003 or 2005...
|
|
|
|
|
I am willing to bet that you're not going to be able to do this.
In any case, it's a dumb question to ask here. You should find a forum dedicated to this library and ask it there.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
well,thanks for you answer..and i think its better to motivate people instead of pushing them down,,anyway..once u choose hope anything is gonna be possible
|
|
|
|
|
Hello,
I have a very simple query SELECT newid(), and I want to take the result of this query and assign it a variable so I can use it as a unique ID and use that again in another query. I am having trouble saving the actual variable. Can anyone help? Here is what I have so far. I am also pretty sure that my ID.Close() is in the wrong location. Let me kno what you think.
Session["userName"] = "JMQ";
SqlConnection sqlConn = new SqlConnection("Data Source=localhost;Initial Catalog=Cost_Model;Integrated Security=True");
sqlConn.Open();
String result;
SqlCommand sqlComm1 = new SqlCommand("SELECT newid()", sqlConn);
SqlDataReader ID = sqlComm1.ExecuteReader(CommandBehavior.CloseConnection);
ID.Close();
sqlConn.Open();
SqlCommand sqlComm2 = new SqlCommand(
"SELECT * INTO ##tempFAR15_" + Session["userName"] + "_" + ID + " FROM FN_FAR15(1)",
sqlConn);
SqlDataReader r = sqlComm2.ExecuteReader(CommandBehavior.CloseConnection);
r.Close();
Response.Redirect("FAR15.aspx");
I want to take the result from the 1st query which I (probably innapropriately have labeled as ID) and then use ID in teh second query. Thanks ALOT!!
|
|
|
|
|
Use ExecuteScalar when only one piece of data is returned.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I thought about that but I am not entirely sure how to use it. Can you give me an example?
|
|
|
|
|
Why not just use System.Guid newid = System.Guid.NewGuid() ; ?
That's one of the benefits of GUIDs over identities.
|
|
|
|
|
That was the perfect answer. Did exactly what I needed. Thank you!
|
|
|
|
|
|
Hello,
I just purchased the C# 2008 for Dummies and my objective is to Learn this .Net language for use in coding a strategy using a Trading Platform. It is Fidelity's Wealth Lab Pro 5.4. If I can code or tell the computer platform what I want to do, this will make a big difference. The do have a Drag and Drop for people who don't want to write a code, but this severely limits me. This book with all the extra sites will help me immeasurably. Oh, and I am not a programmer.
Since now you know my story, what would be the best or most beneficial way to proceed?
Thank you and all the best,
Jeff from Maine
|
|
|
|
|
The first step is to confirm that this trading platform is able to do what you want it to do, using C# code.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian,
Yes the C# syntax is what this Trading Platform requires for coding. I'm asking what would be the best course if studying after reading c# for dummies.
Jeff
|
|
|
|
|
|
If you changed the dll, you may need to build it, then remove the reference and add it again
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Deleting your question is very, very rude.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
for (int i = 0; i < Frames.Count; i++)
{
if (!splitContainer3.Panel1.Controls.Contains(Frames[i]))
{
splitContainer3.Panel1.Controls.Add(Frames[i]);
}
Frames[i].Left = (Frames[0].Width + 20) * i;
Frames[i].Top = 20;
}
This should work, but only the Added control shows up. A test shows that the existing entries of the Controls collection are removed.
How do I fix?
|
|
|
|
|
insufficient information
What is it you want? what is it you get? what is the difference? what is in Frames[]??
we aren't mind readers.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Frames[] is a List, where Frame is a custom user control.
I am trying to update all of the Frames on the screen, by relocating them and adding any missing ones.
However, only the last entry in Frames[] will show up, and checking Controls.Count returns 1, when Frames.Count is more.
|
|
|
|
|
Anything is still possible: maybe some of the frames have Visible=false, maybe some are empty, maybe some have zero width or height, maybe some of your statements are incorrect.
Either you provide a full description of what your app is doing and supposed to do and you show more of the code, or you start debugging yourself, by increasing observability, adding assertions, and whatever it takes to pinpoint the problem.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
Luc Pattyn wrote: insufficient information
Its almost like you threw an exception there Luc .
Mark Brock
"We're definitely not going to make a G or a PG version of this. It's not PillowfightCraft." -- Chris Metzen
|
|
|
|
|
MarkBrock wrote: Its almost like you threw an exception
that is exactly how it felt, there was nothing to work with.
It did resemble an abstract version of a NullReferenceException. And it still does.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
I have a word document and I want to paste an image into a cell. Both the cell and the image can be of any size. I am using Microsoft.Office.Interop.Word to do this. After getting the right cell and copying the image to the clipboard, when I call cell.Range.Paste(); the image gets pasted into the document, but it doesn't get auto resized to fit the cell dimensions. If I select the image with my mouse and then press ctrl + v, the image is re-pasted and auto resized.
Is there a way to paste the image from code and have it resize?
Thx
|
|
|
|