|
Hi. I use the Enum statement regularly, and I'm wondering if there's a similar statement where I can change the member's values? Because the Enum's members get declared as constants.. Please help me
----
Dim Sleepy as Boolean = True
If Me.Sleepy = True Then
Goto Sleep
End If
----
|
|
|
|
|
Nah - how about a Generics.Dictionary(Of String, Integer) ?
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Or you could just make your own class with public variables and a public enum.
|
|
|
|
|
I want to learn crystal reports I mean how to show the table contents of database through crystal reports.Can u plz send me the steps to do that.
|
|
|
|
|
|
Hello,
Please help me to convert the belowing code to VB.NET.
Design event object
The event object will have a custom interface, since that is what WinFIOL uses to call the object.
class CWFEvent : public IWFEvent
{
int iCount;
IWFChannel * pIWFChannel;
DWORD dwThreadID;
void ReadPrintout(void);
public:
CWFEvent(IWFChannel *chnl);
virtual ~CWFEvent() { }
STDMETHOD(QueryInterface)(REFIID iid, void ** ppvObject);
STDMETHOD_(ULONG, AddRef)(void);
STDMETHOD_(ULONG, Release)(void);
STDMETHOD(Notify)(INT event, BSTR eventstr);
};
Implementation
Most of the code below is standard and can be found in many books about COM. The constructor takes a pointer to IWFChannel to be able to call methods in this interface.
CWFEvent::CWFEvent(IWFChannel *chnl)
{
iCount = 0;
pIWFChannel = chnl;
dwThreadID = GetCurrentThreadId();
}
STDMETHODIMP CWFEvent::QueryInterface(REFIID riid, void ** ppv)
{
if ( riid == IID_IUnknown )
*ppv = (IUnknown *) this;
else if ( riid == IID_IWFEvent )
*ppv = (IWFEvent *) this;
else
{
*ppv = NULL;
return E_NOINTERFACE;
}
((IUnknown *) *ppv)->AddRef();
return S_OK;
}
STDMETHODIMP_(ULONG) CWFEvent::AddRef(void)
{
return ++iCount;
}
STDMETHODIMP_(ULONG) CWFEvent::Release(void)
{
if ( iCount == 1 )
{
// make sure message loop is terminated:
PostThreadMessage(dwThreadID, WM_QUIT, 0, 0);
delete this;
return 0;
}
return --iCount;
}
STDMETHODIMP CWFEvent::Notify(INT event, BSTR eventstr)
{
if ( event == WFEVENT_PRINTOUT )
ReadPrintout();
return S_OK;
}
|
|
|
|
|
You can go to
http://www.developerfusion.com
................
|
|
|
|
|
I don't known C#,and there I got some error..
|
|
|
|
|
hi all,
i create an application to sending email's. this is the code i used.
Dim mailmsg As MailMessage
SmtpMail.SmtpServer = "127.0.0.1"
mailmsg = New MailMessage
mailmsg.To = txtFrom.Text
mailmsg.From = txtTo.Text
mailmsg.Subject = "demo"
mailmsg.Body = "Its a simple test"
mailmsg.BodyFormat = MailFormat.Text
SmtpMail.Send(mailmsg)
But i got an error 'Could not access CDO.Message object'
Please help me.
Thomas
|
|
|
|
|
Two possible reasons:
1. cdosys.dll is not installed on your machine. Usually it comes along with Outlook.
2. Your local SMTP server is not running.
_____________________________________________________________________________
I don't expect too much, all I want is your vote for Halbsichtigkeit.
|
|
|
|
|
I am using an application which is sending data to a web service (abt 256 KB) and after 1 min or so i am getting "Operation Time-out " exception error
Is there a limit to how much data we can send to web service?
I am not using any timer or any thing.
What can be the reason.
Need it urgently.
|
|
|
|
|
You should adjust the Timeout argument of the method/function you are using to send the data.
----
Dim Sleepy as Boolean = True
If Me.Sleepy = True Then
Goto Sleep
End If
----
|
|
|
|
|
Can anyone help me I want to make application that can convert from html to xml, or xml to html, asp to asp.net or asp.net to asp
using vb.net only.
Thanks
................
|
|
|
|
|
What specifically is it that you would need help with?
---
b { font-weight: normal; }
|
|
|
|
|
I want to convert a code from html to xml...
................
|
|
|
|
|
|
Socheat.Net wrote: Can anyone help me I want to make application that can convert from html to xml, or xml to html
Try to check this website[^] and try to find a document or software development kit (SDK) which might give you some sample code to integrate into your application.
Socheat.Net wrote: asp to asp.net
Try to find the whitepaper in this article[^].
Socheat.Net wrote: asp.net to asp
I never found the resource about this conversion too. I'm sorry
|
|
|
|
|
I am just wanting to know two things> I have been trying to breate a button which would add this text: "You clicked button b" without replacing ALL text in rich text box. I want the text to be entered where the cursor is on text box. How would you do this?
Also I want to add quotes like this "" to a text box without removing any text in the text box, same as I wrote above. But every time I do this to test: HTMLRT.Text = ("""") I get errors. What is it?
In the end we're all just the same
|
|
|
|
|
Hello there!
try out this piece of code..!!
<br />
MyRichTextBox.Text = MyRichTextBox.Text.Insert(MyRichTextBox.SelectionStart, """CodeProject""")
So this will Add the text "CodeProject" to where the location of cursor is in Richtextbox control.
regards
Mubashir
|
|
|
|
|
Thank you! That will get my project done faster now.
In the end we're all just the same
|
|
|
|
|
I have 1 application, i did deploment it and then burn it to CD, I want when the cd autorun i want to check machin if found dot netframework just install my application only.
I have dot netframework already in CD
Thanks
................
|
|
|
|
|
Socheat.Net wrote: I have 1 application, i did deploment it and then burn it to CD
Do you build an installer to create a setup file for your application. If you need to build an installer for your application try to check this article[^].
Socheat.Net wrote: I want when the cd autorun i want to check machin if found dot netframework just install my application only.
http://www.codeproject.com/dotnet/dotNetInstaller.asp[^]
Note: to make your cd autorun, you need to create a file name Autorun.inf (this file must be locate on the root of CDROM). And has the following structure:
[AutoRun]<br />
; This is the comment line.<br />
; Provide the path to your setup application.<br />
; Look at the below example.<br />
Open = Setup.exe
|
|
|
|
|
If like u said, when i insert cd to cdrom it will install my applicaion, unfortunately if system not found dot net framework, it can not install, so that why I want to check system machine first
................
|
|
|
|
|
Socheat.Net wrote: If like u said, when i insert cd to cdrom it will install my applicaion, unfortunately if system not found dot net framework, it can not install, so that why I want to check system machine first
No problem, before I also have a concern like you too. If you don't have dot net bootstrapper, when you install your application, the operating system will prompt you install dot net framwork by manually. That is not a good solution.
With dot net boot strapper, when your application install it will check the target machine whether it has dot net framework installed or not. If not the system will prompt you or user to install dot net framwork first and will install your application automatically after you/user install dot net framework.
Note: I'm not sure about the dot net bootstrapper in code project because what I have used is the dot net bootstrapper that provide by microsoft. May be i need to check my CDROM at home to check the source address where i get this file from.
Socheat.Net wrote: when i insert cd to cdrom it will install my applicaion
It will not install your application automatically, it just start the wizard to install an application. So you or user can cancel an installation any time.
|
|
|
|
|
Thank, i hope to hearing from you soon.
................
|
|
|
|