|
carrigart wrote: would I have to change and connection string and setup a new data source
Yes, exactly, you should modify the connection string and attach the mdf from your projects debug/bin folder. You don't have to create a new datasource, just modify the connection string.
carrigart wrote: Bit confused sorry
Nothing to be sorry about
|
|
|
|
|
Fixed it . Only took me like a day . I changed the path off my connection string. Bit of a school boy error . Well its a lesson learnt anyway.
Thanks for your help
|
|
|
|
|
You're welcome
|
|
|
|
|
This may sound daft, but have you tried it by populating a command and then setting the dataadapter.selectcommand to the command?
|
|
|
|
|
Hey gang I got a web browser that I am creating for a group that I belong to. The question is I have everything set up they way it should look. The only thing missing is the ability to block pop ups when debug before I make it a finale cut for distribution. This is my first attempt I got some help form a friend form a different forum but he is stumped as well. I hope some one can point me in to the right direction.
|
|
|
|
|
Hi!
Are you using the .NET webbrowser control? I ask because the features it provides are quite limited so implementing a pop-up blocker from it would be next to impossible. You may want to look into CSEXWB It provides a far richer set of features than the standard control and, though it's written in C#, can easily be added to your VB project.
Hope This Helps!
MrWolfy
|
|
|
|
|
Yes it is in .Net I see your point is there a tool kit that I can download? And if so could you send me the link?
|
|
|
|
|
Hi!
Sorry for the late reply. There was a link to CSEXWB in my last post, and with web browser controls being insanely complicated under the hood (Loads of C++ and stuff) they are very difficult to manipulate from VB.
This is basically why CSEXWB was created, it exposes several underlying events, methods and properties that you could not normally access from VB.
Hope This Helps!
MrWolfy
|
|
|
|
|
I have a windows form which has several controls like buttons, listviews, labels and a textbox.
Is there any generic way to always keep focus on that textbox?
|
|
|
|
|
Wow - let's see. You have buttons and listviews, and you never want any of them to get the focus ? how would that work ?
I guess you could catch keypresses and always respond by focusing on the textbox.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
What my point is here. As soon as other control's work is done, then the textbox should be focus.
I dont want to put textbox1.focus in every control's lostfocus event. I hope you understand me.
Thanks!
|
|
|
|
|
xbiplav wrote: As soon as other control's work is done, then the textbox should be focus.
Then set is back to being focused. Control.Focus() method[^]
|
|
|
|
|
I WANT VB.NET CODE FOR MAKING PROJECT ......
MY PROJECT IS CONECTIVITY OF MOBILE AND COMPUTER TO SEND SMS AND MAKE CALL WITH USE OF COMPUTER.....
SO GIVE ME ADVICE ..... AND ALSO SEND CODE FOR THIS PROJECT.....
THANKYOU...
|
|
|
|
|
vish1433 wrote: I WANT VB.NET CODE FOR MAKING PROJECT
That would be your job to create the code.
vish1433 wrote: MY PROJECT IS CONECTIVITY OF MOBILE AND COMPUTER TO SEND SMS AND MAKE CALL WITH USE OF COMPUTER.....
So you have the requirements. Now break them to smaller pieces and then model your application and code it.
vish1433 wrote: SO GIVE ME ADVICE
Done that.
vish1433 wrote: AND ALSO SEND CODE FOR THIS PROJECT
Sorry, but it's not available on this site. Perhaps you should ask here: Rent-A-Coder[^]
|
|
|
|
|
|
How do I open the screen saver application using the Process control?
I just need to know the name of the file I need to execute it in the control so I can set the screensaver to 'None'.
Thnx in advance for any help on this.
rspercy
1 + 1 = 186,440....Depending on the species.
|
|
|
|
|
rspercy58 wrote: How do I open the screen saver application using the Process control?
I just need to know the name of the file I need to execute it in
Screensavers have the file-extension ".scr", you might want to search your computer for those. The default screensavers are in the Windows folder, but third-party screensavers usually end up in "Program Files".
You can start a screensaver by passing it's path & filename to the Start-method of the Process-class, like this;
Process.Start("C:\WINDOWS\system32\ssstars.scr")
This will not change the users' default screensaver to "None", it will only start the screensaver that you specified. If you want to build your own screensaver, then check out the sample that Microsoft[^] provided.
Hope this helps,
I are troll
|
|
|
|
|
After the treeview is filled is possible to:
count how may AG-xxxxx are in 8501-xxx, count how may items are in each AG-xxxxx, , count how may items are in each SETT. -xx, ....ecc
and store the result in a var
or
count during the treeview is filling and return the result in a var
in effect i want to count how many items are in each node with "+"...
this is my code to fiull treeview:
RSSQL2.MoveFirst
Do Until RSSQL2.EOF
sValue = Trim(RSSQL2.Fields("COD_AREA").value)
sKey = "K" & sValue
.Nodes.Add , , sKey, sValue & " - " & Trim(RSSQL2.Fields("DESCRIZIONE")), 1, 1
sValue = "AG. - " & Trim(RSSQL2.Fields("SPORT").value)
'sSQL = .Nodes.Count
.Nodes.Add sKey, tvwChild, "L" & sValue, sValue & " - " & Trim(RSSQL2.Fields("DESCRIZIONE2")), 1, 2
sKey = "L" & sValue
sValue = "SETT. - " & Trim(RSSQL2.Fields("PROVA3"))
SSQL = .Nodes.Count
.Nodes.Add sKey, tvwChild, "M" & sKey & sValue, sValue, 1, 2
sKey = "M" & sKey & sValue
sValue = "COPE - " & Trim(RSSQL2.Fields("PROVA1"))
.Nodes.Add sKey, tvwChild, "N" & sKey & sValue, sValue, 1, 2
'.Nodes.Item(sKey).EnsureVisible
RSSQL2.MoveNext
'sSQL = .Nodes.Count
Loop
|
|
|
|
|
Since you're adding different kind of nodes (AG, SETT...) in that loop, why not simply use counters and calculate each item count.
Although if that's the whole logic, won't you have as many AG nodes as there are records in RSSQL2.
|
|
|
|
|
Hi All,
I have a problem regarding Threading. Actually i m executing diffrent function using thread in Timer.
So it takes max cpu Usages.
Pls tell me how to resolve it.
Thanks
Best Regard
Anubhava Dimri
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
Most likely you execute so much in each timer interval taht it deplets your cpu. For example if you have 1 second as a timer interval and you execute code that takes 2 seconds, you'll have problems.
So the main point is to tune the code you execute using the thread and/or increase timer interval. Without actually seeing the code, it's quite hard to say more.
|
|
|
|
|
How can it resolve by removing Thread or Using only timer.
mailto: anubhava.prodata@gmail.com
|
|
|
|
|
It's hard to say how to exactly solve the problem without seeing the code. But if you execute a time consuming function regurarly (let's say every second) and it takes more time, it will consume all CPU. So you would have two options, execute it less often and/or try to improve the performance of the function. I'm not able to say how to improve the performance of the function since you have not provided any code.
|
|
|
|
|
I have a form with other forms added to it as controls.
I am using the anchoring property of the forms so that when i maxmize the main form,the embedded form maxmizes as well.This works fine when both the main form and chid form are open at same time and in normal window state and then i maximize the main form.
However,when only the main form is maximized first and then i open the child form in it,it doesn't open as maxmized,it opens in normail window state.
What is going wrong here?How can i make the form autmotically resize it self depending on the window state of the main form.
|
|
|
|
|
Sohaib_A wrote: when only the main form is maximized first and then i open the child form in it,it doesn't open as maxmized,it opens in normail window state
If you're using MDI, this expected behaviour. MDI children are not sized based on MDI parent when opening. You control the window state of a MDI child independently.
If you want you can set the windowstate to maximized when you create the child window if the parent is maximized.
However if the child window is always taking all the space in MDI container, it isn't acting like a MDI application. It sounds more like a SDI application, like Visual Studio editor.
|
|
|
|