|
Well, thank you. This might be a reason, I am not sure. But what's the solution then? Btw, I have sereval(not only one) labels in this TableLayoutPanel, are you suggesting me to add OnMouseWheel Event for each of them? I think that would be too error-prone...
|
|
|
|
|
1) you should make sure you can have triggered the event.
just user 'messageBox.Show("here");' to test it.
2)if you can trigger the event. you must have the wrong logic error in here:
int numberOfTextLinesToMove = e.Delta * SystemInformation.MouseWheelScrollLines / 120;
int numberOfPixelsToMove = numberOfTextLinesToMove * fontSize;
modified 27-May-14 5:33am.
|
|
|
|
|
hi all
i want to add an icon to settings.settings in my project
then i will use that icon for my notifyicon that i have in the form
although i tried in many ways i couldnt add that icon to the settings.settings because i couldnt know what do i have to enter to the "type" and "value" areas
i will be happy if u help me
|
|
|
|
|
You should add it into Resource, not Settings.
|
|
|
|
|
i tried to do it like the code below
public Form1() {
InitializeComponent();
notifyIcon1.Icon = Properties.Resources.NameOfYourIcon;
}
but i get error when i try to make its exe by using visual studio's own command prompt i mean csc
in the error says
cs 0234: The type or namespace 'properties' doesnt exist in the namespace ProjectName (are u missing an aseembly reference)
so i dont know how can i get rid off from that error
|
|
|
|
|
I developed one application in .Net with Sql Server2005 Database.I create a .EXE file to deploy in client sytem.Here to run application the Framework is necessary in Client System,in such a way sql Server have any limited files are necessary or complete sql server database installed.
Just send u r views
|
|
|
|
|
sai259 wrote: Here to run application the Framework is necessary in Client System
Yes, you would need the .Net framework (Didn't you read this in the first chapter of the book?)
You can see a lot of articles here [^]to learn how to deploy Windows Apps.
sai259 wrote: in such a way sql Server have any limited files are necessary or complete sql server database installed.
Depends on your requirements, the number of users, your database size etc.
You may also have a look at MSDE[^]
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
In Client/Server Environment, i want to send/receive data through winsock (inhereted from vb6)
the method so far i know is: winsck.SendData (data)
and WinSck.GetData(data)
My question is, How can i get assurance that my winSck.SendData(data) send data to Server.
2. On Server, WinSck_dataArrival event is not triggering.
Help Please
|
|
|
|
|
1) make sure the server and the client is in the same lan.
2) make sure you have the right IP.
3) make sure the server bind the right port, or auto system port.
and the sockt in client, have tried connect the sever.
ok , it's a long time that i hav't use socket to write web program.
what i said, just give you a suggest.
modified 27-May-14 5:33am.
|
|
|
|
|
dear all,
i have question,about my code have problem....
how do I know if this dbf file or not, with a different extension, but it is a dbf file
example:
"12345.bck"
file above is actually a dbf file, which just changed its extention.
i am develop using C#....
please all,help me
|
|
|
|
|
I imagine if you try to connect to it as if it was a dbf file, you'd find out soon enough. Beyond that, you could look at the file format to see if there's some marker bytes you could read and examine.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
i am sory christian,
I do not find your suggestion on the blog..
clearer please...
|
|
|
|
|
I don't mention it on my blog, because it's not a bug in Microsoft. It's just common sense. I can't make it any clearer.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
As CG suggested connect to it and see if it fails. You can get connection information here[^]
|
|
|
|
|
|
Hi, you can check the type of the file
use:
FileStream fs = new FileStream("Your file path", FileAccess.ReadWrite, FileMode.OpenOrCreate);
StreamReader sr = new StreamReader(fs, Encoding.Default);
sr.ReadToEnd();
sr.Close();
fs.Close();
or File.ReadAllLines("Your file path", Encoding.Default);
April
Comm100 - Leading Live Chat Software Provider
modified 27-May-14 21:58pm.
|
|
|
|
|
Hi,
Please can anybody tell me how to post data from a windows application to a webpage.
thanks in advance.
|
|
|
|
|
vnr wrote: how to post data from a windows application to a webpage.
Can you please explain your requirment in details ? What do you mean by Post Data ? You are looking for some thing HTTPPost or any kind of web service ?
Abhijit Jana | Codeproject MVP
Web Site : abhijitjana.net
Don't forget to click "Good Answer" on the post(s) that helped you.
|
|
|
|
|
Hi,
Thank you for your reply .I have an application from which I need to (http post) send the date to a website every day .I will configure that application as a service and it will fetch the data from databse and send the data to a website url ,in that website page i will write the code to store the information which i got .
So i have to write the code to post the data from my service to a website page.
|
|
|
|
|
Is the webpage one you're writing, or one you hope to control ? The best way is to use a webservice.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
|
Hi,
I am working on building a C# Winforms application which will allow me to login to a forum or site and perform certain tasks. I am stuck at the very 1st step. I cannot login to the forum. Here is what I have tried so far,
the Login button has the following code :-
try
{
Uri uri = new Uri("http://www.thinkdigit.com/forum/login.php");
string data = "vb_login_username="+userid"&vb_login_password="+password;
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri);
request.Method = WebRequestMethods.Http.Post;
request.ContentLength = data.Length;
request.ContentType = "application/x-www-form-urlencoded";
StreamWriter writer = new StreamWriter(request.GetRequestStream());
writer.Write(data);
writer.Close();
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
StreamReader reader = new StreamReader(response.GetResponseStream());
string tmp = reader.ReadToEnd();
response.Close();
richTextBox1.AppendText(tmp);
}
catch (Exception ex)
{
textBox3.Text = ex.ToString();
}
Thats what I scrounged up after google busting and visiting so many forum posts. Unfortunately this does not seem to log me in the forum. I am checking the HTML generated content in t my richtextbox control and there's the login fields there still. Which means it didn't login.
I checked the login page.
and these are the contents there
<form name="loginfrm" id="loginfrm" action="login.php?do=login" method="post" onsubmit="md5hash_2(vb_login_password, vb_login_md5password, vb_login_md5password_utf, 0);">
<input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="User Name" onblur="myUnTip();" onmouseout="myUnTip();" onfocus="if (this.value == 'User Name') this.value = '';myTip();" />
<input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" />
<input type="submit" class="button" value="Log in" tabindex="104" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." accesskey="s" />
those are the relevant parts IMHO
so I am filling up the username field, filling up the password, posting to the login.php page with the data ...what am i mising out ?
Also I have another query. Is there a way to load the response , as in HttpGetResponse in a webbroswer control ? If I am login in to the forum, then it would be nice to have the logged in page loaded in my webbrowser control!!
Any Help Would be appreciated.
thanks a bunch folks for your time!!
modified on Wednesday, September 9, 2009 3:57 AM
|
|
|
|
|
Can I get some help here please ?
|
|
|
|
|
Hello All...
I am developing an application i.e. Development of a Network Management Tool
which will have tools like ping,tracert..etc
In the end I have to generate a Network diagram of the pinged nodes.
I just simply have no idea on how to generate this..
please help
|
|
|
|
|
Well, you could start by reading the guide on how to ask questions. Your question is not urgent. It won't change our lives at all if you fail in this task. You should choose a subject that reflects the task, not your lack of preparedness.
You draw a diagram by handling a paint event, and writing code to draw whatever it is you want to represent. I'd imagine I'd do it by having a base class for all objects that can be drawn and having a collection of them, which all draw themselves in the paint event of the main form. Of course, you'd still need to write code to position them properly.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|