|
ass hole
explore the world of imagination and be known as creative
|
|
|
|
|
Does anyone have a link to .dll I can use in my .net code to edit mp3 tags.
how vital enterprise application are for proactive organizations leveraging collective synergy to think outside the box and formulate their key objectives into a win-win game plan with a quality-driven approach that focuses on empowering key players to drive-up their core competencies and increase expectations with an all-around initiative to drive up the bottom-line. But of course, that's all a "high level" overview of things
--thedailywtf 3/21/06
|
|
|
|
|
|
Hi all... Just a quick one... I am trying to pull data from a mysql database and I am falling foul of a null data error...
I am querying a mysql database and pulling a record containing 38 items... However it is throwing errors because some of the items are null...
What is the best way to detect if the item is null? So I can do something about it...
Thanks in advance,
Phil
"Rules are for the obedience of fools and the guidance of wise men"
|
|
|
|
|
Can you provide the code giving error?
Mubashir
Every job is a self portrait of the person who did it.
|
|
|
|
|
Here is a bit of the code:
string mysql_query = "SELECT * FROM rt_sip WHERE id = " + id + " ORDER BY id";<br />
<br />
mysql_reader = mysql_send_query(mysql_query);<br />
<br />
while (mysql_reader.Read())<br />
{<br />
temp_id = (int)mysql_reader[0];<br />
temp_name = (string)mysql_reader[1];<br />
temp_accountcode = (string)mysql_reader[2];<br />
...<br />
...<br />
...<br />
}
Phil
"Rules are for the obedience of fools and the guidance of wise men"
|
|
|
|
|
Use the IsDBNull method. Example:
if (mysql_reader.IsDBNull(1) {
temp_name = null;
} else {
temp_name = mysql_reader.GetString(1);
}
---
b { font-weight: normal; }
|
|
|
|
|
Yep I tried that but got the same error message...
Will keep looking...
"Rules are for the obedience of fools and the guidance of wise men"
|
|
|
|
|
Phillip Hodges wrote: Yep I tried that but got the same error message...
Then you did something wrong, because that method works.
Where exactly do you get the error message, and what exactly is the error message?
---
b { font-weight: normal; }
|
|
|
|
|
Have you tried checking DBNull or IsDBNull()?
|
|
|
|
|
DBValue.IsNull (or something like that)
That should be DBNull.Value
Good luck...
V.
Stop smoking so you can: enjoy longer the money you save.
|
|
|
|
|
how to create the tab page control which is present in the project property window?
is that .Net componet is available for reuse?
sakthi
|
|
|
|
|
yea sure it is
jamil abou khalil
|
|
|
|
|
can u say its exact name and its namespace?
sakthi
|
|
|
|
|
please guide me about creating a horizontal dockable window within Mdi childform.
* I just want to create a MDI interface.
* a child form that can be minimized, maximized in MdiParent client area.
* Also a dockable window (similiar to output window in visual studio 2003) that makes it space with childform.
Please reply.
|
|
|
|
|
if you are creating an MDI, then all the childforms have bydefault the funcationality of minimized, maximized.
can you clear your question about dockable window (similiar to output window in visual studio 2003).
regards
sAqIb
"Our scientific power has outrun our spiritual power. We have guided missiles and misguided men."
Dr. Martin Luther King Jr.
|
|
|
|
|
Dear sAqIb!
I need a single dockable window (similar to output window in IDE) alongwith that child form in the area of Parent form.
Thank you.
|
|
|
|
|
I was looking for the same sort of functionalities described above.
Try
http://sourceforge.net/projects/dockpanelsuite/[^]
There is a good sample app to get you started too.
Set the parent form's IsMdiContainer property to true.
-- modified at 19:47 Wednesday 8th November, 2006
|
|
|
|
|
Thank you dear.
I have seen that project at sourceforge.net but how can i modify it for my functionality?
Can u guide?
Regards
|
|
|
|
|
Hi
I have a ComboBox control and i wrote comboBox1_SelectedIndexChanged() event for it.
Now ReFilling combobox causes to running SelectedIndexChanged() event each time when new item added to combobox and this slows the program or maybe cause to unwanted problems.
I use below code but i want a better way or setting a property of combobox which i don't know about it:
private bool allowCmbChange;
Form_Load()
{
allowCmbChange=false;
for (int i=0;i<10;i++)
{
comboBox1.Items.Add(i.toString());
}
allowCmbChange=true;
}
private void comboBox1_SelectedIndexChanged()
{
if (allowCmbChange==false)
return;
.
.
.
}
Thank you for helping me.
|
|
|
|
|
Hello,
Instead you could unlink the event before you start the Items.Add and link it agein when you are done.
Form_Load()<br />
{<br />
this.comboBox1.SelectedIndexChanged-= ...<br />
for (int i=0;i<10;i++)<br />
{<br />
comboBox1.Items.Add(i.toString());<br />
}<br />
this.comboBox1.SelectedIndexChanged+= ...<br />
}
All the best,
Martin
|
|
|
|
|
Why are you doing this in Form_Load? Doesn't it load once when the form loads?
|
|
|
|
|
Hi
I just wrote it in Form_Load for an example.
I all over the code section a have this problem.
|
|
|
|
|
Before you fill it, store the selecteditem.
Fill it.
Restore the selectedItem.
|
|
|
|
|
Hello guys,
it is annoying, but I don't know what I can do else.
I have a single Form, without any Windows controls. It is just black.
I do some paintings like graphs, diagtrams and stuff like this.
In the previous version I redraw everthing cyclically in the Paint-Method of the Form,
by using "this.Refresh" in a timer. But the timer cycle is too fast, I had a high CPU load.
Now, I have several invalidation rectangles of those graphic parts, which has to be really redrawn.
I put all that rectangle together in one region called "myRegion", by using the myRegion.Union(anotherRect).
Finally i call in the timer this.Invalidate(myRegion). Afterwards I clean up this Region for next timer cycle.
All needed parts are redrawn correctly, but the CPU load is not much better.
I figured out, the more rectangles I combine with "myRegion", the more CPU load is needed.
I need urgent help. How can I fix this :-/
-- modified at 7:55 Wednesday 8th November, 2006
|
|
|
|