|
I fall a problem.I have 2 forms. 1st form has listview which shows data from db and has a button which show 2nd form. In 2nd form i add data in database.
but I cant show updated data in listview (1st form )at runtime after add data from 2nd form.
How can i solve this problem
|
|
|
|
|
Events
Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
If you don't ask questions the answers won't stand in your way.
Most of this sig is for Google, not ego.
|
|
|
|
|
The best answer on CP yet - why use x words when one will do! 5'd
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Heh agreed,
as for OP's question expanded a bit. Create an event like OnDataUpdate or DataUpdated to the button which tells the listview to reload its data.
|
|
|
|
|
I am Brazilian student that I come to developing a capture monitoramento project of video.
It would like help.
The project Is:
1- application owes communicates with a capture board of 4 video input.
2-visualize videos images;
3-and option of Registers the videos of the 4 video capture machines.
Already I tried varias formulas but did not get.
_It would like its help thanks!!!
Alex.(alex_xso@hotmail.com)
modified on Friday, January 23, 2009 12:54 PM
|
|
|
|
|
I'm relatively new to programming and this site so excuse me if this is not in the right place. I'm making a program where I think it would be particularly handy to be able to edit the source code files or create new ones. What would be the best approach to doing this? I thought about just making a base program that then runs a .dll that contains all the members etc., but thinking about it today I think that would create a lot of issues. Is there a way to build the .exe and have it contain all the source files, and then be able to extract them, edit them, or insert new ones and dynamically add them into the current running program?
|
|
|
|
|
You can use CodeDOM [^]to dynamically create the code, but the real question is why you need to do this?
Xandafergus wrote: handy to be able to edit the source code files or create new ones
Isn't that VS is for?
only two letters away from being an asset
|
|
|
|
|
I don't necessarily need to be able to do this, it's just that my computer is not exactly fast. It takes me longer than I would like to stop the debug process, enter my code, and then restart it. Also, I'm going to put this on other computers that do not have VS installed unfortunately...and I would like if I could edit this code from there without having to go through VS's long install process.
|
|
|
|
|
You need to address the issues you are facing in a different way. CodeDOM presents security risks and is very complicated, it's not designed as work around solution.
only two letters away from being an asset
|
|
|
|
|
That doesn't make any sense because if any of the source code for your program changed you would need to rebuild it and redeploy it and it wouldn't be feasible to do that on the fly. Maybe you want to create a scripting style language to allow your users the ability to program some functionality in that way.
Alternatively you could consider supporting some plug-in facilities.
ɹǝʌo ɹoʇıuoɯ ɹnoʎ dılɟ sıɥʇ pɐǝɹ ʇ,uɐɔ noʎ ɟı
|
|
|
|
|
Hello, Community!
I have a problem, that's driving me crazy for days, now...
I have a buffer[] that is filled with data(=WAV) from an external device (NOT a microphone!).
I want to stream the data as soon as a certain amount of data has arrived.
Could somebody, please, tell me, how I can do that (in easy steps!)?
I've tried nearly all the samples here or in the net, already. Most of them use sound files or a capturing device...
At the momemt I can set the SecondaryBuffer to a file, which works fine, but how can I set it to a MemoryStream, for example, and stream that? I would like to have something like that:
for (int i = 0; i < intIncomingDataLength; i++)
{
rawsamples[j] = (byte)fileStream.ReadByte();
if ((i>5000)&&(blPlaying==true))
{
MemoryStream mystream1 = new MemoryStream(rawsamples,0,intIncomingDataLength, true, true);
SecondaryBuffer snd = new SecondaryBuffer(mystream1, desc, applicationDevice);
snd.Play(0, BufferPlayFlags.Looping);
blPlaying=false;
}
}
But I always get an "Out of bounds" error, if the SecondaryBuffer is initialized...
I can't download the DirectX SDK in my office, due to company restrictions, either.
Any help is appreciated!!!
Thanks
Hans
|
|
|
|
|
|
BufferDescription desc;
Works fine, if I change the source of the secondarybuffer from the memorystream to a filename.
|
|
|
|
|
|
hi,
i want to develop a window application that will get a '.cs file' as input from a text box and create a class library(.dll file) for it.
this is the method i used to programmatically compile code and generate the executable, but i want to generate a dll.
private void Compile()
{
CSharpCodeProvider codeProvider = new CSharpCodeProvider();
ICodeCompiler icc = codeProvider.CreateCompiler();
string Output = "testAssembly.exe";
System.CodeDom.Compiler.CompilerParameters parameters = new CompilerParameters();
parameters.GenerateExecutable = true;
parameters.OutputAssembly = Output;
CompilerResults results = icc.CompileAssemblyFromSource(parameters, txtOutput.Text.ToString());
//txtOutput is the text box where i give my code
if (results.Errors.Count > 0)
{
foreach (CompilerError CompErr in results.Errors)
{
MessageBox.Show( "Line number " + CompErr.Line +
", Error Number: " + CompErr.ErrorNumber +
", '" + CompErr.ErrorText + ";" +
Environment.NewLine + Environment.NewLine);
}
}
else
{
MessageBox.Show("Success");
}
}
this is the link i referred for programmatically compiling code using C# compiler that creates exe.
http://support.microsoft.com/kb/304655[^]
http://support.microsoft.com/kb/304655[^]
help plz,
thanx in advance.
|
|
|
|
|
Well - for a start, you have named your filename with an exe extension. More importantly though, you should set parameters.GenerateExecutable = false; to generate a DLL.
|
|
|
|
|
thanx for ur quick response, but i tried those, but it didnt work. actually it creates a dll (an exe that is renamed to a dll).. but i want a class library. for ur info i need to load the dll in NUnit, so if i create a dll as u said, i cant do that.
hope u can get me.
|
|
|
|
|
Why wouldn't you be able to load a DLL into NUnit??
|
|
|
|
|
this is the error that i get when i load the assembly in NUnit,
"System.IO,FileNotFoundException : Could not load file or assembly 'nunit.framework, Version=2.4.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77' or one of its dependecies. The system cannot find the file specified."
what is d cause of this error.! how to solve it.?
|
|
|
|
|
Sounds like your just missing a referenced .dll. You can either add the nunit assemblies to the GAC, or copy them to the same location as your dll, or one of the search paths for the nunit instance.
|
|
|
|
|
d chase begins wrote: thanx for ur quick response, but i tried those, but it didnt work.
Try again, or post the code for review. That's the right property to use to specify if an executable or a library will be created.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
i'm new to this forum.. can u help me in posting the thread for review..?!
|
|
|
|
|
|
Most likely you set only the first element of the array to the parameter, but without seeing the code, it's quite hard to say more.
|
|
|
|
|
The byte array is declared "byte[] b = new byte[32];". I set the values with
cm.Parameters.AddWithValue( "@binTrack3", b );
and
cm.Parameters.Add( "@binTrack3", SqlDbType.Binary, b.Length ).Value = b;
Same results.
I should also add, I'm using ODBC connection to connect to Sybase and SQLClient connection to connect to SQL Server.
|
|
|
|