|
Got it.Yah, Thank you very much.
|
|
|
|
|
I created a small application using c#.net in vs2003.
I used a combox control at top and a tab control in which there are 3 tabs,
On these tab pages having some textboxes, listviews etc.
now on the combobox_SelectedIndexChange event i am retriving data from DB and binding on to these tab pages.
Here problem occurs, After main form load, if i select an item from combobox,
It saying "Object refrence not set"
On the other hand, when main form load and i click/view each tab then select item from combobox its working fine,
No error .
What can be the reason,
might be controls of each tab page loaded when they got clicked or viewed,
Any help woulb be appreciated,
Thanks & regards.
|
|
|
|
|
Some code in your selected index changed event is fixing your bug. Hard to say more, without seeing the lines of code involved.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
Christian Graus wrote: Some code in your selected index changed event is fixing your bug. Hard to say more, without seeing the lines of code involved.
as i said before select index event works fine if i view/click each tab page, it creates problem only when user select item from combo box without viewing each page.
Here is approach i m using.
After IntializeComponent method,
->calling a method in which, i am doing DB retrives operation, then
->Binding these data to controls on each tab page using control.DataBinding.Add method
I want to know what event occur when user click a tab page, so that i can call that before user selects an item from combo box.( tab_click event occurs, but what's happening, Is it loading/validating each control on each page)
if user view each page, then select item no problem, all fine.
but choose an item from combo box before viewing pages error yells.
any comment/help?
|
|
|
|
|
WTF why where you 1 voted???
|
|
|
|
|
hi experts,
I hav create a COM DLL using VC++6.0 application.which has a function :
[id(13), helpstring("method LngGenSuggW")] HRESULT LngGenSuggW([in]BSTR pwIpIscii,[out]VARIANT *pawSuggArray);
and my client application is in C# 2005.
which is as follows:
COM_INSPELLLib.ComInSpell objCom = new COM_INSPELLLib.ComInSpell();
String sIpWord;
object sSuggArray = new object() ;
objCom.LngGenSuggW( sIpWord, out sSuggArray);
and I got the sSuggArray with the answer return by COM DLL.
which contains "3 strings" means string array.
but the problem is object does not contain any method to get these string back.
Is there any method or solution??
that converts or parse this object array sSuggArray into String array and
so that I can use it for further procedure.
please help me..
I try it.. but cant done..
waiting for ur valuable reply..
thanx & regards,
Victory.Thumbs Up
|
|
|
|
|
have you tried casting it directly?
COM_INSPELLLib.ComInSpell objCom = new COM_INSPELLLib.ComInSpell();
String sIpWord;
object sSuggArray = new object() ;
objCom.LngGenSuggW( sIpWord, out sSuggArray);
string [] arr = (string[])sSuggArray;
|
|
|
|
|
Is there anyone could give some idea about this question.
|
|
|
|
|
.NET controls have dock and anchor properties. Why on earth would you be using a flexgrid ?
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
For some reasons,user need adjust the form size,thus,need the form's content(flexgrid) adjust with the change of resizing,Suchu as row wrap. the issue had been fixed, thanks.
|
|
|
|
|
private const int LB_GETCOUNT = 0x018B;
private const int LB_SETCOUNT = 0x01A7;
Can some body please tell me what does these values mean. Secondly can i define my own values for e.g
private const int LB_SETITEMHEIGHT = 100-> i want to set item height to 100;
|
|
|
|
|
netJP12L wrote: private const int LB_GETCOUNT = 0x018B;
private const int LB_SETCOUNT = 0x01A7;
They look to be contants. Whats the confusion ? You can search through your code for "LB_GETCOUNT"/"LB_SETCOUNT" to know what are they meant for.
But looking at the names they seem familiar to Windows listbox commands [^]
netJP12L wrote: can i define my own values
Yes, you can declare your own constants. It's good to declare constants instead of having "magic values" all over the code. Hopefully you are aware when something should be declared as a constant or else google could help you.
|
|
|
|
|
netJP12L wrote: Can some body please tell me what does these values mean
They almost certainly mean that some p/invoke calls are being made and these constants are needed for that.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
private const int LB_GETCOUNT = 0x018B;
private const int LB_SETCOUNT = 0x01A7;
If a number starts with 0x it means you are dealing with a hexadecimal value.
0x018B = decimal 395
0x01A7 = decimal 423
|
|
|
|
|
That's the way we used to write Windows applications. These two things are constants which represent Windows Messages. They'll almost certainly be used with SendMessage() to get or set the count of a listbox. (How you set the count on a listbox without adding or removing from it I don't know).
.NET makes doing things like that a lot easier, but its still going on under the covers.
You cannot do what your suggesting - setting LB_SETITEMHEIGHT to 100 to set the size to 100. These things are message identitifiers, not values to set. The height would be another parameter passed to SendMessage along with the message identifier and the HWND of the control.
I wonder why you would have this in a .NET application? Like i said, programming Windows in this fashion is pretty much a thing of the past. Thank goodness.
Regards,
Rob Philpott.
|
|
|
|
|
Hi Friends,
How to solve this Problem.
1. How to find the Solutions for "Unused File Extension Registry".
2. How to identify the what are the files are unused file extension is available in registry.
Another One questions.
1. How to Retrieve the Mozilla Firefox browser cookies and history using vb.net code?
If you know any one help me.
I need very urgent help for this topic.
Let me know the idea of these concepts sent me an email for me.
This is My Mail Id:kanmani84@gmail.com
Plz reply for my questions.
With Regards,
Mani K
Chennai
By
K.mani
|
|
|
|
|
kannanmani wrote: How to Retrieve the Mozilla Firefox browser cookies and history using vb.net code?
There is a VB forum intended for VB questions.
kannanmani wrote: Let me know the idea of these concepts sent me an email for me.
This is My Mail Id:kanmani84@gmail.com
This is a forum, not a bulletin board. People reply in the forum so that other people may benefit from the answers. Asking for a reply to your email is considered rude, if you are too lazy to revisit the forum why would anyone make an effort to reply?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
i click on a linkbutton added in gridview in ist row .its e.rowindex should generate value 0 but it is 1 as gridview loaded first time what could be the reason.
I checked this at different events GridViewDeleteEventArgs & GridViewCommandEventArgs.
|
|
|
|
|
I'm just guessing here, but it might be because it is counting the column headers as row[0].
Anyway, does it matter, just use the value returned by e.RowIndex.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
hi,
i need to diplay multi images. it could be in a panel or picBox or listBox or any possible way.images can load by the user when applications run.in application got import button. so user can load many pictures to it by clicking that....any body know how to load multi images....in thumbnail veiw or list view or icon view or etc.....
pl help me.....thank u all....
|
|
|
|
|
How about adding picture boxes to a panel? You can make the panel scrollable to accomodate for a large number of images.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
hi iam writing a java application which uses bluetoth i.e. javax.bluetooth;
now i need to create exe for c# i.e. my GUI is C# and business logic is java,
so these are steps i have followed
* created a java project (iam using netbeans 6.1)
* after build i used command prompt and travesed to dist of my project location which contains jar
* here i typed ikvmc my.jar
but now it says the following it also contains others but one of such is
Warning IKVMC0100: class "javax.bluetooth.LocalDevice" not found
it also creates exe but if use that in my c# then raises the exception...
so please help me.. what is the solution for this....
modified on Thursday, February 12, 2009 11:43 PM
|
|
|
|
|
Hi,
I am looking for information about this topic's description.
magic wand tool 'photoshop'
fuzzy select tool 'the gimp'
I'm not sure what this implementation is called, and have been searching the net for quiet some time.
I'm developing in C#
I need to click part of an image, and based on that pixels color find the adjacent pixels with a tolerance based on the original color.
I hope this explanation is satisfactory, any information would be greatly appreciated
Thanks.
|
|
|
|
|
|
My articles on image processing might help in giving you code you can use to examine an image, a pixel at a time.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|