|
Hi Joon,
thanks for replying.
I already send the code to view. hope you can see. if you can have a look i can send the entire thing.
the longest time is taken for writing to sql. I dnt know why.
Plz help me.
I dnt know how what to do.
Regards
Ruwandi
rkherath
|
|
|
|
|
Hello to all,
can anybody help me finding the right "Performance Counter" in visual studio 2005 with the help of which we can get the percentage measure of the usage of databases of SQL Server 2005!
tried several counters but wasnt able to find any which have the usage measure of databases!!!
Thanks in advance
Adeel
|
|
|
|
|
posted this in C# because i am trying to use it in VC#!! !
|
|
|
|
|
i have these data in table 'dealer':
dealerid@@@campaignid@@@keyvalue
@1@@@@@@@@3@@@@@@@6
@2@@@@@@@@4@@@@@@@3
@3@@@@@@@@2@@@@@@@5
@4@@@@@@@@1@@@@@@@4
@5@@@@@@@@1@@@@@@@2
@6@@@@@@@@2@@@@@@@1
@7@@@@@@@@3@@@@<@NULL@> = NULL is null value in database without the '@'sign between brackets '<','>' and 'NULL'
'@' = spacebar,to separate the data.
Now i want the dealerid where campaignid = 3 n keyvalue = NULL
So, i queried in queryanalyzer of sqlserver2005:
SELECT dealerid FROM dealer WHERE (keyvalue = NULL) AND (campaignid = 3)
I must get output as 7.
But i dont get any output in its output window, neither i am getting any error.
Hope to get a reply.
regards Nekshan.
-- modified at 3:17 Wednesday 4th April, 2007
|
|
|
|
|
Your post is illegible.
Try keyvalue is null instead of keyvalue = NULL. It's a vagary of SQL, two instances of NULL will not have the same value, so nothing every = NULL.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: Your post is illegible.
I second
Christian Graus wrote: Try keyvalue is null instead of keyvalue = NULL
This one I also second.
WHERE keyvalue IS null
should fix your problem.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
In the grid control when we scroll the sheet the header must still appear.It must not scroll up. Please give me a solution.
Regards,
Rocky.
|
|
|
|
|
I don't think any grid that's built in does this by default. You'd have to render a header as a seperate control, then render a grid with no headers.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I think a datagridview does. Doesn't it?
Yes it does (tested)
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
hi,
There is no option in asp.net2.0 to control header alone.But using custom control, we can solve this.It's better to search for Custom control,
with regrads,
sudhakar.vaddepalli,
|
|
|
|
|
Hello everyone,
I have a ListView control which is populated by data from two different data sources. Is there anyway that I can use color or similar sort of visual effect to show the user the data source of each row?
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
You can do this with an icon or text. How are you passing the data in ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello Christian,
Thanx for the respond. I am reading the data from two different CSV files and as I read each line, seperate the values and then populate the correct column in each row.
The following code is for populating one of the CSV files into the ListView:
StreamReader streamReader = new StreamReader("MyTempList.txt");<br />
while ((line = streamReader.ReadLine()) != null)<br />
{<br />
split = line.Split(delimiterChars);<br />
<br />
ListViewItem foundItem = listView4.FindItemWithText(split[1]);<br />
if (foundItem != null)<br />
{<br />
}<br />
else<br />
{<br />
ListViewItem item4 = new ListViewItem(split[0]);<br />
item4.SubItems.Add(split[1]);<br />
listView4.Items.Add(item4);<br />
}<br />
}
Thank you for taking the time and helping out, mate.
Khoramdin
-- modified at 3:02 Wednesday 4th April, 2007
|
|
|
|
|
OK, so as you add each item, you set properties on the ListViewITem instance, such as the icon or the color.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I would make a method sorta like this
private void PopulateStuff(Color color, string imageKey)
{
item4.BackColor = color;
item4.ImageList = yourImageListWithSomeCoolIcons;
item4.ImageKey = imageKey;
}
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
hi
i have the windows application and want when the user press esc the application exited but i don't know the focus now in the which control
how can i do it ?
MHF
|
|
|
|
|
You can set a keypreview property on the form, I thought, which means the form gets to preview all keys.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
is there some things like this to mouse events ??
mHF
|
|
|
|
|
MHASSANF wrote: is there some things like this to mouse events ??
As far as I know there is nothing as easy as simply enabling KeyPreview . Instead you'll have to use hooks that however are well covered by many internet resources. You can start from this CP article Using Hooks from C#[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
private void YourForm_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode.ToString()=="Escape")
Application.Exit();
}
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
Hi,
Is there any way to Print the contents of a Picture Box?? Its not just printing the Image of the picture box.
In my application i am dynamically placing label controls inside the picture box. Each label have a background image. I want to print the image as well as the labels inside the picturebox .(means as we see in the display)..
OR
If the above is not possible.. then is it possible to draw something using graphics (eg Rectangle) and take printout of that also along with the image.
Thanks in advance.
Ullas
|
|
|
|
|
Why are you doing all this inside a picture box instead of a paint handler ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
i have preloaded images (jpg files) which are layouts of different locations. the user will mark positions on the image and associate some values with the marked position. After marking the locations he want to take the printout with the marked locations.
This is the requirement. Can any one can help me??
Ullas
|
|
|
|
|
OK, so why use a picture box ? Why not just draw it yourself and let the existing printing framework print it from there ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Graus,
the layout images are external jpg files. (eg: Layout of a building). I am loading the same to picture box initially and user can mark locations on them. Then he want to take the print out of the image along with the marked locations.
It would be fine if you can help me for creating .Net c# code for the code found in the following link.
http://vb-helper.com/howto_print_picturebox.html
Thanks
Ullas
-- modified at 8:41 Wednesday 4th April, 2007
Ullas
|
|
|
|