|
dikshant@p-dd.com wrote:
Hello I am developing Windows application required to make a POPUP Window when application Minimized so how can i make that popup window.
Don't ask the same question twice within 9 minutes of each other. Be patient and someone will respond.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
hi frns
i have one dropdown list,button and a grid view in my proj i have filled dropdown list with my database tables values as select items now i want to display in the details of item1 column values in grid view when i select item1 in dropdown list and click on button
plz send me asnwers as early as possible
regards
sunil
|
|
|
|
|
Following is the pseudocode that you can use for your purpose !!!
In the button click event ...
public void button1_Click(object sender,EventArgs e)
{
string _strSelectedID=cboValues.SelectedItem.Value;
_dgrYourDataGridName.DataSource = GetItemDetails(_strSelectedID)
_dgrYourDataGridName.databind() // this line is needed ONLY in case of your application is an Web Application.
}
public DataTable GetItemDetails(string ItemID)
{
// Get the the details of data grid depending upon the ItemID( it is the value of drop down selected item ) and get it as a DataTable ...
_dTItemDetails = DataBaseValues(...)
return _dTItemDetails
}
Happy Coding !!
Thanks,
Arindam D Tewary
|
|
|
|
|
under button clickevent what is cbovalues can u plz tell me
send answer as early as possible
|
|
|
|
|
hi,
my aim is to open a mdi child form which cant be dragged that is storing the positions and other size related properties permanently
if any one knows the answer or any clue please let me know
regards
sindhu tiwari
if i fail 100 times i will never call myself a failure i will tell that i have discovered 100 ways to fail
|
|
|
|
|
The simplest way to stop a form being dragged (moved) around by the user is to set the FormBorderStyle property to None for the Form you are making the MDI Child. Using None as the FormBorderStyle will also prevent the user from resizing the Form.
However this will remove the control bar at the top of the Form, if you can live with that and in order to close the form, you will need to provide a button which closes it.
|
|
|
|
|
hi all,
please do you have any idea to host .net console network server applicatioin inside IIS.May be i am wrong.
if feasible,please give me some useful references.
thank you in advance.
naresh is testing the site.
|
|
|
|
|
dhami_naresh wrote: please do you have any idea to host .net console network server applicatioin inside IIS
IIS is for executing server side scripts. Console application can't be executed by IIS
|
|
|
|
|
oh thank you.
naresh is testing the site.
|
|
|
|
|
hi
can we use TCPChannel in dll that is hosting in IIS.
thank you.
naresh is testing the site.
|
|
|
|
|
If Any one convert this vb code to c# i shall be thankfull to him.
//code started from here
option Explicit
'
private Declare Function FindWindowEx Lib "user32" _
Alias "FindWindowExA" (byval hWnd1 as Long, byval hWnd2 as Long, _
byval lpsz1 as string, byval lpsz2 as string) as Long
'
private Declare Function EnableWindow Lib "user32" (byval hwnd as Long, _
byval fEnable as Long) as Long
public Sub EnableStartMenuButton(byval bEnable as Boolean)
'
' Don't forget to re-enable it !
'
Dim lHwnd as Long
'
lHwnd = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString)
lHwnd = FindWindowEx(lHwnd, 0&, "Button", vbNullString)
Call EnableWindow(lHwnd, bEnable)
'
End Sub
//code ended
tahir
|
|
|
|
|
tahir_makhdoom wrote: public Sub EnableStartMenuButton(byval bEnable as Boolean)
'
' Don't forget to re-enable it !
'
Dim lHwnd as Long
'
lHwnd = FindWindowEx(0&, 0&, "Shell_TrayWnd", vbNullString)
lHwnd = FindWindowEx(lHwnd, 0&, "Button", vbNullString)
Call EnableWindow(lHwnd, bEnable)
'
End Sub
public void EnableStartMenuButton(bool bEnable)
{
long lHwnd;
lHwnd = FindWindowEx(0l, 0l, "Shell_TrayWnd", Constants.vbNullString);
lHwnd = FindWindowEx(lHwnd, 0l, "Button", Constants.vbNullString);
EnableWindow(lHwnd, bEnable);
}
Converted using http://labs.developerfusion.co.uk/convert/vb-to-csharp.aspx[^]
|
|
|
|
|
Thanks
i have a little problem in importing a dll
public class()
{
[DllImport("WinLockDll.dll")]
private static extern int StartButton_Show_Hide(bool bShowHide);
}
The error is below can you tell me what i should do
Error 1 The type or namespace name 'DllImport' could not be found (are you missing a using directive or an assembly reference?) e:\NewRestrictionsc#\WindowsApplication1\WindowsApplication1\Form1.cs
tahir
|
|
|
|
|
Hi!
tahir_makhdoom wrote: The error is below can you tell me what i should do
You should read and try to understand the error message - it's all there already.
You're using the DllImport attribute, but this attribute is not part of one of the namespaces you've said you'd be using, so the compiler doesn't know where DllImport comes from.
You'll have to write the fully qualified class name System.Runtime.InteropServices.DllImport or insert a using System.Runtime.InteropServices; directive.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
Thankyou very much For sharing knowledge and giving good advices.May allah give you Success at every event in your life.
tahir
|
|
|
|
|
|
There are plenty of code converter tools out there. Some are good, and some are not.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Hi,
I went through your article on Consuming .NET Web Services On Pocket PC. It was very descriptive. But the problem I face is as follows:
I am running Windows XP Professional SP 2 on my machine. Using Visual Studio .NET 2005, I created a Web Service and I am trying to consume it using another Windows Application. I am not able to connect to a webservice using ip address but able to do so using localhost. I would like to consume this Web Service using a Pocket PC application and hence it has to be accessed using the ip address of my machine.
Going through the forums, I tried disabling Windows Firewall and also my Virus Scan. Still it doesn't work.
Please suggest how to solve this problem.
madhavraj
|
|
|
|
|
How can i stop an Asynchronous call which is initiated with beginInvoke before it is completed? Calling endInvoke in the main thread does not work as it blocks the execution until the thread, which we started with beginInvoke , completes.
Zafer
|
|
|
|
|
There is nothing built into to .Net to do this for you. You would need use a ManualResetEvent[^] that is accessible from both your invoked method and the method you would like to stop the former. Basically, you need to code your invoked method so it is stoppable.
Take care,
Tom
-----------------------------------------------
Check out my blog at http://tjoe.wordpress.com
|
|
|
|
|
I am developing windows application in which i need to send httpRequest to server and after that i hav to receive httpResponse from that so can any one help me out for solving this problem
|
|
|
|
|
dikshant@p-dd.com wrote: I am developing windows application in which i need to send httpRequest to server and after that i hav to receive httpResponse
Use HttpWebRequest and HttpWebResponse classes.
HttpWebRequest WebReq = (HttpWebRequest)WebRequest.Create(Url);
HttpWebResponse WebResp = (HttpWebResponse)WebReq.GetResponse();
|
|
|
|
|
I am checking to see when a user moves their mouse but the problem is sometimes the mouse does not move and it thinks that it did. I think the mouse maybe really did move just one pixel so I want to ignore that mouse movement. Basically I am think that the mouse could move up, down, left or right 5 pixels from the original starting place and the system should think the mouse did not move. Can someone help me fix up my code?
private void Form1_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
// If mouseCoords is empty don't close the screen saver
if(!mouseCoords.IsEmpty)
{
// If the mouse actually moved
if(mouseCoords != new Point(e.X, e.Y))
{
// Close
this.Close();
}
}
// Set the new point where the mouse is
mouseCoords = new Point(e.X, e.Y);
}
|
|
|
|
|
You can create a Rectangle 10 pixels wide and 10 pixels high around mouseCoords and then use Rectangle.Contains() to check whether the current mouse position still is inside the rect.
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|
|
That sounds like a good idea, but I dont know anything about that. Can you help by providing any code examples?
|
|
|
|