|
|
Follow the Windows conventions. A window with no border is not resizable. Set the FormBorderStyle to Sizable.
This also governs the availability of the Size option in the window menu (press Alt+Space, left-click the icon, or right-click the window title or taskbar button).
DoEvents: Generating unexpected recursion since 1991
|
|
|
|
|
|
|
Hi,
I am dealing with an windows application in which there is a form on which I m using DataGridView to display data fetched from the database.
I also used multi threading to show updated data continuously. Everything is working fine but I am not able to retain the DataGridView's scroll bar positions on successive execution of threads. How can i solve this problem?
Gurudatta B. Shelke
|
|
|
|
|
What's the point of asking questions if you're not going to listen to the answers. Here...[^]
This was asked and answered a week ago.
|
|
|
|
|
Sorry sir.. thanx for reply me again for the same question.
I posted the same question again b'cuz I have missed answer given by u in the last week.
extreamly sorry.
Gurudatta B. Shelke
|
|
|
|
|
Thank you Sir,
As per the info given on the following link[^]
I have declared all variables and also written the SendMessage function declaration.
Now I am not getting how to use this function and where to call this function!
I request you to help.
Gurudatta B. Shelke
|
|
|
|
|
I've created media player using sound dll's of windows.
Its woking...But my doubts are..
1) How can i associate it to the mp3 and wave files in my system?
2) How can i make a selection sequence in program for the user to select or to use my program as his default player for mp3/wave?
And help me on the code to make a progressbar while its playing..
Thanks in advance
varun
|
|
|
|
|
1 - in the registry
2 - by writing code to put it in the registry
varun.g wrote: And help me on the code to make a progressbar while its playing..
Not sure if you get a callback from the API, but if you know the length of the track, can't you fudge it ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Thanx for your help
Let me explain one,two things.
Actualy i've created the progressbar according to the track's progress.
But i need another progressbar to show ;(digital equalizer,like that).
And i haven't got things about registry and how to coding that.
can you help me please...
|
|
|
|
|
Hi,
I am trying to open window form in designer (this form inherits another window form "BaseForm") ,
am getting exception and Visual studis is asking to debug or cancel message alert.
when I debugged and its said "Could not load file or assembly 'Wrappers.CLI,Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
The system cannot find the file specified."
The WSOD contains:
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
Could not load file or assembly 'Wrappers.CLI, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Hide
at MyProject.BaseForm..ctor()
this is in C# project it has refernce to 'Wrappers.CLI' dll.
I tried
1. rebuilding
2. steps in http://www.codeproject.com/KB/cs/wsod.aspx[^]
but none was working..
Thanks,
Ramki
|
|
|
|
|
Hi, visual studio creates a design time cache of your objects. try shutting down the ide (close all file & design views first), then deleting all the folders at C:\Documents and Settings\<user name="">\Local Settings\Application Data\Microsoft\VisualStudio\9.0\ProjectAssemblies
then rebuild. the 9.0 folder is for vs2008, vs2005 will be 8.0
Hope this works, Rob
"An eye for an eye only ends up making the whole world blind"
|
|
|
|
|
Hi Rob,
I tried the steps.But it didn't work.
the same problem has occured:
One or more errors encountered while loading the designer. The errors
are listed below. Some errors can be fixed by rebuilding your project,
while others may require code changes.
Could not load file or assembly Wrappers.CLI, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The
system cannot find the file specified.
Hide
at BaseClass..ctor()
Regards,
Ramki
|
|
|
|
|
Hi Ramki, sometimes on projects that use inherited forms, i've had to delete all the obj and bin folders manually to get the designer to open (although less so in vs2008 ). You could give that a go (close VS first!) then do a rebuild. also, is the wrappers.cli project in the same solution as your form? it's worth re-adding the reference to it (remembering to use the project tab, not the browse tab in add reference window).
Regards, Rob
"An eye for an eye only ends up making the whole world blind"
|
|
|
|
|
Hi Rob,
thanks for the response.
I tried deleteing all the files present in obj and bin. but it didn;t work.
Add I addded reference erappers.cli.dll throughg project tab only.
But after adding it is showing the version as 0.0.0.0 but it is of 1.0.0.1
this is might be the problem .
but still the problem exists.
Thanks,
Ramki
|
|
|
|
|
Hi,
am facing WSOD problem:
when am trying to open disgner view for a form which is inheriting BaseViewForm getting white screen with this message:
One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding your project, while others may require code changes.
Could not load file or assembly 'Wrappers.CLI, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Hide
at MYnamespace.BaseViewForm..ctor()
in C# project I added a reference to Wrappers.CLI.
Wrappers.CLI version is 1.0.0.1 but when I added reference to this the VS shows the version as 0.0.0.0 (By looking at properties after adding reference)
Thanks,
Ramki
|
|
|
|
|
Hi everyone,
I am developing a multiLanguage Windows Application in .net framwork 3.5/C#
I am trying to extract the resx files from the compiled resource.dll files.
To accomplish this i have completed the first part of that of extracting the resX files from the .resources file using the resGen tool of the VS 2008
Can anyone suggest a way to extract the .resources files from the resource.dll
awaiting your response
thanx
|
|
|
|
|
hi experts,
i've a question here about the .Net WinForm application, l'm using .Net 2.0 Visual Studio 2005, consider i have below
1. Form1 with 1 button to show message "this is form 1"
2. Form2 inherited from Form1
now my question is how can i override the button click event in form2 before reached form1? when user clicked on form2 button, the form2 will display "this is form 2" before display "this is form 1". during design time, the button in form2 inherited from form1 seems to be locked. please help..thanks.
|
|
|
|
|
Well you can't edit the button that was originally on Form1 from Form2 because of the inheritance. Inheritance is kept and can't be altered through the designer (as far as I am awhere).
You might want to look into overriding the buttons' click event. Google overriding for a good example, but here is some pseudocode:
<br />
public overrides sub btn_Click(obj as object, e as eventargs)<br />
MessageBox.show("New message")<br />
base.btn_Click(obj,e)<br />
end sub<br />
I am just not sure as to whether event methods can be overridden, so I would still suggest google.
Regards,
Thomas Stockwell
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.
Visit my homepage Oracle Studios[ ^]
|
|
|
|
|
I agree. And I suggest to put button click logic in a seperate function.
In form1:
private void button1_Click(object sender, EventArgs e) {
ShowMessage();
}
protected virtual void ShowMessage() {
MessageBox.Show("this is form1");
}
In form2:
protected override void ShowMessage() {
System.Windows.Forms.MessageBox.Show("this is form2");
base.ShowMessage();
}
|
|
|
|
|
erm..that what i was thinking too...thanks everyone here
|
|
|
|
|
Hi All,
I have a scenario where i need to create a setup for the windows application.I have created the msi for the application. During installation i am getting the port number and server name from the user. I need to update the resource file with in the above mentioned windows applcaition while installing with the values given by the user. I have no idea of updating the windows application dll while the install process is in action.
Can any one help me in this regard.
Thanks in advance
Cheers
Mani.
|
|
|
|
|
Hi, I don't think you can update the DLL during install. You'd be better off writing the server details to the registry or a config file in the application data folder, then adjusting your code to look for these details in that location. If you're concerned about the security of these details, you can easily encrypt them using the classes in System.Security.Cryptography.
Good luck!
Rob
"An eye for an eye only ends up making the whole world blind"
|
|
|
|
|
I too thought of doing the same. But our client has mentioned pariculayly to save it in resourdce files. Anyhow i ll procceed with this idea.
Cheers
Mani.
|
|
|
|