I don't know your meanning. I think that must use JavaScript. You can control a property of display of the selectlistbox, Or Remove Object and Create Object
Hellin
Posts
-
Dynamically clear selected items of itembox -
asp .net send mailusing System.Web.Mail; /*****************************************************************/ MailMessage mail = new MailMessage(); mail.To = "Your Email Address"; mail.From ="hellin_zhang@hotmail.com"; mail.Subject = "hello, buddy" mail.Body = "Some text goes here"; mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //basic authentication mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "hellin_zhang"); //set your username here mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "123456"); //set your password here SmtpMail.SmtpServer = "smtp.hotmail.com.com"; try{ SmtpMail.Send( mail ); }catch(Exception ex){ }
-
how can i get the computer name&ip in local network?not code Error ,I say that ,only can search my own computer name &ip ,so i say I fail to !
-
how can i get the computer name&ip in local network?see: // TODO: Add extra validation here CString strTemp; struct hostent *host; struct in_addr *ptr; // To retrieve the IP Address DWORD dwScope = RESOURCE_CONTEXT; NETRESOURCE *NetResource = NULL; HANDLE hEnum; WNetOpenEnum( dwScope, NULL, NULL, NULL, &hEnum ); WSADATA wsaData; WSAStartup(MAKEWORD(1,1),&wsaData); if ( hEnum ) { DWORD Count = 0xFFFFFFFF; DWORD BufferSize = 2048; LPVOID Buffer = new char[2048]; WNetEnumResource( hEnum, &Count, Buffer, &BufferSize ); NetResource = (NETRESOURCE*)Buffer; char szHostName[200]; unsigned int i; for ( i = 0; i < BufferSize/sizeof(NETRESOURCE); i++, NetResource++ ) { if ( NetResource->dwUsage == RESOURCEUSAGE_CONTAINER && NetResource->dwType == RESOURCETYPE_ANY ) { if ( NetResource->lpRemoteName ) { CString strFullName = NetResource->lpRemoteName; if ( 0 == strFullName.Left(2).Compare("\\\\") ) strFullName = strFullName.Right( strFullName.GetLength()-2); gethostname( szHostName, strlen( szHostName ) ); host = gethostbyname(strFullName); if(host == NULL) continue; ptr = (struct in_addr *) host->h_addr_list[0]; // Eg. 211.40.35.76 split up like this. int a = ptr->S_un.S_un_b.s_b1; // 211 int b = ptr->S_un.S_un_b.s_b2; // 40 int c = ptr->S_un.S_un_b.s_b3; // 35 int d = ptr->S_un.S_un_b.s_b4; // 76 strTemp.Format("%s --> %d.%d.%d.%d", strFullName,a,b,c,d); AfxMessageBox(strTemp); } } } delete Buffer; WNetCloseEnum( hEnum ); } WSACleanup(); //******************************************* I try ,but fail ! thanks all the same !
-
how can i get the computer name&ip in local network?not only my computer name & ip ! all in then local network .(some groups in the network)
-
how can i get the computer name&ip in local network?hi , how can i get all of the computer name&ip in local net work .I want to get other computer names&ip (All) ? how can i do ? do you understand me ? Can you help me ? thank you !
-
how can i get all of the IPs in local network ?hello, i want to know how can i get all of the IP in my local network . i say that others 's IP and COMPUTER NAME ,I want to get . I get some code ,but they don't work well,there are some errors . waiting your help! thanks
-
How can I get the other IP adress in my local netwok?Hi , how can i get the IP adresses and machine names of other computers in my local network ? I come from china ,so my english is very poor ? Thank you very much ! :)
-
come into possession of the operating systemYes ,All right .thanks .
-
come into possession of the operating systemWhen my application is runing ,other aplications of in Windows 2k don't work (when my application runing ,my application has a appropriation the operating system itself )
-
ExistFileshello, i didn't know that there is a func of ExistFile ,and how to use . thank you ;)
-
Dlls:Could you help me ? (I come from china .)Hi,buddy Sorry ,i will go to the class.I must leave . see you bye hellin
-
Dlls:Could you help me ? (I come from china .)Hi, buddy That all right .a Func of DLLs for PB must be de Declared like this "__stdcall" .Others don't work .do you understand me ? My craft brother. Thank you very much . Hellin:omg:
-
Dlls:Could you help me ? (I come from china .)Hi ,Judd Thanks a lot .What is the "__stdcall" different from the "__declspec" .I am trying ...I think my enlish is very bad .are you American? Good luck:~ Hellin
-
Dlls:Could you help me ? (I come from china .)Could anyone help me ? I really really come from china.:suss:
-
Dlls:Could you help me ? (I come from china .)Hi, How can I export a Func ,object and so on in Dlls .I want to create a Dll for PB .i think it's very easy to you,but it's very hard to me ,because i come from china ,my mother lauguage is chinese . can anybody help me ? give me an example .:confused: Thanks Hellin