|
Yes i haved Considerd using the Scored Procedure, but i thought first understand how does BLL send data to Dal so it can be executed..
Thanks
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sudden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Vuyiswamb wrote: but i thought first understand how does BLL send data to Dal so it can be executed..
The answer to that is self evident, the DAL either takes instances of entity classes that contain the data needed, or parameters that contain the data required. Just like any other function you'd write, in any program.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi
I've been trying to create a custom textbox control using Visual studio 2005(VB.Net) with the properties that a normal texbox have with additional appearance and functionality that looks like this |_|_|_|_|_|_|_|_|_|_|_|_|.
If I need to use it for title it will be something like this |_|_|_|_|
For an address |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|
|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|
etc.
The has to be only one entry in each box and be able to set a colour for the lines and this lines must touch the textbox borders and not live spaces between like on this message.
I've been using the Web Costom control in the Web Control Library to do this and read GDI+, but something is just missing,
Can anyone please help me out with this I need it for my peoject.
Thanks
madTN
|
|
|
|
|
madTN wrote: I've been using the Web Costom control in the Web Control Library to do this and read GDI+
You can't use graphics with a web control. A web control is rendered as html code, so that is what you are limited to.
---
single minded; short sighted; long gone;
|
|
|
|
|
Hi Guffa
Please can u help me out on this if you know how to solve this problem.
Thanks
|
|
|
|
|
He answered you. For a web page, you can't.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Can you do it in a Windows Application then
madTN
|
|
|
|
|
Yes. You just override the Paint method. That will be called whenever the control is drawn, so you call the base implementation of the method to do the original drawing, then you can draw whatever you like on the control. The event arguments sent to the method contains a graphics object that you should use for doing the drawing.
---
single minded; short sighted; long gone;
|
|
|
|
|
Guffa is right, but the caveat is that the underlying text control in windows draws itself outside of the paint event often, so doing a custom text control, while possible, is a real PITA.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I have two forms in vb.net2003. first form is welcome screen & 2nd form is login form. I must hide the welcome screen. then the login form must be appear. my login form's back ground is in transparent. when load my login form,the welcome screenform is hide but that is appear behind the login form. when load my login form, the welcome screen form might not appear.
How can i solve this problem?
|
|
|
|
|
I can't follow this. The login form is covering the welcome form ? Don't show it until the welcome is closed, or make the welcome screen topmost.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
don't know if this is what you want but you can put you'r welcome screen as splash screen
in the properties of you'r project
then the welcome screen will appear as first screen for a few seconds and after that the project will start
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistaks.
|
|
|
|
|
There's no such thing in VS.NET 2003. That stuff only showed up in 2005.
|
|
|
|
|
didn't know that
been quite a few years since I programmed in 2003 and even then it was for a very short time so...
Thanks for correcting me
If my help was helpfull let me know, if not let me know why.
The only way we learn is by making mistaks.
|
|
|
|
|
I keep getting the message that the file MSADDNDR.dll could not be registered each time I try to reinstall VB6.0 on my computer. What can I do to overcome the problem?
|
|
|
|
|
|
Hi
I need to build a web application with log-in controls (txtUsername, txtPassword, btnSubmit).
My problem is, if i click submit, it should automatically log me in to another site (a web mail) with pop-up authentication (just like the pop-up box when using basic authentication)
So basically, what i'm trying to do is i'm logging in to that page using my own page. The pop-up should not be shown anymore since i have my custom log-in controls.
Is it possible to get the control names/id of the pop-up box, pass the values from my page to these controls and execute click commands externally?
What if the web mail i'm trying to access doesn't have a pop-up authentication just like yahoo mail?
I found an article that this one is possible using the WebBrowser control but it seemed that this control is only available in windows applications.
Please help i'm new to .Net. I would appreciate it so much.
Thanks
berd
-- modified at 0:37 Monday 1st October, 2007
|
|
|
|
|
berd12 wrote: So basically, what i'm trying to do is i'm logging in to that page using my own page. The pop-up should not be shown anymore since i have my custom log-in controls.
Is it possible to get the control names/id of the pop-up box,
If you're talking about the credentials box put up by the browser, no. That pop up box is no part of the web page. There's no way for your ASP.NET (which runs solely on the web server!) code to put anything in the browsers login box on the client side.
berd12 wrote: I found an article that this one is possible using the WebBrowser control but it seemed that this control is only available in windows applications.
True. The web browser control doesn't exist in ASP.NET apps, for obvious reasons.
Web Forms (ASP.NET) apps run their code entirely on the server, NOT on the client. Your ASP.NET code cannot establish a login session for another web site that doesn't run on your server.
|
|
|
|
|
I'm writing a .NET version of Panorama (it changes your backgrounds in win98 but has Issues on XP/Vista -- i dont maintain it... i just like it)
I have to handle It as a single instance application because i call the "ChangeDesktopBackground" command in user32.dll alot -- anywhere from 6 SECONDS to 4 HOURS... and i dont want a user going crazy because the desktop just changed 3935974958607367 times... it takes some doing too...
I was considering DDE, but its dead. OLE automation is near imposible without killing the filesize (its 200kb right now -- and only takes up 400kb in memory.)
I would like to have a command line param, say -a, that adds files to a listbox.
Heres how i have it set up:
FormMain
FormMain.Desks(ListView)
FormMain.AddSingle(Button)
FormMain.AddDirectory(button)
FormMain.RemoveItem(button)
formMain.clearAllItems(button)
FormMain.Timeout(spinCtl)
FormMain.TimoutTimer(Timer)
FormMain......
I want to be able to have it set up so that when the user calls something like
"PanoNet.exe -a C:\Epic Files\Some File.jpg" "C:\Mpre FIles\Some Other FIle.BMP" the new instance tells the old instance to add the two files to the top of the end of FormMain.Desks.Items
Can this be done?
"Pinky, are you thinking what i'm thinking?"
"I Dunno brain, who really came up with the idea for cheeze sticks?"
"... apparently not ..."
|
|
|
|
|
Yeah, it can be done. Just search the articles for "single instance" and you'll find a few that describe passing data back to the original instance of the app.
You may want to check into .NET Remoting (older) or WCF (newer) if using the .NET Framework 3.0. Basically, your app is exposing a server that a new instance of the app connects to as a client.
|
|
|
|
|
Hi. I have 2 tables named 24HourTemplate (with a primary key 24HourTemplateName) and a table called GenreTemplate(with a primary key TemplateName) joined to a composite table named 24HourGenreTemplate(both the Field 24HourTemplateName and TemplateName are primary keys for this table) The problem is when I update the Composite table it gives an error Message saying that Template name is constrained to being unique. It doesn't update obviously then. it is correct for the TemplateName and 24HourTemplateName fields to be unique but that is only for the tables 24HourTemplate and GenreTemplate. There will be duplicate values in the composite table. What am i doing wrong? I'm using an access 2002 database in vb.net2005. (each 24 hour template will have 24 genre templates applied to it)
MrOizo
|
|
|
|
|
Mr Oizo wrote: both the Field 24HourTemplateName and TemplateName are primary keys for this table
- Do you mean a composite primary key comprising of 24HourTemplateName,TemplateName.
Mr Oizo wrote: Template name is constrained to being unique
Sounds to me like you need to understand database design, as a primary key is unique i.e. you cannot have a non unique primary key.
It could be a foreign key as it joins to 24HourTemplate and GenreTemplate.
You always pass failure on the way to success.
|
|
|
|
|
Hi yes it must be a composite primary key. sorry. It holds the primary keys from 2 tables:"GenreTemplate" and "24HourTemplate". This "composite table" named "24HourGenreTemplate" has only the 2 primary keys from the other tables(set as the primary key) and another field called "time". I have other tables with the same structure and relationhips as this that do updat fine. this just doesn't want to? do i need to create a different primary key for the composite table?
Mr Oizo
|
|
|
|
|
Ok I understand now - what I would ask is are you absolutely sure that the primary keys you are creating in 24HourGenreTemplate are unique?
Output the rows, via debug.writeline, inserted into 24HourGenreTemplate to double check that the two fields that make up the primary key only appear once.
for instance:
if the primary key is comprised of field1,field2
field1 field2 field3
dog big alsatian
cat small persian
dog small border
dog big bloodhound
The rules set up for a primary key are broken as the 1st and 4th row have identical keys.
Does this help?
You always pass failure on the way to success.
|
|
|
|
|
Well yes. Thats exactly the problem.the only thing is that it will be possible that those 2 keys apear twice if not more times in a table.One "genretemplate" may be used for various time slots on the "24hourGenretemplate" table. the "24hourtemplate" column thus occurs 24 times(all rows) in this table. so that is the problem. What if I use the other field in the table called "time" and make it part of the composite key so that "time","24Hourtemplate" and "GenreTemplate" are now primarykeys. Each time slot can only occur once per row running from 00:00 to 23:00. Tis should fix it? thanks for the help
Mr Oizo
mr oizo
|
|
|
|