|
Is your .MDB file part of the project?? Click on the file and check the Properties window. Does the "Copy to Output Directory" option say "Copy always"?? Change this to "Copy if newer".
The database in the bin\Debug folder is getting overwritten with the original copy of the .MDB file in your project folder, thereby overwriting any changes your code makes to the Debug copy of the database.
|
|
|
|
|
hi all,
i have written a service in vb.net which repeatedly processes messages in the messagequeue. i send a message from messagequeue to a server through a gateway and wait for the response. I am using TCP Client that listens to a port, to send message to the gateway(an application that interacts with the server)and receive response from the server through the gateway.
I am able to send and receive message from the gateway. The time taken to send message to the gateway is quick(1 or 2 seconds). but the response i get from the gateway takes a longer time. around 40 seconds.
The server part of coding is done by another person and i dont have permissions to that side.
How can i receive a faster response? is there anything i can do to improve it or should it be done in the server side?
Thanks in advance.
Regards
Anuradha
|
|
|
|
|
The problem is on the server side.
Stephen Lintott Bsc IT (RAU)
|
|
|
|
|
anu81 wrote: How can i receive a faster response? is there anything i can do to improve it or should it be done in the server side?
You can't do anything to make it faster since you don't have access to the server-side code. You're completely at the mercy of the guy developing the server-side app.
|
|
|
|
|
i am programmer of vb.net 2005 since 2 yrs.i hv to hold data in datagridview in the form of serialwise like
i hv a table with column of stno data is set as
stno
12345
12346
12347
12348
12349
12350
21548
21549
21550
total 9 stno
i want to hold data in datagridview. if user take 8 row then it will automatic pick the stno
in first row 12345 to 12350 in one line
in second row 21548 to 21550
when i fire the code it hold only first row.
help
thanks in advance
regards
lucky
|
|
|
|
|
If I understand correctly you need a pivot table
Steve Jowett
-------------------------
It is offen dangerous to try and see someone else's point of view, without proper training. Douglas Adams (Mostly Harmless)
|
|
|
|
|
Please use a more descriptive subject line instead of the drab Plz help
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi all I've got an app that receves a XML file and then load the data in the file into sharepoint the code is as follows.
Dim i As Integer
Dim str As String = ""
'For i = 0 To XMLDocument.Length
' str = str & XMLDocument.ToString(i)
'Next
str = System.Text.UnicodeEncoding.ASCII.GetString(XMLDocument)
Dim fs As New FileStream("c:\text.xml", FileMode.Create, FileAccess.ReadWrite, FileShare.Delete)
fs.Write(XMLDocument, 0, XMLDocument.Length)
fs.Close()
fs.Dispose()
Dim xml As New XmlDocument
'' Dim re As StringReader = New StringReader(str)
xml.Load("c:\text.xml")
Dim Site As SPWeb = New SPSite(SitePath).OpenWeb()
Dim tw As SPListItem
Dim UpdateList As SPList = Site.Lists(ListBoxToUpdate)
tw = UpdateList.Items.Add()
Dim newFolder As SPFolder = Site.GetFolder(ListBoxToUpdate)
Dim destFolder As SPFolder = Site.GetFolder(ListBoxToUpdate)
Dim spf As SPFileCollection = destFolder.Files
For Each node As XmlNode In xml.LastChild
Dim ArrByte As Byte() = System.Text.Encoding.ASCII.GetBytes(node.Attributes(2).Value)
Dim strImageByte As Byte() = ArrByte
'spf.Add(node.Attributes(0).Value & "." & node.Attributes(1).Value, strImageByte)
tw.Attachments.Add(node.Attributes(0).Value & "." & node.Attributes(1).Value, strImageByte)
Next
Dim Title As String = ""
'Title = XmlFiles(x).ToString
'Title = Title.Substring(Title.LastIndexOf("\") + 1, XmlFiles(x).ToString.Length + 2 - Title.LastIndexOf("\"))
tw("Title") = "ChargeOutInvoiceNotIndexed"
tw.Update()
tw = Nothing
'spf("Title") '= "ChargeOutInvoiceNotIndexed"
The problem comes in the tw.update call the following exception is being thrown.
"To add an item to a document library, use SPFileCollection.Add()"
Does anybody know of a way around this.
Stephen Lintott Bsc IT (RAU)
|
|
|
|
|
Stephen Lintott wrote: tw.Update()
Just a guess but this seems to be updating the listitem rather than adding a file to the collection. You may have to add the file to the filecollection (looks like you are doing that) and at the end refresh the list from sharepoint.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello
How can I send multiple messages using "GsmCommunication.dll" And how to use "retry delay" and "max attempts" parameters?
When I do like sending one message this error occures:
"No data received from phone after 4500 ms"
thanks
|
|
|
|
|
Hello All,
I have this simple question. When you write a application in VB 6. The application begins to execute from SUB MAIN.
When you develop a form application using VISUAL STUDIO.NET, I dont see the SUB MAIN in the FORMS1.VB or anywhere else in the project. Is this SUB MAIN something created automatically by VB.NET and then compiled?
I also create a module that have sub main() method but when I go the proprties of the project I'm unable to see the sub main in application startup drop down.
Note: When I uncheck the check box "Enable Visual Styles" then I'm able to see the submain in dropdown ... if possible also let me know what that means???
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
You will have to google the subject. With VS2008, a new class file is automatically created with the sub main procedure, but you are definitely able to do so in pre-VS2008 editions. Be sure you look into the correct syntax for the method as well as their is an attribute that is attached to the main procedure.
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 Blog
|
|
|
|
|
Thanks for reply,
But I'm asking about VS.NET 2005
Regards
Pankaj Joshi
If you want to shape your dreams into reality, please wake-up...
|
|
|
|
|
The sub main procedure WILL work with VS2003, however VS2005, VS2008 simplify the process by creating a separate class file to divide the work. Google the topic for VS2003, but it WILL work.
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 Blog
|
|
|
|
|
How can I hide Secret Key and Initialization vector string from .net decompiler like Reflector.net? Anybody who has the decomplier and the application's exe or dll can read my string and can decrypt the data file.
Thanks & Regards...
Amit
|
|
|
|
|
Encrypt the keys externally and use the encrypted version in your code. You'll, of course, have to supply code in your app to decrypt the keys so they can be used. So, no matter what you do, you cannot completely hide what you're doing from Reflector. All you can do is slow down the person looking at your code.
|
|
|
|
|
Hello,
I have the following. I have made a Visal Basic 2008 application that needs to be used by serveral people.
The application is connected for access thru a Touch Screen.
The problem i have i that some users are clicking on the Start button or other things outside tha apllication window.
i can set that the application uses a bigger form but still the start button , Taskbar is still there .
I am searching for a solution that only my application can be accessed, when entering the Exit button with a Code than the windows has to operate normal for maintenance.
Is there Anybody that can give me a solution
Thanks
Best regards.
Didier
|
|
|
|
|
open the task manager ctrl-shift-esc, note that it covers the start button if the window mode is normal (exposes the button when maximised) so:
Set your form to normal, topmost and the size to the same as the screen size - 1mm.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hello,
Thanks for the fast answer.
It just not 100% clear for me.
I use also Windows Vista, i dont know if i told this.
Is there nothing possible directly from VB to force a full screen withut start and taskbar ?
This would be more easy i think.
thanks again.
Didier
|
|
|
|
|
DCAUB wrote: Is there nothing possible directly from VB to force a full screen withut start and taskbar ?
No. This is normally done through Group Policy. Get the Resource Kit for Windows XP and/or Vista and you'll find everything you need to setup in policies to support a "kiosk mode".
|
|
|
|
|
Hello,
Thanks for answering my question.
Can you just tell me , the Vista resource kit do i need to buy this or can i download this for free ? I have searched teh Microsoft download site but i didnt find Resource kit Vista.
Thanks
DCA
|
|
|
|
|
Buy it. There is no free download.
DCAUB wrote: I have searched teh Microsoft download site but i didnt find Resource kit Vista.
Your searching in the wrong place. Amazon[^]
|
|
|
|
|
Hi,
I wanna use threading in my application for doing this i used this code
<br />
Me.thread1 = New Threading.Thread(AddressOf Me.process1)<br />
Me.thread2 = New Threading.Thread(AddressOf Me.process2)<br />
<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
Me.thread1.Priority = ThreadPriority.Highest<br />
Me.thread2.Priority = ThreadPriority.Highest<br />
<br />
Me.thread2.Start()<br />
Me.thread1.Start()<br />
End Sub<br />
<br />
But The problem is that when one process is completed then other process is started while i wanna start both process simultaneously...
How can i do this i have searched in google but nothing find benificial
Thanks with anticipation
Unless u don't give ur hundred percent whatever u r doing till there is no result of ur work...
|
|
|
|
|
I can't see anything wrong with this bit of code. Try calling Thread.Sleep in one or both of the Threads and see what happens. This makes the Thread give way to other operations for a certain amount of time before continuing. Also, remember that unless you have multiple CPUs, a computer only ever appears to be doing multiple things at once, but instead only does one thing at a time, rapidly switching between tasks to give the illusion of multitasking. It might just be that Windows' task scheduling ends up with them being executed on at a time. You could also try lowering the Priority of both the Threads. Do they really need to have Highest priority?
Tony
|
|
|
|
|
The code looks fine, how are you sure they are not starting at the same time?
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|