|
is it possible to find on the web free hosting ? i want to put my web service only for 4 days on the web.. i need windows hosting with ODBC ,i know this is not the kind of forum for this question...i saw also very cheap hosting on the web but i don't have that kind of credit card to pay on the internet ....
|
|
|
|
|
www.hamachi.cc will give you a static IP, then you can host it yourself.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
hmm sounds good , but can i access it on the internet or only on that private network (that virtual LAN that hamachi creates)?
the problem is i want to access my web service from a mobile device so it must be accessible on the internet ...or maybe i'will do it on that private network ...so what are the posibilities!
Thanks for the first ideea ,i will instal hamachi now too see how it works!
-- modified at 20:07 Thursday 15th June, 2006
|
|
|
|
|
A VPN is a network that works over the web. I use hamachi to access VSTS on a machine I can only see over the web.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Can any body tell me what is the need of calling this function, when we can set the properties without calling this.
Please dont get annoyed. I am a starter.
|
|
|
|
|
|
Some components require some dependant components to be initialized at design-time. Look at some controls (like the Timer) that uses this. MSDN will also give you some nice info on why to use this interface.
|
|
|
|
|
We have a startup form for all our application. What is the best practice to share this form across every single application.
we don't want to add the form to an application because a change in that startup form need to be change and recompile for every single app.
we are thinking about dll but can dll support graphical controls.
Is there a good practice for this case? any suggestion?
Donkaiser
|
|
|
|
|
no
theres no need to share a form like that
Find a different design
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
Create a class library that contains the form and the code to display it then compile that into a DLL and call that from all your other apps.
My Blog[^] FFRF[^]
|
|
|
|
|
donkaiser wrote: can dll support graphical controls
Yes.
----------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
do you know any good examples on how to make a form into dll and how to call it?
Donkaiser
|
|
|
|
|
10 easy steps:
1) File->New->Project->Visual C#->Windows->Class Library
name it whatever you want (CP_DLLTest)
2) Project->Add New Item->Windows Form
Name it whatever you want (CP_DLLForm)
3) Build the DLL
4) File->New->Project->Visual C#->Windows->Windows Application
6) Project->Add Reference->Browse
Locate your DLL
7) place the correct namespace at the top of Form1.cs in the Windows Application
using CP_DLLTest;
8) Declare a class level object using the form name from the dll
private CP_DLLForm myTestForm = new CP_DLLForm();
9) Add a button to Form1 in your Windows Application
10) Show the class level form object
myTestForm.Show();
----------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
|
I'm looking for outlook navigator component, like one in Janus Controls, but, free
sample: http://www.componentsource.com/res/pub/img/products/full/513079.gif
|
|
|
|
|
1 - should control questions which apply to the .net framework go here (as I code in C#) or in the .NET Framework forum. I point blank refuse to post in both - I think that is not good practise.
2 - my real question. I've googled, msdn'd, and CP'd but I can't found out a) if you can disable the check boxes on a checklisbox and b) if you can, how?
Ideally I would like to disabled the whole item in the listbox, but disabling just the checkbox would suffice.
Regards
Angel
*********************************************
The sooner you fall behind, the longer you have to catch up.
|
|
|
|
|
Hi Angel,
I would think that instead of having disabled items in the CheckedBoxList control, you would be better off removing those items that are undesirable/not valid, or more correctly, adding the list box items on the fly (filtering out the items that don't apply) with whatever changes would cause individual items to be come invalid.
Mike Poz
-- modified at 20:42 Thursday 15th June, 2006
|
|
|
|
|
Spooky - I went for that option and the client said 'no'. Their users need to know the option is there, and might become available soon, but isn't currently. The listbox shows servers with capacity below a certain threshold. When a threshold is reached, the server becomes 'unavailable' for that user, at which point I want the checkbox to be disabled. When a server is below capacity, a user can bag it by checking the listbox, which then 'disables' the server on other clients front end.
Looks like I will have to roll my own. Going for owner draw, dropping the list box and going for colours instead....Now, owner draw listboxes....hmmmm....back to google!
Thanks for your time anyway.
Regards
Angel
*********************************************
The sooner you fall behind, the longer you have to catch up.
|
|
|
|
|
I have a control over another control. The top one is tranparent.
I need to grab the pixels below. Anyone have any hints on grabbing a pixel color on a specific point in a panel?
Thanks,
Nick
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
If you're using 2.0, the Control class has the DrawToBitmap method. You could draw the control to a Bitmap, and then use the Bitmap's GetPixel() method to retrieve the color at that point. I doubt this will be very performant, though!
josh
|
|
|
|
|
Yeah , but that only works for the current bitmap.
I really need to grab what the screen shows and draw that pixel.
I guess I will just use the API to get that data. I was hoping to avoid that.
thanks
1 line of code equals many bugs. So don't write any!!
|
|
|
|
|
I have a small form that I spawn from another that acts as a way to edit a row of data from a typed DataTable. Within the load() method of the form, I execute this code.
<br />
mySource = new BindingSource();<br />
<br />
mySource.DataSource = myManagerClient.VersionTable;<br />
<br />
uxcbFMonth.DataBindings.Add("SelectedValue", mySource, "FiscalMonth");<br />
uxtextFYear.DataBindings.Add("Text", mySource, "FiscalYear");<br />
uxtextName.DataBindings.Add("Text", mySource, "VersionName");<br />
uxcbType.DataBindings.Add("SelectedValue", mySource, "Type");<br />
That works just fine and the data is all bound correctly. The problem is that it defaults to the first row of data in the sorted bindingsource. I have a foreign key value for the datarow I want to display, and I know I need to use the BindingSource.Position property to properly set the position I want to edit, but I'm having problems correctly finding the value to pass.
I tried using mySource.IndexOf(/*The DataRow using myManagerClient.VersionTable.Select()*/), that returned -1.
I also tried to use mySource.Filter(), but that filters the data in the main form as well (since I'm using Form.Show() instead of Form.ShowDialog()), and visually, I think that will confuse the end-user.
As far as I can tell at the moment, I'm going to have to manually pass through each row until I find the right one, but there really seems like there might be an easy way that I'm just missing.
Any ideas?
|
|
|
|
|
Found it, I needed to change the second line above to include .Select().
|
|
|
|
|
I'll try to be as clear as humanly possible, forgive me if my termonology is off, here goes...
I created a class library.
The class library consists of 2 classes.
Class 1 -> A form.
Class 2 -> a "gateway" class allowing me to modify the form.
Class 2 has 2 methods.
Each method spawns a new instance of the form and sets a few form properties.
Fairly easy so far right?
Here's a concept method of class 2.
<br />
public void ShowA(string defaultValue)<br />
{<br />
MainForm form = new MainForm();<br />
<br />
form.DefaultValue = Convert.ToDouble(defaultValue);<br />
form.Title = "A";<br />
form.picWindow.Paint += new PaintEventHandler(form.PaintA);<br />
form.Show();<br />
<br />
WindowsAPI.ActivateWindow("Form1");<br />
}<br />
Basically when I call this method, the form's picture box draws a line at an angle I specified. Then I re-activate my non-class library form using API (I'm not sure how to communicate between class library classes and non-class library forms -- this isn't the problem though).
So yeah...
Back to what I originally mentioned, I only want 1 instance of each form open. A and B can be open, but 2x As cannot be open. I was able to do this with more API, pretty much checking for the hWnd of the window based on its title.
Now, here's the problem...
If the form is currently open, instead of doing nothing (I told it to not to call the class 2 method if it detects an open window already) I want it to UPDATE the value of the current open form (it would draw a new line and update the picture box).
How in the world can I do this?
|
|
|
|
|
Use the singleton pattern[^] to ensure that only one instance of your Form type(s) exist. (You'll need to check in the singleton accessor that the Form has not been closed, if so, recreate it, etc.) Define a method on your Form which performs the update, and have Class2 call into that when the update needs to occur.
HTH,
Josh
|
|
|
|