|
thanks
pls can you look at that code an tell me how to invoke it if possible with sample code the code is a method inside a project do i need to invoke the entire project
|
|
|
|
|
Ebube wrote: can you look at that code an tell me how to invoke it if possible with sample code
For the right price. Thats what I do for a living
Seriously, if someone else writes your code then you never learn anything. There are plenty of sample windows service applications that you can use for learning.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
i understand can you give a link to the sample application you think can solve my problem
the one i have just write entry to eventlog
|
|
|
|
|
hi all,
how can i use Office 2007 Chart component on a Windows Form ?
however i find some link, but it is related to Office XP
anybody have idea or link that is helpful for me ?
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
To use an Office 2007 feature, you will have to use Visual Studio Tools for Office (VSTO). Another option would be to use Dundas or another charting API.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my homepage Oracle Studios
Discounted or Free Software for Students:
DreamSpark - downloads.channel8.msdn.com
MSDN Academic Alliance - www.msdnaa.com
|
|
|
|
|
Hi all
I have one problem.
I have changed debug instead of realese in both options in configuration manager.
now i haven't got configuration manager in Build menu
what i do?
I am new in vb.net
pls help me
Thanks
monika
|
|
|
|
|
In which version do you wok now.
Regards
Anubhava Dimri
anubhava.prodata@gmail.com
9250168195
|
|
|
|
|
hi in your vs IDE select following
Tools-options-Projects and Solutions-General
select the "show advanced build configuration" option at right hand side and click Ok button
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
My Company
|
|
|
|
|
Hello every one..
I have a VB.net application in which i have some common functions in a Module.
Now the issue is...
i call a function (say func_mod()), in the module from a form (say frmMain).
There is a msgbox displayed in func_mod(), on click of "Ok" of the mesgbox instead of going to the next line of the func_mod(), the control gets to frmMain_activate, then to the next line of func_mod.
Is there any way that i can make it sure that the function gets executed first and then the control moves to form activate
Regards
Nishkarsh
|
|
|
|
|
No. As you are using a message box, you are returning control to the windows system, so any event may occur.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi All,
I m using VC++ with backand MSAccess and I m use to store the data by using FileStream AND ODBC.
whether i m getting the data by table and the table is blank then the
record accept the garbaze value.
Pls its needful.
Thanks in Advance
Anubhava Dimri
anubhava.prodata@gmail.com
9250168195
|
|
|
|
|
Member 4542257 wrote: I m using VC++
So that's why you asked in the VB.NET forum? Ask in the C++ forum instead.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
It's Not answare of my query.
Pls come to the point if u have its answare pls send.
|
|
|
|
|
Member 4542257 wrote: It's Not answare of my query.
Pls come to the point if u have its answare pls send.
Of course it's not. If you post in the wrong forum you are not very likely to get any answer to your question. I'm just trying to help you post in the correct forum.
Also, if you lay off the txtspk you are more likely to get an answer once you post in the correct forum. You have a full keyboard in fron of you, there is no reason not to use it.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
You have not any answare of my question.
You r not software programmer u r just for time pass.
Enjoy it.
|
|
|
|
|
Member 4542257 wrote: You have not any answare of my question.
Ok, let's see if I can make it clear for you.
Of course I haven't answered your question. You have posted the question in the wrong forum. Answering the question in the wrong forum might help you, but other people will hardly find the answer when looking for it, as it's in the wrong forum. One of the main purposes of a forum is that other people than the ones asking the question may benefit from the replies. You should post the question in the correct forum, that way you have the best chances of getting an answer.
Member 4542257 wrote: You r not software programmer u r just for time pass.
I spend quite some time here helping people with their questions. The ones that post their questions in a forum that has at least something to do with their questions...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
<rant>
I think its people like you who annoy most people. Not only have you asked a question about Visual C in a Visual BASIC forum, you haven't bothered to understand the first reply you got. Instead, you insulted the guy who pointed you in the right direction, by accusing him of being a time waster.
Think about it. This is a FREE forum. Nobody owes you anything. Your response indicated that you have recieved an improper service.
What your initial reply was telling you to do was re-ask your question to the Visual C forum. In there, people who know Visual C may be able to answer your question.
I used to get annoyed by people just repling with "Use Google"... I now see why. If you cant even be bothered to post your question in the right forum, and then you insult the guy who told you where your question may be answered properly... then I dont think anybody should bother helping you...
Now, go along, and USE GOOGLE.
</rant>
|
|
|
|
|
Hai all,
i had one xml table
<pid>1
<pname>xyz
<price>$20
<pid>2</pid>
<pname>abc</pname>
<price>$50</price>
<pid>1</pid>
<pname>lmn</pname>
<price>$10</price>
here i just wanr to get the value of price in ascending order by using vb.net?
Thanks
Subbu.
|
|
|
|
|
Read your XML file into a dataset
Get the defaultview of the table into a dataview
Set the sort field of the dataview and reiterate the rows.
Alternatively you could use Linq
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello all! Is there a way in VB.NET to enable the "Show window contents while dragging" option in code? Or perhaps, to bypass it if its set to disabled? Or check its status?
Thank you for your time.
|
|
|
|
|
Hi All,
First off all, I want to THANK everyone on this site for whatever contribution they delivered. As a starting Developer ( used-to-be sysadmin) I can't even count anymore how many articles here i've read which helped me out A LOT.
But now. i'm stuck...
I've written an application using an ASync SocketClient which communicates with a server. Now that it has become clear that several applications should communicate with the same TCP server using same protocol and logic, i wanted to pull the socketclient from the app, built a dll from it and "voila".. however, I'm having a problem with Cross-Thread errors..
What i've done:
My Dll
Public Class NoctrisClient
Public Event ClientConnected()
Public Delegate Sub SimpleCallBack()
Public isConnected as boolean = false
Private endpoint as new IPEndPoint(system.net.dns.GetHostEntry("my.server.com").addresslist(0),1234)
Private SocketClient as Socket
Public Sub New()
me.connect()
End sub
Public sub Connect()
ClientSocket = New Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp)
ClientSocket.BeginConnect(endpoint, AddressOf Connected, Nothing)
end sub
Private Sub Connected(ByVal ar As IAsyncResult)
Try
ClientSocket.EndConnect(ar)
'-- Ok, we are connected
EventClientConnected()
'-- Start Receiving Data
ClientSocket.BeginReceive(RecvBuffer, 0, RecvBuffer.Length, _
SocketFlags.None, AddressOf ReceivedData, Nothing)
Catch ex As Exception
'-- Call DisconnectedUI
' Make call to raise ClientDisconnectedEvent
' EventClientDisconnected()
End Try
End Sub
'... and so on.. all code from the socketclient is ok..it worked before so...
Private Sub RaiseClientConnected()
RaiseEvent ClientConnected()
isConnected = True
End Sub
Private Sub EventClientConnected()
' Doing this here because i call these events on several places and did not wanted to keep repeating code.
Dim cb As New SimpleCallback(AddressOf RaiseClientConnected)
cb.Invoke()
End Sub
end class
So this, in a VERY short nutshell, is the socketclient component..
So far, so good.. the events are raised as they should... But ...
Then the form does something like this:
imports my.namepace.NoctrisClient
Public Class Myform
Private WithEvents Client as new NoctrisClient
Private Delegate Sub SimpleCallBack()
Private Sub HandleClientConnected() Handles Client.ClientConnected
Dim cb As New SimpleCallBack(AddressOf ConnectedUi)
cb.Invoke()
End Sub
Public Sub ConnectedUi()
Try
LblServerStatus.Text = "Connected"
Catch ex As Exception
MsgBox(ex.ToString)
End Try
End Sub
end class
So as you can see, in my form HandleClientConnected handles the event from the dll and does a callback to ConnectedUi to change the control(s) on the form..
However, I keep getting Cross-thread exceptions:
System.InvalidOperationException: Cross-thread operation not valid: Control 'LblServerStatus' accessed from a thread other than the thread it was created on.
at System.Windows.Forms.Control.get_Handle()
at System.Windows.Forms.Control.set_WindowText(String value)
at System.Windows.Forms.Control.set_Text(String value)
at System.Windows.Forms.Label.set_Text(String value)
at tp2player.FrmStandardPlayer.ConnectedUi() in D:\Development\solution\project\Forms\MyForm.vb:line 35
I've been reading a lot about it ( ok.. i admit, i don't always understand the articles either )
but i just can't see where i am going wrong ?
I've tryed different ways for callback and direct but they all keep ging errors :s (only messagebox, which doesn't care about threads anyways, works..)
Could someone please shine a little light on it ?
Many thanks !
|
|
|
|
|
controls are only available on the main thread(where all presentation takes place). since you are on a different thread it complains when you try to use something on the main thread without getting on that thread. you need to use the INVOKE command of the control that will place the assignment of the text property on the main thread. to do this, you will need to use a DELEGATE which will need the same signature that the routine has that will contain the invoke call...
this idea is like this
define the delegate
in your routine change to this
Public Sub ConnectedUi()
if LblServerStatus.InvokeRequired Then
LblServerStatus.Invoke(....) 'new instance of the delegate pointing to this routine
Exit Sub
End If
LblServerStatus.Text = "Connected"
End Sub
'Never argue with an idiot; they'll drag you down to their level and beat you with experience.' ~ anonymous
'Life's real failure is when you do not realize how close you were to success when you gave up.' ~ anonymous
|
|
|
|
|
I have problems to show images in a datagrid. I was looking for some answer and I found that if I use this code it should be work.
Dim Comm As New OleDbCommand(QPhoto, con.Con)
Conexion.Open()
Dim OledbRead As OleDbDataReader
OledbRead = Comm.ExecuteReader(CommandBehavior.CloseConnection)
Do While (OledbRead.Read)
Response.ContentType = OledbRead.Item("IDArti")
Response.BinaryWrite(OledbRead.Item("Image"))
Loop
con.Con.Close()
But, unfortunatelly it doesn't work. When I try to run this code, it asks me if I want to open or save and the both options don't do anything.
Could you help me?
I have the images in Access database and I want to display them in the datagrid with the information of each row
Please, help me I'm stressed out
|
|
|
|
|
Well, this is ASP.NET code. And it's never going to work, no. Nor could it hope to. Perhaps you need to ask in the right forums, and understand the code you're using.
A HTTP Handler to stream images is what you need.
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
I am trying to create the shortcut menu for MS Access application. I am sucessful in creating shortcut menu for all options other than "Filter For" menu option (right click).
Could you please help me how to get this option.
Thanks
KP
|
|
|
|