|
This is what i'm trying and it is not working... any clues?
<br />
SqlDataAdapter adp = new SqlDataAdapter(myCommand);<br />
DataSet ds = new DataSet();<br />
adp.Fill(ds);<br />
ds.Tables[0].Select("COLUMN1 LIKE '*" + string1 + "*', COLUMN2 LIKE '*" + string2 + "*', COLUMN3 LIKE '*" + string3 + "*'");<br />
MyRepeater.DataSource=ds.Tables[0].DefaultView;<br />
MyRepeater.DataBind();<br />
|
|
|
|
|
Hi every body... I'v searched the comments, I did find pieces of information here and there but it's not even near the bull's-eye, so I decided to post a new thread hopping for someone to help me getting out of this problem
the main/parent form is an MDI form and the child is a normal form. The problem accurres after the user selects the child from parent's mainmenu, during the process of loding the child form I get this message
http://mars.walagata.com/w/action/DotNet/unhand.jpg[^]
"An unhandled exception of type 'System.NullReferenceException' occurred in Unknown Module. Additional information: Object reference is not set to an instance of an object."
and after I clicked the continue, the child form runs without any prob. butif I clicked the Break this messagebox shows up
http://mars.walagata.com/w/action/DotNet/there-is.jpg[^]
this is part of the code related to the problem (I think)
the parent part... calling the child
AccountEdit editAccount = new AccountEdit();<br />
editAccount.MdiParent = this;<br />
editAccount.Show();
I removed the "MdiParent = ..." and its the same, changed the Show() to ShowDialog() and still the same
the chiled part..
I DIDN'T CODE ANY THING, I just draged and droped controls and rearrange them on the form. The one thing I remember is that this problem started to showup after I add any list control and this time I added ListView control.
Here is a link to the code (I don't want to make this message long) :
http://mars.walagata.com/w/action/DotNet/code.txt[^]
after reading some posts that said that this only accurres in the VS.net 2003 environment, I decided to ignore this exception http://mars.walagata.com/w/action/DotNet/exception.jpg[^]
some other posts said that uninstalling and reinstalling the framework will solve the prob but I don't believe so
It is related to referencing null value only after the Show(), so any ideas?
and another question, why after some time I can't type '{' in vs.net?
|
|
|
|
|
Sounds really strange...
I would do the following: Surround your ShowDialog call with a try catch block and look at the stack of the exception (and post it here). This will hopefully give further hints.
<br />
try {<br />
editAccount.Show();<br />
} catch (Exception exc) {<br />
Console.WriteLine(exc.StackTrace);<br />
}<br />
|
|
|
|
|
Thanks alot Rohde for your reply,
I did and the same message still comming
hopefully that the framework 1.1 SP1 will solve this problem, Microsoft mentioned some NullReferenceException errors were fixed in this SP, I hope I didn't install this fix before but anyway assume that the problem remains even after I installed the SP, any ideas?
and if this fix did the job I'll report back
|
|
|
|
|
How can i write a program can get text at current mouse position
le van giang
|
|
|
|
|
|
And I think I've told you this before...
And leppie 's comment "with great difficulty" is an understatement!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi all,
I am facing with an unusual problem. i am doing a project involving TCP/IP packet capturing. I display the packets in a list view. it works most of the times except the first time.
For the first time when i click start button the list view goes blank. after that it works properly.
can any one help me?
|
|
|
|
|
That depends entirely on how your filling the ListView while your capturing packets. Are you letting the ListView update itself after filling it with data? Is your packet capture process running on the same thread of the UI? If so, then you're going to have to call Application.DoEvents to let the Window and it's controls redraw themselves. A better method would be to run the capture process on a seperate thread and have it post calls back to the Window with the ListView telling it to add the data, possibly using an event.
Also, consider that you can't possibly update the ListView fast enough to post every packet that flies by as it does so. You might want to hold off updating the ListView until the capture is finished, then you can populate the ListView however you want.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi friends,
how can i indent the data ( nodes ) in a tree view using tab. I tried using "\t" in the node string, but it displays a square character in the node instead of indenting.
mahesh
|
|
|
|
|
The TreeView doesn't support the Tab character. You'll either have to TRY prepending the strings with Space characters or do without. Since it's a TreeView that already does indenting for child nodes, I really have a hard time thinking of a good reason to use such formatting...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi ineed help about hoe i can write code in c# that protect my file and folder from delete and write and if i want protect file from open.... thanks for any one help me
|
|
|
|
|
WHy don't you try the FileSystemWatcher namespace ?
James
|
|
|
|
|
thank you for response but i try but this name space
give you tha ability to rebort about chang after it happend
|
|
|
|
|
You'll have to write a file system extension to accomplish this. This is NOT a project for the faint of heart or weak in COM Interop and NTFS extension skills.
Here's a better idea. Just use the normal NTFS Security permissions. The requirements you specified are exactly what Security is for.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thank you for your response and thank you for your advice
but how i can write code in c# that help me to do the security using ntfs;)
|
|
|
|
|
You wouldn't have to. I really can't give you the details because you haven't said what files and folders your trying to protect or under which folders any of this stuff is stored.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Fit_Together(Control c1, Control c2)
i need to write a function which moves the control c2 close to c1 ...
could anyone give me some tips regarding this or maybe post a method which implements that.
Im thankful for every help!
Best regards
denis
|
|
|
|
|
|
You can write in the event that you want that fitting to be fired that code:
private void Onfitting()<br />
{<br />
Point Differnce = new Point()<br />
Control1.Location = new Point(0,0);<br />
Control2.Location = new Point(Control2.Location.X-theDeffernceBetweenthem.X,Control2.Location.Y-theDeffernceBetweenthem.Y);<br />
}
|
|
|
|
|
Hi everyone,
I want to export some data to a Excel file. I can export data in a DataTable to the file while images can't be exported. If you have some methods, please tell me. Thanks a lot.
In addition, how to put data in a merged cell?
Thanks
welsrping
hope for help
|
|
|
|
|
plz give me some examplees of audio and video which are not included in 3rd party as early as possible.thanx
shumyla
|
|
|
|
|
Please to be searching Yahoo or Google for code.
We will help you with your code, but will not give you any. You don't learn anything that way...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
plz send me some examples related to send audio(convert voice to wav file) and video(convert picture or video to avi file)in c#.
shumyla
|
|
|
|
|
Hi all,
I have one question about setting up the installer. I've set the RemovePreviousVersions of installer to true, and have changed the installer version every new release(it also changed the product code).
However, the installer still can't detect the pervious version of application. Do I miss any important steps?
Could you please hlep.
Regards
|
|
|
|