|
Hi,
How can i identify the message end in a socket communucation
eg:
when a client send byte[] to another client, the message went part by part. In the client side how can i identify the message is end. If the message is recived fully then i need to do next function.
Thankyou
YPKI
|
|
|
|
|
A lot like strings, either send the size of the message prior to the message so the receiver knows how much to read, or use some sort of delimter to mark the end of the message.
Regards,
Rob Philpott.
|
|
|
|
|
|
Dude, I don't have a clue what you're on about.
Regards,
Rob Philpott.
|
|
|
|
|
open project a class library
in class library---
public classlibrary
{
public void getfromdll(string name)
{
//display name
}
}
build -- u can get the dll from bin folder
in your application reffer the dll.
create an object of classlibrary..
call
getfromdll("Hi");
|
|
|
|
|
Once you've added a reference to the dll in your project, all you need to do is use the correct namespace(s), class(es) [instanciating if necessary] then you'll have access to all the methods etc you wrote.
girishsatya wrote: hWnd
What on earth has a hwnd got to do this?
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) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
5 for deciphering what the bloody hell he was talking about.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
LOL
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) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
I'm a very new C# programmer. I have two form (frmMDI and frmLogIn) when running the project, frmMDI form starts firt with some menu items are disable. But when I click another enable menu then frmLogIn comes. My question is HOW DO I ENABLE MENU ITEMS ON FRMMDI FROM FRMLOGIN?
Thanks
Visoth
|
|
|
|
|
Raise an event in your LogIn form that the MDI form subscribes to.
using System;
using System.Windows.Forms;
public partial class FormLogIn : Form
{
public event EventHandler LogInVerified;
public FormLogIn()
{
InitializeComponent();
btnOK.Click += new EventHandler(btnOK_Click);
}
void btnOK_Click(object sender, EventArgs e)
{
OnLogInOK(EventArgs.Empty);
Close();
}
protected virtual void OnLogInOK(EventArgs e)
{
EventHandler eh = LogInVerified;
if (eh != null)
eh(this, e);
}
}
using System;
using System.Windows.Forms;
public partial class FormMDI : Form
{
public FormMDI()
{
InitializeComponent();
mnuLogIn.Click += new EventHandler(mnuLogIn_Click);
}
private void mnuLogIn_Click(object sender, EventArgs e)
{
FormLogIn formLogIn = new FormLogIn();
formLogIn.LogInVerified += new EventHandler(formLogIn_LogInVerified);
formLogIn.ShowDialog();
formLogIn.LogInVerified -= formLogIn_LogInVerified;
formLogIn.Dispose();
}
void formLogIn_LogInVerified(object sender, EventArgs e)
{
}
}
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) Why are you using VB6? Do you hate yourself? (Christian Graus)
|
|
|
|
|
You want to avoid stuff like that in general. Having one form control the menu of another breaks some basic rules of abstraction.
A better way would be to create an object behind the scenes which has your application state and reference that from each form. This object could raise events that forms could subscribe to which would alter the menus. This way, you can use your forms independently of one another.
Regards,
Rob Philpott.
|
|
|
|
|
Hi,
How can transfer a file to another client in the network using socket?
Thankyou
YPKI
|
|
|
|
|
see this link[^]
hope it helps
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
failing to locate this error were can l find it
{System.Web.HttpException: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'UserId'.
at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName)
at System.
|
|
|
|
|
it means your binding source doesn't have column/property named UserId.
hope it helps
dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support
|
|
|
|
|
We have an application developed in C# with WPF(.NET Framework 3.0)
A main window with glass border,
and a child window contains WebBrowser puts on main window center.
--------------------------------------------------------------
WPF main window-> Child window-> frame control -> Page -> WindowsFormsHost -> WebBroswer
--------------------------------------------------------------
because we used .NET FW 3.0, so we have to puts WebBrowser in WindowsFormsHost,
and it can't show if we set the window AllowTransparency to true.
when user click 'start menu/shutdown', then Windows XP background fade to gray,
then we saw, the main window hide, but page window still display on the screen.
we have already set page window's owner to main window. it still have this issue.
so, i want to know, how to capture the Windows XP background fade to gray event?
Glad to discuss with you and best wishes.
|
|
|
|
|
HI All,
within few days i will finish my first project (i'm a novice ) so i need to install this software on 5 computers.I develop my project in WinForms(C#) with NET.Framework 3.5 SP1 so when i create the file app.exe after i will install it on the computers and at the point i need some suggest/advice 'cos 5 computers did not get Net.Framework 3.5 Sp1 and can not connect online to download the Net.Framework 3.5 Sp1 so i ask how i can install my software on these computers?
What i need to check in the the Prerequisites when i publish my software?
If you need more info don't hesitate to ask me i will reply as soon as possible.
Nice Regards,
|
|
|
|
|
Hi,
you could use a tool to generate a MSI-file, that will install your application and its prerequisites (using a bootstrapping-mechanism). Have a look at the WiX toolset (http://wix.sourceforge.net/[^]).
If you have only 5 computer to install on, you can do it manually. Download the .NET Framework 3.5 SP1 Redistributable *(there is also a version without the need to go online - http://download.microsoft.com/download/2/0/e/20e90413-712f-438c-988e-fdaa79a8ac3d/dotnetfx35.exe[^])
Then install your app by copying all files from your bin\Release folder.
If you use a database, you have to install the server too.
Hope this helps.
Regards
Sebastian
* Needs the Windows Installer 3.1
|
|
|
|
|
HI SeMartens,
thanks to reply me,
i will follow your second option ,i'm downloading the .NET Framework 3.5 SP1 Redistributable and istall it manually but i need to understand better.
When i create the app.exe in the Publish section of Visual Studio(2008 Sp1) and Prerequisites i need to check in the Windows Installer 3.5 and .NET Framework 3.5 SP1 or i will not check in ?
After when i will install my app on the computer i need to install first the .NET Framework 3.5 SP1 and Windows Installer 3.1 and finally my app?
Sorry for my poor knowledge it is the my first time i develop and install an app.
|
|
|
|
|
The Windows Installer 3.1 is the program that will handle the installation of applications. The installer of .NET Framework 3.5 SP1 needs the Windows Installer 3.1. If it is not present on the system, the .NET Framework will not be installed.
Do the following steps to install your app.
1. Copy the .NET Framework 3.5 SP1 install file to the pc
2. Execute it to install the framework
3. If this installation of the framework fails because of a missing Windows Installer 3.1, you have to download the file from the web and install the Windows Installer.
4. Go to Visual Studio, select "Release" from the "Configuration Manager" (must be in the toolbar)
5. Build your application
5. Copy the content of your bin\Release folder of your solution to the pc where you want to use the app.
6. Run your app.exe -> if everything is correct your app will run now
|
|
|
|
|
Hi Se Martens,
your way so clear within few days i will try it as you told me and i will let you know how is the result.
Thanks so much for your support
Have a happy day
|
|
|
|
|
HI Martens,
that's all right ,i follow you directory and i could install the software so well.
Thanks for your support.
Have a nice day.
Bye
|
|
|
|
|
Hi,
I want to copy a HTML link to clipboard as a clikable element how to get this done?
Your Desktop in the Cloud
When i copy this into Clipboard using C# it is returning me a plain string but i want to see
http://www.mycloudbuddy.com
Thanks
|
|
|
|
|
You can use Linklable in Winform.
|
|
|
|
|
Hi
TreeListView[^]
Hi
I am using treelistview in my project, but it is not properly working in MS windows 2008 X86.
I am getting error in before & after label edit. In System.Windows.Forms.TreeListView.dll
System.Windows.Forms.TreeListView.WndProc (ref System.Windows.Message m = {msg = )
WM_REFLECT & WM_Notify
Line 896.
Can you give some guideline in this regards?
Thanks
hiren shah
|
|
|
|